Page 1 of 1
How to read sensor data at 0, 5, 10, 15... of every hour?
Posted: 15 Aug 2016, 08:14
by mtt
Hi would like read sensor data (pulse) not every 5 minute but at 0,5,10,15,... minute of every hour. In other words I am looking syncronitation between NTP time and delay of sensor.
Thanks
Re: How to read sensor data at 0, 5, 10, 15... of every hour?
Posted: 15 Aug 2016, 10:32
by Yves911
Maybe you can use a Timer (300 s) for that
http://www.esp8266.nu/index.php/Tutorial_Rules#Timer and start counting at 00
Re: How to read sensor data at 0, 5, 10, 15... of every hour?
Posted: 15 Aug 2016, 17:37
by mtt
This is not the solution. How can start read sensor data at midnight? And what happen when esp8266 restart?
Re: How to read sensor data at 0, 5, 10, 15... of every hour?
Posted: 16 Aug 2016, 09:12
by tozett
that raises the problem, how the esp knows when its midnight.
you must have working ntp-time. i guess. or working manual time.
than you could use rules with the time. (link to the wiki was given before).
may you touch the good idea, to have something like linux-"cron" scheduler within espeasy/rules..
