OK – so I realized that I have yet to post my code here. I will rectify that now: the caveat is that I am still in the tweaking process as far as intensity of lighting… I am wanting my tank to be a true mixed reef, so it takes a bunch of tweaking to get the PAR levels where I want them. But the basic code stays the same.
I use a T5/Kessil A360WE hybrid, and the T5s are not dimmable, so far any storm/cloud lighting, they shut off. They are also off for the sunrise/sunset ramp periods.
First, for the Kessils, I have 6 different Profiles:
[Rise]
Type: Ramp
Ramp Time: 120
Start Intensity: 12
End Intensity: 50
[Rise_Color]
Type: Ramp
Ramp Time: 180
Start Intensity: 0
End Intensity: 90
[Day]
Type: Ramp
Ramp Time: 1
Start Intensity: 50
End Intensity: 50
[Day_Color]
Type: Ramp
Ramp Time: 1
Start Intensity: 90
End Intensity: 90
[Set]
Type: Ramp
Ramp Time: 120
Start Intensity: 50
End Intensity: 12
[Set_Time]
Type: Ramp
Ramp Time: 180
Start Intensity: 90
End Intensity: 0
Then, I use the following Outlets setup:
[KessilColor] (variable output 1)
Set OFF
If Sun 000/-360 Then Rise_Color
If Sun 360/000 Then Set_Color
If Sun 180/-180 Then Day_Color
If Output Clouds_Prog = ON Then Clouds
If Output Storm_Prog = ON Then Storm
[KessilPower] (variable output 2)
Set OFF
If Sun 000/-360 Then Rise
If Sun 360/000 Then Set
If Sun 120/-120 Then Day
If Output Clouds_Prog = ON Then Clouds
If Output Storm_Prog = ON Then Storm
[KessilLeft] (EB832 outlet)
Fallback OFF
Set OFF
If Output KessilPower = ON Then ON
If Output KessilColor = ON Then ON
Defer 000:05 Then ON
Defer 000:05 Then OFF
[KessilRight] (EB832 outlet)
Fallback OFF
Set OFF
If Output KessilPower = ON Then ON
If Output KessilColor = ON Then ON
Defer 000:05 Then ON
Defer 000:05 Then OFF
[Storm_Prog] (virtual output)
OSC 000:00/037:00/636:00 Then ON
If Time 19:30 to 13:59 Then OFF
Min Time 037:00 Then ON
If DoW S-T-T-S Then OFF
[Clouds_Prog] (virtual output)
OSC 000:00/037:00/636:00 Then ON
If Time 19:30 to 13:59 Then OFF
Min Time 037:00 Then ON
If DoW -M-W-F- Then OFF
For my Moon lighting, I use the Neptune Apex LSM. Once installed, it comes pre programmed. If you, for any reason, have changed the program, you can easily set it back to what it was. Below is my module and the correct programming:
[LunarLights]
Set OFF
If Moon 000/000 Then ON
For programming the T5s, I have two separate outlets. One controls the two T5 bulbs in the front of the canopy, and the other controls the two T5 bulbs in the back of the canopy. I have them shut off if the tank ever reaching 82 degrees F, with a minimum off time of 30 minutes, so the lights don’t flicker on and off if the temp is right at the edge.
They are set to turn on during the “daylight” part of my photoperiod, which is 3 hours after sunrise, and ends 3 hours before sunset. They also, as stated previously, turn off in the instance of a storm or clouds, because they are not dimmable.
[T5Front]
Fallback OFF
Set OFF
If Sun 180/-180 Then ON
If Output Storm_Prog = ON Then OFF
If Output Clouds_Prog = ON Then OFF
If Tmp > 81.0 Then OFF
Min Time 030:00 Then OFF
[T5Back]
Fallback OFF
Set OFF
If Sun 180/-180 Then ON
If Output Storm_Prog = ON Then OFF
If Output Clouds_Prog = ON Then OFF
If Tmp > 81.0 Then OFF
Min Time 030:00 Then OFF
As I stated, the photoperiods and intensities are still being tweaked… it’s possible the “daylight” period will lengthen or shrink, the Kessil intensities will be increased or diminished, etc… but this programming can be modified for any application.
Also, obviously, these profiles, outlets, and modules have the names I have given them... if you wish to use different names, you will need to change the names that refer to them in this program.