New plugin ifttt ( mqtt - email )

Post Reply
davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

New plugin ifttt ( mqtt - email )

Post by davidefa » Wed Mar 31, 2021 4:24 pm

I'm trying to implement a simple integration with the ifttt platform, via webhooks.
I can 'fire events' when some simple conditions are met ( ie: if R > 0.2 Then 'fire event' raining, sensor values are read from file meteotemplateLive.txt )
There is also a timer section to 'fire events' at regular intervals.
Need to register to ifttt to get a key ( with the free plan you can use a maximum of 3 'applets' or different events, in this case )
Payloads are 3 parameters passed to the event. Hysteresis is a small delta to differentiate the off->on and on->off thresholds.
To test the condition it is possible to enable email notification ( to the address defined in the control panel 'offline notification' ) or to enable logging ( to file cache/iftttLog.txt ).
Need to copy the file ifttt.php to the crons folder ( load/crons ) and enable a cron job.


ifttt0.png
ifttt0.png (149.69 KiB) Viewed 1160 times
Attachments
ifttt_0.1.zip
(7.07 KiB) Downloaded 61 times
Image

Post Reply