Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Every 3rd day

Featured Replies

Posted

Using an ISY994i controller how do I make an event happen every 3rd day?

I would use an integer variable. Set it to 0, and increment it by 1 every day at a given time (say 1 AM), and set the init value to the new value.

 

Then at whatever time you want something to happen, have another program that checks the current time AND if the variable is set to 3 or more. The if clause would take whatever action you want, and then set the variable (and init value) back to 0.

 

Then, given an example of something happening at 7 AM, the timeline would be:

 

Day1 - @1 AM - variable increments to 1

Day1 - @7 AM - variable is less then 3, program doesn't run

Day2 - @1 AM - variable increments to 2

Day2 - @7 AM - variable is less then 3, program doesn't run

Day3 - @1 AM - variable increments to 3

Day3 - @7 AM - variable is 3, program runs, resets to 0

Day4 - @1 AM - variable increments to 1

Day4 - @7 AM - variable is less then 3, program doesn't run

Day5 - @1 AM - variable increments to 2

Day5 - @7 AM - variable is less then 3, program doesn't run

Day6 - @1 AM - variable increments to 3

Day6 - @7 AM - variable is 3, program runs, resets to 0

Make sure that whenever you increment the variable (or set it to 0), you also increment or set the Init value - so the sequence survives reboots....

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.