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.

Program that runs 24/7

Featured Replies

Posted

I am looking to create an "if" statement that runs 24/7.  I have many programs that count things at various intervals 24/7.  Currently I am doing a "if" time between 00:01 AM and 23:59 PM.  This works fine but seems seems a bit over the top.  Just trying to clean things up a bit.

 

Example:

Set Temperature Variable - [ID 0069][Parent 0001]

If
        From    12:00:00AM
        To      11:59:00PM (same day)
 
Then
        Repeat Every  10 minutes 
           $sFIB.Temp  = 'Guest Bedroom / ZW 002 Multilevel Sensor 1' Temperature °C
           $sFIB.Temp *= 1.8
           $sFIB.Temp += 32
 
Else
   - No Actions - (To add one, press 'Action')
 

Set "Run at Startup" attribute for that program on the Programs > Summary tab, and leave the IF blank.

You might want to vary, or not always use Repeat every 10 minutes, so that you don't have them all running at the same moment.     or throw in a wait X seconds between the "then" and "repeat" to stagger them by a second, a couple at the same moment won't cause a problem but if there were a lot it could, well at least with a 994.

4 minutes ago, CPrince said:

@MrBill; yes, so obvious I did not think about it!  I rarely use that "Run at Startup". Thanks!

I actually only use it one program, but that program runs a program a couple of minutes after startup that starts all the heartbeats and monitor programs.  Long story short I was battling startup errors at some point and had to find a way to make some things start later.

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.