Timer with 2 ON periods per day

Do you have a question on how to do something.
Ask in here.

Posts: 21
Joined: Fri Oct 05, 2012 9:13 am
PostPosted: Tue Apr 19, 2016 10:08 am
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.

Posts: 12201
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Apr 19, 2016 10:15 am
Try this:
Code: Select all
ReefAngel.StandardLights( Port3,10,0,22,0 );
if (hour()>=12 && hour()<20) ReefAngel.Relay.Off(Port3);
Roberto.
User avatar
Posts: 5343
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Apr 19, 2016 10:17 am
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.

Posts: 12201
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Apr 19, 2016 10:18 am
He doesn't want the actinics on during the day. That's what he has right now.
Roberto.
User avatar
Posts: 5343
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Apr 19, 2016 10:44 am
Oh duh. Thanks didn't catch that part.

Posts: 21
Joined: Fri Oct 05, 2012 9:13 am
PostPosted: Tue Apr 19, 2016 11:05 am
Thanks!

Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD
PostPosted: Sat Oct 08, 2016 1:45 pm
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
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.

Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD
PostPosted: Sat Oct 08, 2016 8:13 pm
found it. thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 2 guests