Jump to content
C4 Forums | Control4

Scheduling events on the X week of the month


BubbaDuck

Recommended Posts

Help me think through this problem... I can think of bad and onerous ways to do this. The goal is to set a scene for say the week before Memorial Day. Memorial Day is the last Monday of May. Th ebst I have thought of is awful IF statements

If May and Monday and Date Between 26 and 31

Then I would have to do similar for each day preceding Memorial Day. Is there a driver or better way to to this that I haven't considered? FWIW, the Chowmain Holiday driver is dead.

Link to comment
Share on other sites


For there to be 5 mondays in May, then the 3rd monday has to be less than 22.

Two events need to trigger on the Monday before Memorial Day.

Scheduler event: Third Monday in May, repeat annually
      If day of month > 21, stop {cause that means Memorial day is on the fifth Monday in May}
     else do whatever, set variable early to true {Memorial day will be the fourth Monday in May}

Scheduler event: Fourth Monday in May, repeat annually
     if early is true, set to false and stop {already did the week early thing}
     else do whatever {because it's now a week before Memorial Day}

 

Link to comment
Share on other sites

32 minutes ago, mujtaba.khokhar said:

There’s a driver on driver central , called schedule it!

 

It links in with google calendar, I’m sure google shows when the holidays are you can get it to execute an event that way.

 

Thanks

Muj

 

 

Sent from my iPhone using Tapatalk

Ah, that’s perfect!

 

RAV is describing where I was headed and that’s painful. 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.