Jump to content

Noobie Question - Calendar Conditions


SSamuels

Recommended Posts

Posted

I am sure this has been asked & answered previously, but my forum searches have not found an answer.

Why doesn't IoX provide the capability to have calendar conditions in IF statements of programs, e.g., IF Calendar Date between X & Y, If Calendar date greater than, If Calendar Date Less than then.....

Thanks

Posted

This may not be helpful as I don't know the answer to your question, but there is a workaround.  I use the Timedata Node server and you can use If statements with that data.  Not exactly the ones you pose, but you can get there either with some math or brute force. - Ross

Posted
20 hours ago, SSamuels said:

I am sure this has been asked & answered previously, but my forum searches have not found an answer.

Why doesn't IoX provide the capability to have calendar conditions in IF statements of programs, e.g., IF Calendar Date between X & Y, If Calendar date greater than, If Calendar Date Less than then.....

Thanks

There are built in specific dates, such as:

image.png.fe4ee345ab7b8bdd9bb8331a46c09f08.png

which would be true anytime during December THIS year.

So we might combine two schedules using AND to do something useful like turn on the Christmas decorations, but only during December

image.png.3975c4ff1bd011228c8074240fafb613.png

The problem with programs like these, is that they must be revised every year-- there is no method to enter a date WITHOUT the year in the built in date functions.

Note for date option to show, you much uncheck daily:

image.png.a1479f060fa920627e5e5ce0377ce5b9.png

There's also a program that you can input once and run everyday to set a series of variables, that i've been using for a number of years... see this thread:

with this method it's possible to find thanksgiving.. the 4th Thursday of November, or other combinations.

As mentioned previously in this thread, there's also the date/time node server.

Posted (edited)
23 minutes ago, MrBill said:

There are built in specific dates, such as:

image.png.fe4ee345ab7b8bdd9bb8331a46c09f08.png

which would be true anytime during December THIS year.

So we might combine two schedules using AND to do something useful like turn on the Christmas decorations, but only during December

image.png.3975c4ff1bd011228c8074240fafb613.png

The problem with programs like these, is that they must be revised every year-- there is no method to enter a date WITHOUT the year in the built in date functions.

Note for date option to show, you much uncheck daily:

image.png.a1479f060fa920627e5e5ce0377ce5b9.png

There's also a program that you can input once and run everyday to set a series of variables, that i've been using for a number of years... see this thread:

with this method it's possible to find thanksgiving.. the 4th Thursday of November, or other combinations.

As mentioned previously in this thread, there's also the date/time node server.

As previously mentioned, I use the Holidays Google calendar nodeserver. In your Google Calendar you can select any (and multiple) calendars of interest, including US holidays,  Jewish, Muslim and even sport calendars. These can then be used in IoX programs in IF. Note that this nodeserver only acts on whole day events, which should not be an issue with holidays.

Edited by asbril
  • 2 weeks later...
Posted

I also utilize the program FOLDER conditions for things like this.  Don't forget, you can set conditions for all programs within a folder to run or not based on a program FOLDER condition.  I have one for Xmas lights that changes the way my outside lights behave during December months and I simply just stacked a lot of ranges together with OR statements.

like IF month is Dec 2021 to Jan 2022

OR month is Dec 2022 to Jan 2023

OR month is Dec 2023 to Jan 2024

...etc.  I stack like 20 years up.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...