Tutorial for implementing plug-ins?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jbaumann
Normal user
Posts: 16
Joined: 21 Mar 2016, 23:15

Tutorial for implementing plug-ins?

#1 Post by jbaumann » 27 Jan 2017, 11:36

Hi,

I would be interested in implementing plugins for the Sonoff Dual and the Sonoff Pow, if I can find some kind of tutorial that helps me to understand how they should be structured and what kinds of functionality I can use. Can I, for instance, use interrupt-driven reading of sensors (most probably needed for the current sensor in the Sonoff Pow)?

I know that I can use Espurna, but I like ESPEasy and use it in a number of different devices already...

Cheers, Joachim

JustmeNL
Normal user
Posts: 26
Joined: 09 Dec 2016, 23:10

Re: Tutorial for implementing plug-ins?

#2 Post by JustmeNL » 01 Feb 2017, 10:25

Hi Joachim,

Yes, you can use interrupt-driven routines.

To get you started read the wiki:
http://letscontrolit.com/wiki/index.php ... Guidelines
http://letscontrolit.com/wiki/index.php ... evelopment

Further information can be obtained by studying the plugins allready developed. I found the following plugins very helpfull:

From the core:
_P026_Sysinfo (https://github.com/letscontrolit/ESPEas ... ysinfo.ino)
And from the playground:
_P199_RF433_KAKU (https://github.com/letscontrolit/ESPEas ... 3_KaKu.ino)

And maybe my own recently developed plugin can help you:
_P186_Ventus_W266 (https://github.com/letscontrolit/ESPEas ... 2e1cb45a1a)

Good luck.

Edit: Typo

jbaumann
Normal user
Posts: 16
Joined: 21 Mar 2016, 23:15

Re: Tutorial for implementing plug-ins?

#3 Post by jbaumann » 02 Feb 2017, 12:30

Thank you, JustMeNL, for the pointers. I'm looking forward to playing around with it :-)

Cheers, Joe

Post Reply

Who is online

Users browsing this forum: No registered users and 154 guests