Failed to add a plugin from the playground

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Waryard
Normal user
Posts: 18
Joined: 16 Nov 2018, 13:48

Failed to add a plugin from the playground

#1 Post by Waryard » 15 Nov 2020, 19:21

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!

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Failed to add a plugin from the playground

#2 Post by ThomasB » 15 Nov 2020, 20:41

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

Waryard
Normal user
Posts: 18
Joined: 16 Nov 2018, 13:48

Re: Failed to add a plugin from the playground

#3 Post by Waryard » 15 Nov 2020, 22:02

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 ?

Waryard
Normal user
Posts: 18
Joined: 16 Nov 2018, 13:48

Re: Failed to add a plugin from the playground

#4 Post by Waryard » 15 Nov 2020, 22:24

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);
Last edited by Waryard on 15 Nov 2020, 22:28, edited 1 time in total.

Waryard
Normal user
Posts: 18
Joined: 16 Nov 2018, 13:48

Re: Failed to add a plugin from the playground

#5 Post by Waryard » 15 Nov 2020, 22:27

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

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests