Jump to content

Noobie Question - Calendar Conditions


SSamuels

Recommended Posts

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

Link to comment

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

Link to comment
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.

Link to comment
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
Link to comment
  • 2 weeks later...

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.

Link to comment
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...