Wavemaker only on with daylights?

Do you have a question on how to do something.
Ask in here.
Post Reply
AndyC
Posts: 10
Joined: Wed Dec 11, 2013 8:23 pm

Wavemaker only on with daylights?

Post by AndyC »

I just set up my RA a week or so ago and used the wizard. I have zero coding experience so just kept it simple. Before the RA, I had a wavemaker plugged into the powerstrip for the daylights so things would calm down at night. Is there a way to have the RA wavemaker (ports 5 and 6) only operate when the daylights (port 3) are on? Ideally, could I do that through the wizard or edit the code I saved after running the wizard? Thanks a lot!!
AndyC
Posts: 10
Joined: Wed Dec 11, 2013 8:23 pm

Re: Wavemaker only on with daylights?

Post by AndyC »

Anyone?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wavemaker only on with daylights?

Post by rimai »

What type of wavemaker? Are they always turned on or you are turning them on/off in a cycle?
Can you post your code?
Roberto.
AndyC
Posts: 10
Joined: Wed Dec 11, 2013 8:23 pm

Re: Wavemaker only on with daylights?

Post by AndyC »

I jus ran the wizard to have #5 turn on/off every 10 seconds and #6 turn on/off every 10 seconds. I'd like both to shut down when the daylights go off and come back on when they come on. They just run 24/7 now. I can try to cut/paste my wizard code if that helps.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wavemaker only on with daylights?

Post by rimai »

Try this:

Code: Select all

if (!ReefAngel.Relay.Status(Port3)
{
  ReefAngel.Relay.Off(Port5);
  ReefAngel.Relay.Off(Port6);
}
Roberto.
AndyC
Posts: 10
Joined: Wed Dec 11, 2013 8:23 pm

Re: Wavemaker only on with daylights?

Post by AndyC »

That worked, thank you!!!
Post Reply