Outlet Power Cycle

Basic / Standard Reef Angel hardware
Post Reply
Smotz
Posts: 401
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Outlet Power Cycle

Post by Smotz »

'Lo all

Can anyone advise of an easy way to power cycle an outlet say 4 times a day? Doesn't need to happen between 8pm and 6am

I have some LEDs that have some logic problems and go screwy after a while. A reboot fixes it.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Outlet Power Cycle

Post by rimai »

Try this:

Code: Select all

ReefAngel.Relay.Set(Port1,(now()%21600)>5);
It basically turns off the port the first 5 seconds of every 21600 seconds.
Roberto.
Smotz
Posts: 401
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Re: Outlet Power Cycle

Post by Smotz »

perfect!
Post Reply