Hi,
I want to have 3 time intervals for my lightning, I see code in my RA+:
ReefAngel.StandardLights( Box1_Port1,10,0,22,0 );
Can I make 3 ones like:
ReefAngel.StandardLights( Box1_Port1,9,30,13,30 );
ReefAngel.StandardLights( Box1_Port1,14,30,18,30 );
ReefAngel.StandardLights( Box1_Port1,19,30,21,30 );
Is this correct or I need to do something else?
Thanks
More than one time interval for port
Re: More than one time interval for port
Not on the same port.
If you want to do in the same port, you will need some conditional if statements.
Something like this:
If you want to do in the same port, you will need some conditional if statements.
Something like this:
Code: Select all
if (hour()<14)
ReefAngel.StandardLights( Box1_Port1,9,30,13,30 );
elseif (hour()>=14 && hour()<19)
ReefAngel.StandardLights( Box1_Port1,14,30,18,30 );
else
ReefAngel.StandardLights( Box1_Port1,19,30,21,30 );
Roberto.
Re: More than one time interval for port
Thanks Robertorimai wrote:Not on the same port.
If you want to do in the same port, you will need some conditional if statements.
Something like this:Code: Select all
if (hour()<14) ReefAngel.StandardLights( Box1_Port1,9,30,13,30 ); elseif (hour()>=14 && hour()<19) ReefAngel.StandardLights( Box1_Port1,14,30,18,30 ); else ReefAngel.StandardLights( Box1_Port1,19,30,21,30 );