Page 1 of 1
Good MoonCycle code to use
Posted: Tue May 15, 2012 8:35 am
by JNieuwenhuizen
Hi.
I have had a few looks around the forum, and have found some nice little codes for Moon Cycles.
Is there anyone using some interresting MoonCycle code? Or is the PWMSlope- the best way?
Regards
Re: Good MoonCycle code to use
Posted: Wed May 16, 2012 8:04 am
by rimai
What did you have in mind?
I just have them dim according to the moon cycles.
Re: Good MoonCycle code to use
Posted: Wed May 16, 2012 9:04 am
by abhi_123
Just my few cents. Cant we have random night cloud in moon phase & eclipse depending upon full moon & no moon nights?
Re: Good MoonCycle code to use
Posted: Wed May 16, 2012 11:31 am
by rimai
You can code whatever you want in your controller.
That's why it is open source

Re: Good MoonCycle code to use
Posted: Sat May 19, 2012 5:18 am
by JNieuwenhuizen
rimai wrote:What did you have in mind?
I just have them dim according to the moon cycles.
Thats fine, a basic MoonCycle. Problem is I am lost with this, there is 2/3 versions of the code. You made a little code that allows PWMSlope over 00h00 , so that I have, and the phases? There is a few different versions.
What are you using Roberto?
Re: Good MoonCycle code to use
Posted: Sat May 19, 2012 7:49 am
by rimai
I just turn them on according to moon cycles.
Code: Select all
if (hour()>=21 || hour()<=8) // Turn Moonlights on/off
{
ReefAngel.PWM.SetActinic(MoonPhase());
ReefAngel.PWM.SetDaylight(MoonPhase());
}
else
{
ReefAngel.PWM.SetActinic(0);
ReefAngel.PWM.SetDaylight(0);
}