View single post by John W
 Posted: Wednesday Dec 6th, 2017 01:22 am
 PM  Quote  Reply  Full Topic 
John W

 

Joined: Wednesday Feb 18th, 2009
Location: United Kingdom
Posts: 107
Status: 
Offline

  back to top

As the title says, I want a program to run at sunset, but only for a set number of days.
Lets assume I want to turn on some lights at sunset, and off at midnight on those same days. I want this to happen for a month.

I have a pair of responses to control the lights at the times, but cannot figure out what is the best way to trigger them.

I can set a sunset response, but that will get triggered every day, all year.

I can use a time program to run at a given time when its a holiday. The problem with this is, the time program happens at a given time which is great for the midnight turn off, but not for sunset.
Also the holidays are single days, not for a duration of days.
Add to this, there are only 24 holiday entries.

If I could figure out how I can check which holiday has triggered my event I could set two holidays, one at the start and the other at the end, and then set or clear a flag that the sunset & midnight responses could check.
since I can't see a way to do this though, whats the best way to achieve what I am after ?

Cheers,
    john.

 Close Window