Page 1 of 1

Setting a port to multiple on/off times

Posted: Sun Oct 31, 2021 7:43 am
by Appleseed
Hi all

I am trying to set port4 on my RA+ to turn on at 8am and off at 15, then on at 4pm and off at 1am

I tried the following but it doesnt work

if (hour(now())<12)
ReefAngel.StandardLights( Port4,8,0,15,0 );
else
ReefAngel.StandardLights( Port4,16,0,1,0 );

any ideas/pointers would be greatly appreciated.

Re: Setting a port to multiple on/off times

Posted: Mon Nov 01, 2021 9:56 am
by rimai
Try < 16 instead of < 12

Re: Setting a port to multiple on/off times

Posted: Tue Nov 02, 2021 9:44 am
by Appleseed
thanks Roberto, that seems to have done the trick!