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.

Leak Sensors - Another (Suggested) Complete Program Package

Featured Replies

1. The leak sensors send a heartbeat status about every 24 hours, give or take.  Why you often see a "wait 25h" is to allow for a little fudge on that.

2. Yes, they should stay running.   They are started at ISY boot, and they wait for a heartbeat trigger.   Then they wait for about 24 hours for a program retrigger.   If it arrives, the ISY restarts the program, for a new 24 hour cycle.   If the heartbeat doesn't arrive, the wait falls through, and the notifications start (until the heartbeats start arriving again).

3. There's no "exit" on these programs, at least explicitly.   Are you aware that, if a condition in a program IF changes while a "wait" command is waiting, that the wait is aborted and the program restarts with the condition getting re-evaluated?   If not, that may be an important clue to understanding how much of it works.

Thanks for the heads up about the re-evaluation of the variable from the wait state.  That clears up a mystery for me.

As to the other questions, a system reboot got everything straightened out.  I did receive a random "Leak repaired" e-mail, which was NOT preceded by a "Leak Detected" message which I can't explain. Status of the sensors on the main page was OK, but one of the variables did not reflect that status. I guess I don't understand how they can be different.  Everything has been OK over the next 25+ hours.   

This event driven programming is new to me, although I'm familiar with several other languages.

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.