Page 1 of 1

Outlet Power Cycle

Posted: Sun Oct 09, 2016 2:53 pm
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.

Re: Outlet Power Cycle

Posted: Sun Oct 09, 2016 4:31 pm
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.

Re: Outlet Power Cycle

Posted: Mon Oct 10, 2016 4:24 am
by Smotz
perfect!