Timers on Reef-pi

haley-pi

New Member
View Badges
Joined
Aug 14, 2020
Messages
15
Reaction score
6
Location
ottawa
Hey Everyone,

How Does Reef Pi's timers react to power failures?

I have set my co2 up with the following timer. If I lose power before a state change, and regain it after, Will the state change be ignored?


For example, if the power turns off at 11:55, then comes back at 12:05, will the co2 be on?

Thanks

Screen Shot 2020-12-08 at 5.10.51 PM.png
 
Fritz
OP
H

haley-pi

New Member
View Badges
Joined
Aug 14, 2020
Messages
15
Reaction score
6
Location
ottawa
Did you find an answer to this? I would like to know this as well.
Yes.

to quote Ranjib ‘...
Light, outlet state etc should sync back after power outage soon as reef-pi start or within a minute (for lights). Macro, timers that reverts back after a duration etc will lose their on-the-fly state and will be impacted (e.g, there revert after a duration part might be lost since timer trigger point is passed).’
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,532
Reaction score
15,031
Location
Palo Alto, Bay Area
Yes. Timers with simple action such as just turn on a thing at a specific time are pretty stable and should not be hampered by power cycle. But an example like the one presented here, where it turns back off after a long time can be impacted badly. As in if the timer started and then power cycles , the revert back action will be impacted , since the timer that started is gone . And it will not trigger back again till next interval. For this reasons , it’s better to split such timers into two different ones , one for on and one for off if you are worried about power cycle in between.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
614
Reaction score
985
Location
Durban - South Africa
Yes. Timers with simple action such as just turn on a thing at a specific time are pretty stable and should not be hampered by power cycle. But an example like the one presented here, where it turns back off after a long time can be impacted badly. As in if the timer started and then power cycles , the revert back action will be impacted , since the timer that started is gone . And it will not trigger back again till next interval. For this reasons , it’s better to split such timers into two different ones , one for on and one for off if you are worried about power cycle in between.
Will a real-time clock help with this @Ranjib ?

This is definitely a good argument for backup power for the Pi. Not necessarily for the equipment, but definitely to keep the pi alive so it remembers all it's states and timers / macros it has running.
 
Avast

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,532
Reaction score
15,031
Location
Palo Alto, Bay Area
Will a real-time clock help with this @Ranjib ?

This is definitely a good argument for backup power for the Pi. Not necessarily for the equipment, but definitely to keep the pi alive so it remembers all it's states and timers / macros it has running.
yes, it will , but only to some extent. An RTC module will make sure time does not drift once pi comes up after power outage (i.e. it will reduce the chance of timers start at wrong time or not starting at expected time ., ) . it will not solve the issue of lost state of timers that were already running during the outage.
 

Do you own your DREAM CORAL?

  • Yes (please tell us what in the thread)

    Votes: 61 16.0%
  • NO

    Votes: 308 80.8%
  • Other (please explain)

    Votes: 12 3.1%

Online statistics

Members online
717
Guests online
3,283
Total visitors
4,000
AVAST
Top