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.