Happy Valentine's Day! I sat down this morning to do some programming to make all my landscape lights be red tonight. I currently have a Scheduler event for Sunset everyday where I turn on landscape lights. I decided I should make a macro that is invoked as part of my Sunset actions "Turn on Landscape Lights" and want to put in some conditionals to kick off different landscape lighting programs based on special days / ranges. Like Feb 14 every year or Xmas lights between Dec 1 and Dec 30, etc.
I guess I just assumed that there would be a system variable for Current Date and I could drive it off that (hopefully with > and < modifiers). But I'm not seeing that. What's the best way to do? Kludgy idea I had was to create a variable "DaysElapsed" and increment once at midnight (and reset Dec 31) and drive the logic off that by manually computing that Feb 14 is the 45th day of year (or whatever) and using my variable in conditionals.
Question
cnicholson
Happy Valentine's Day! I sat down this morning to do some programming to make all my landscape lights be red tonight. I currently have a Scheduler event for Sunset everyday where I turn on landscape lights. I decided I should make a macro that is invoked as part of my Sunset actions "Turn on Landscape Lights" and want to put in some conditionals to kick off different landscape lighting programs based on special days / ranges. Like Feb 14 every year or Xmas lights between Dec 1 and Dec 30, etc.
I guess I just assumed that there would be a system variable for Current Date and I could drive it off that (hopefully with > and < modifiers). But I'm not seeing that. What's the best way to do? Kludgy idea I had was to create a variable "DaysElapsed" and increment once at midnight (and reset Dec 31) and drive the logic off that by manually computing that Feb 14 is the 45th day of year (or whatever) and using my variable in conditionals.
Is there a better way?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.