2 hours ago2 hr It would be nice to be able to specify a calendar date or date-range in the programs in addition to the time/range. Like, for the "holiday season", have the holiday light programs enabled, and then don't worry about them the rest of the year. Or something special for birthdays and anniversaries.Just an idea.
2 hours ago2 hr There's the TimeData plugin that does just that and more. I use it for a number of related functions
2 hours ago2 hr There is a free plugin called "Holidays" that allows you to define holidays, that you can then use in program logic. The instructions are rather cryptic, but I'll get around to figuring it out sometime.You can also put dates as part of scheduled events. If you uncheck the "daily" box, an extra field appears where you can choose dates from a calendar. You can specify a "from" and "to" date range, so you can use that to set a variable as a flag to indicate a holiday day, interval, whatever you like. Edited 1 hour ago1 hr by Guy Lavoie
1 hour ago1 hr @Guy Lavoie As mentioned.Uncheck daily and then you pick specific dates. But the issue with that is you would need to go through and set every Christmas (or whatever) for every year going forward. Using the plugin for dates let you use wildcards. In other words, you can set it for every December 25 and the year can be wildcard. Or you can do every other day, or every just about anything you can think of, perhaps requiring some thinking to convert it to what you want, but really nothing can't be done.Many years ago, prior to plugins existing, I wrote a whole series of programs that does the same thing. In fact, I continue to use those programs because they work and why would I go through and re-write a bunch of programs that aren't broken that use the series of date programs. But if I were starting over, I would just use the plugin.
1 hour ago1 hr 33 minutes ago, apostolakisl said:Many years ago, prior to plugins existing, I wrote a whole series of programs that does the same thing. In fact, I continue to use those programs because they work and why would I go through and re-write a bunch of programs that aren't broken that use the series of date programs. But if I were starting over, I would just use the plugin.If it ain't broke, don't fix it. That's also my usual approach. I was just pointing out various ways you can test for dates for the original poster. 😃
Create an account or sign in to comment