How to read sensor data at 0, 5, 10, 15... of every hour?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mtt
New user
Posts: 3
Joined: 09 Jun 2016, 21:50

How to read sensor data at 0, 5, 10, 15... of every hour?

#1 Post by mtt » 15 Aug 2016, 08:14

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

Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

Re: How to read sensor data at 0, 5, 10, 15... of every hour?

#2 Post by Yves911 » 15 Aug 2016, 10:32

Maybe you can use a Timer (300 s) for that http://www.esp8266.nu/index.php/Tutorial_Rules#Timer and start counting at 00

mtt
New user
Posts: 3
Joined: 09 Jun 2016, 21:50

Re: How to read sensor data at 0, 5, 10, 15... of every hour?

#3 Post by mtt » 15 Aug 2016, 17:37

This is not the solution. How can start read sensor data at midnight? And what happen when esp8266 restart?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: How to read sensor data at 0, 5, 10, 15... of every hour?

#4 Post by tozett » 16 Aug 2016, 09:12

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.. :|

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 44 guests