Page 1 of 1

Failed to add a plugin from the playground

Posted: 15 Nov 2020, 19:21
by Waryard
Hello everybody,

I want to use this plugin : https://github.com/letscontrolit/ESPEas ... leinfo.ino The french electric meter has an "serial" output, this plugin helps decoding the instant power, index, contract and many other infos...

I use Atom and Platformio.

In the source folder of ESPEasy, I downloaded the Teleinfo.ino file into "src" dir and the "P127_LibTeleinfo_Library" folder into "lib" one.

But, after the successful flash, in the devices list the plugin doesn't appear.

Did I missed something ?

Thanks!

Re: Failed to add a plugin from the playground

Posted: 15 Nov 2020, 20:41
by ThomasB
You need to specify the plugins to be used in your custom build. Basic instructions for compiling custom builds is found here:
https://espeasy.readthedocs.io/en/lates ... th-vs-code

- Thomas

Re: Failed to add a plugin from the playground

Posted: 15 Nov 2020, 22:02
by Waryard
The easiest is to go for the environment “env:custom_ESP8266_4M” and unfold that one. Then select “Build” to see if it will start building.
Even with the best motivation, I can't understand this phrase.

How to "go for the environment “[...]”
How to "unfold" it ?

Re: Failed to add a plugin from the playground

Posted: 15 Nov 2020, 22:24
by Waryard
I added the plugin by my own way but it seems to have a lib define problem
/home/me/dev/ESPEasy/ESPEasy_ESP82xx_mega-20201102_special_teleinfo_edf/source/src/_P127_Teleinfo.ino:49:37: error: 'SENSOR_TYPE_SINGLE' was not declared in this scope
Device[deviceCount].VType = SENSOR_TYPE_SINGLE;

/home/me/dev/ESPEasy/ESPEasy_ESP82xx_mega-20201102_special_teleinfo_edf/source/src/_P127_Teleinfo.ino:85:65: error: no matching function for call to 'ESPeasySerial::
ESPeasySerial(const int16_t&, const int16_t&)'
P127_easySerial = new ESPeasySerial(serial_rx, serial_tx);

Re: Failed to add a plugin from the playground

Posted: 15 Nov 2020, 22:27
by Waryard
Little precision, the plugin needed SoftwareSerial

I tried this one https://github.com/PaulStoffregen/SoftwareSerial
And also this one for ESP8266 https://github.com/plerup/espsoftwareserial

But the result is the same, compilation fails with many errors like the ones mentioned before