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
Good MoonCycle code to use
- JNieuwenhuizen
- Posts: 96
- Joined: Thu Feb 16, 2012 12:39 am
- Location: South Africa
Re: Good MoonCycle code to use
What did you have in mind?
I just have them dim according to the moon cycles.
I just have them dim according to the moon cycles.
Roberto.
Re: Good MoonCycle code to use
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
You can code whatever you want in your controller.
That's why it is open source
That's why it is open source
Roberto.
- JNieuwenhuizen
- Posts: 96
- Joined: Thu Feb 16, 2012 12:39 am
- Location: South Africa
Re: Good MoonCycle code to use
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.rimai wrote:What did you have in mind?
I just have them dim according to the moon cycles.
What are you using Roberto?
Re: Good MoonCycle code to use
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);
}
Roberto.