- Messages
- 62
- Country
Hi Folks,
I'm using a simple conditional statement to trigger a fireworks display between 18:30 and 20:00 local time in Alaska.
<UseTemplate Name="Asobo_GT_Update" >
<FREQUENCY>0.2</FREQUENCY>
<UPDATE_CODE>
(E:LOCAL TIME, hour) 18.50 > (E:LOCAL TIME, hour) 20.00 < and
if{ 1 (>Z:TRIGGER_FIREWORKS1) } els{ 0 (>Z:TRIGGER_FIREWORKS1) }
</UPDATE_CODE>
</UseTemplate>
This works fine except as the time of the year changes then evenings become lighter/darker and at the height of the summer it will still be very light at 18:30
Is it possible to recode this trigger statement to use the time of the local Dusk plus say 30 minutes so that the fireworks always trigger after dusk and then run for a few hours so it will be usable all year round?
regards
Kev
I'm using a simple conditional statement to trigger a fireworks display between 18:30 and 20:00 local time in Alaska.
<UseTemplate Name="Asobo_GT_Update" >
<FREQUENCY>0.2</FREQUENCY>
<UPDATE_CODE>
(E:LOCAL TIME, hour) 18.50 > (E:LOCAL TIME, hour) 20.00 < and
if{ 1 (>Z:TRIGGER_FIREWORKS1) } els{ 0 (>Z:TRIGGER_FIREWORKS1) }
</UPDATE_CODE>
</UseTemplate>
This works fine except as the time of the year changes then evenings become lighter/darker and at the height of the summer it will still be very light at 18:30
Is it possible to recode this trigger statement to use the time of the local Dusk plus say 30 minutes so that the fireworks always trigger after dusk and then run for a few hours so it will be usable all year round?
regards
Kev