Control wavemaker at night
Posted: Thu Jan 02, 2014 3:28 pm
Hi All
I need some help with wavemaker code
I currently have:
For my night mode both port 5 and 6 are off. What I would like to do is just switch on port 5 for a couple of minutes every hour or so, then port 6 for a couple of minutes the next hour and repeat until the daylight hours kick back in.
Any ideas? I was thinking of using timers but failed to get the code to work.
I need some help with wavemaker code
I currently have:
Code: Select all
if (hour()>=8 && hour()<22){
ReefAngel.WavemakerRandom( Port6,0,60 );
ReefAngel.Wavemaker( Port5,120 );
}else{
ReefAngel.Relay.Off(Port5);
ReefAngel.Relay.Off(Port6);
}
Any ideas? I was thinking of using timers but failed to get the code to work.