Control wavemaker at night

Do you have a question on how to do something.
Ask in here.
Post Reply
Daisyjam
Posts: 18
Joined: Wed Mar 06, 2013 12:28 pm

Control wavemaker at night

Post 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.
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Control wavemaker at night

Post 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.
Daisyjam
Posts: 18
Joined: Wed Mar 06, 2013 12:28 pm

Re: Control wavemaker at night

Post by Daisyjam »

Thanks for the suggestion.

Next dumb question. Is there any documentation on how to use this function?
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Control wavemaker at night

Post by lnevo »

www.easte.net/ra/html

Then search for the function it will show you the arguments it takes
Daisyjam
Posts: 18
Joined: Wed Mar 06, 2013 12:28 pm

Re: Control wavemaker at night

Post by Daisyjam »

That's great, thanks. I will give it a try!
Post Reply