Page 1 of 1

Timer with 2 ON periods per day

Posted: Tue Apr 19, 2016 10:08 am
by discocarp
I'm using T5s over my softie tank. It is a 6 bulb ATI, but I never want to run more than 4 lights at a time. I have the light set up with 4 bulbs as daylight, and 2 bulbs as actinic (separately switched).

What I want is a schedule like this:

10am-12pm: 2 bulb actinic only
12pm-8pm: 4 bulb daylight only
8pm-10pm: 2 bulb actinic only

How can I make this happen on the actinic port? The current code is ReefAngel.StandardLights( Port3,10,0,22,0 ), but obviously this leaves 6 lights on during the middle of the day.

Re: Timer with 2 ON periods per day

Posted: Tue Apr 19, 2016 10:15 am
by rimai
Try this:

Code: Select all

ReefAngel.StandardLights( Port3,10,0,22,0 );
if (hour()>=12 && hour()<20) ReefAngel.Relay.Off(Port3);

Re: Timer with 2 ON periods per day

Posted: Tue Apr 19, 2016 10:17 am
by lnevo
Roberto,

Wouldn't this be better?

If you have the wifi module go into the portal under Internal Memory -> Time Schedule (default tab). You can also do this on the iphone app and probably the Android one too.

Set the Actinic Offset to 120 and the Daylights On/Off to 12pm and 8pm.

Then as far as code, you can do

ReefAngel.StandardLights(PortX);
ReefAngel.ActinicLights(PortY);

Where X is the outlet for the 4 bulbs and Y is the outlet for the 2 bulbs.

Re: Timer with 2 ON periods per day

Posted: Tue Apr 19, 2016 10:18 am
by rimai
He doesn't want the actinics on during the day. That's what he has right now.

Re: Timer with 2 ON periods per day

Posted: Tue Apr 19, 2016 10:44 am
by lnevo
Oh duh. Thanks didn't catch that part.

Re: Timer with 2 ON periods per day

Posted: Tue Apr 19, 2016 11:05 am
by discocarp
Thanks!

Re: Timer with 2 ON periods per day

Posted: Sat Oct 08, 2016 1:45 pm
by rossbryant1956
I want to do something similar but slightly different. I want that light set to come on 22, go off at 23 and then come back on at 630 and go off at 900.

Basically I want moonlights to go to bed by and moonlights to wake up by. How would I do that? Thx in advance

Re: Timer with 2 ON periods per day

Posted: Sat Oct 08, 2016 8:13 pm
by rossbryant1956
found it. thx