turn off port at night

Do you have a question on how to do something.
Ask in here.
Post Reply
Reefology
Posts: 209
Joined: Fri Dec 26, 2014 6:38 pm

turn off port at night

Post 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 );
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: turn off port at night

Post 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.
Reefology
Posts: 209
Joined: Fri Dec 26, 2014 6:38 pm

Re: turn off port at night

Post by Reefology »

works great, thank you :D
Image
Post Reply