Red Sea Max 500

New members questions
modulok
Posts: 166
Joined: Wed Oct 24, 2012 8:37 am

Re: Red Sea Max 500

Post by modulok »

ok, so the moonphase thing really isn't working right. If I let the light schedule go on its own the moonphase statement comes on at 12am. But it should be on at 10p. If I manually toggle box1_port4 on and then auto, it comes on. I think its just the change over from the RSM Evening line.

Code: Select all

    // RSMLED Moonlight Schedule
    if (hour()>=6 && hour()<=10) ReefAngel.StandardLights( Box1_Port4,6,0,10,0 ); //RSMLED Morning 6a-10a
    else if(hour()>=20 && hour()<=22) ReefAngel.StandardLights( Box1_Port4,20,0,22,0 ); //RSMLED Evening 8p-10p
    else if(hour()>=22 || hour()<=4) if (MoonPhase()>=69) ReefAngel.StandardLights( Box1_Port4,22,0,4,0 ); //RSMLED on for Full Moon 10p-4a
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Red Sea Max 500

Post by rimai »

Did the original code I posted work?
You cannot leave a gap in the hours or you will need to add another "else" statement to complete the unused hours.
Also, if the hour is 22, you have 2 valid options and the last one is the one that will be higher priority.
Roberto.
Post Reply