PDA

View Full Version : Code for lights?


Jfannin
05/09/2012, 02:46 PM
just wanting to make sure that this will turn my LED's on at noon to 5% power and then at 1300 RampUP then RampDown to 5% and stay at 5% till midnight. thanks a lot

Apex Outlet Setup
Set OFF
If Time 12:00 to 00:00 Then ON

VS port2
If Time 13:00 to 13:30 Then RampUp
If Time 22:30 to 23:00 Then RampDown

RampUP
30min
5%
100%
RampDown
30 min
100%
5%

RussM
05/09/2012, 03:41 PM
[VSport2]
Set OFF
If Time 13:00 to 13:29 Then RampUp
If Time 13:30 to 22:29 Then ON
If Time 22:30 to 23:00 Then RampDown

Adding the Set OFF and the If Time ... Then ON in the middle will ensure that the lights are doing what they should be in the event the schedule is disrupted, i.e. by a reboot or power outage.

There's really no point in turning on the EB8 outlet an hour before the rampup and off an hour after rampdown. Just set it to mirror the state of the VS port. The added advantage is that you only need to change times for lighting in one place rather than two (if you modify your lighting schedule)


Apex Outlet Setup
Fallback OFF
Set ON
If Outlet VSport2 = OFF Then OFF