VDM lunar code?

swoods140

New member
So...
I have 3 ramp/intensity profiles set up for each of the blue and white outlets with time statements to manage outlets. All works well but I can't figure out the lunar cycle on the blue outlet at night! I'm waiting for the official update to mange blues separate and can't figure out Kens' code on his website.
Am I missing a virtual timer to control the lunar cycle?
 

kenargo

Premium Member
If you post your current code it might help; the trick is to have the 'if moon' on the outlet for the blue channel, then use a virtual outlet to trigger sun-rise and sun-set.
 

swoods140

New member
Outlets

BlueLED:
Fallback OFF
Set OFF
If Time 06:00 to 09:00 Then AMBlue
If Time 09:00 to 18:00 Then DayBlue
If Time 18:00 to 22:00 Then BlueSet
If Outlet MoonT = ON Then Moon

WhtLED:
Fallback OFF
Set OFF
If Time 09:00 to 12:00 Then AMWhite
If Time 12:00 to 16:00 Then PMWhite
If Time 16:00 to 20:00 Then WhiteSet
If Time 20:01 to 08:59 Then OFF

VO:
MoonT
If Moon 000/000 Then ON
If Time 06:00 to 21:59 Then OFF

?
 

swoods140

New member
I'm use to the AI controller and don't understand how to turn off the lunar cycle during the day to not affect the blue cycle.
 

kenargo

Premium Member
You don't need the MoonT virtual outlet; in fact if you want to use a lunar cycle you shoudn't use it. Try this:

BlueLED:
Fallback OFF
Set BlueSet
If Moon 000/000 Then Moon
If Time 06:00 to 09:00 Then AMBlue
If Time 09:00 to 18:00 Then DayBlue

I assume you have a profile named 'Moon'.
 
Top