'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.
Outlet Power Cycle
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Outlet Power Cycle
Try this:
It basically turns off the port the first 5 seconds of every 21600 seconds.
Code: Select all
ReefAngel.Relay.Set(Port1,(now()%21600)>5);
Roberto.
-
Smotz
- Posts: 401
- Joined: Sat Mar 30, 2013 5:02 pm
- Location: CT, USA
Re: Outlet Power Cycle
perfect!