Page 1 of 1

turn off port at night

Posted: Thu Jan 08, 2015 9:45 pm
by Reefology
how would i code to turn off wavemaker at night? tried this but wont compile

Code: Select all

if (hour()>=23 && hour()<8) ReefAngel.WavemakerRandom( Port6,off );

Re: turn off port at night

Posted: Fri Jan 09, 2015 4:24 am
by cosmith71
Try this:

Code: Select all

if (hour()>=23 || hour()<8) ReefAngel.Relay.Off( Port6 );
else ReefAngel.WavemakerRandom( Port6, 60, 100 );
Be sure to remove your other wavemaker code.

Re: turn off port at night

Posted: Fri Jan 09, 2015 11:16 pm
by Reefology
works great, thank you :D