Page 1 of 1

Control wavemaker at night

Posted: Thu Jan 02, 2014 3:28 pm
by Daisyjam
Hi All

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);
    }
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.

Re: Control wavemaker at night

Posted: Thu Jan 02, 2014 3:33 pm
by lnevo
I would use the DosingPumpRepeat() function in the else part of your code. Then you can specify how many seconds to run each and the offset.

Re: Control wavemaker at night

Posted: Thu Jan 02, 2014 4:29 pm
by Daisyjam
Thanks for the suggestion.

Next dumb question. Is there any documentation on how to use this function?

Re: Control wavemaker at night

Posted: Thu Jan 02, 2014 4:35 pm
by lnevo
www.easte.net/ra/html

Then search for the function it will show you the arguments it takes

Re: Control wavemaker at night

Posted: Fri Jan 03, 2014 2:27 am
by Daisyjam
That's great, thanks. I will give it a try!