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.

Motion Low Battery notification program

Featured Replies

6 hours ago, LarryM said:

@jca001   Much appreciated, thank you for putting that together.

============================================================================================

Then
        $State_Check_MS_Low_Battery  = 1
        Wait  30 seconds
        $State_Check_MS_Low_Battery  = 0

Side note: from my readings, you are using a 'State' variable above to take advantage of the fact that when it changes 

then  FD MS Low Battery Check - [ID 0026][Parent 0060] will be run every time that variable changes.

 

It takes a bit of time getting use to 'Event driven programming'. ;)

 

 

Correct. In the FD MS Low Battery Check program the IF is evaluating 2 variables, one is a State Variable and the other is an Integer Variable. The IF will be evaluated when the State Variable changes value, but it takes both variables being greater than 0 to make the IF true and run the THEN.

 

Yes, Event driven programming takes some getting use to if you have done top down programming.

 

Thanks Jack.

Yes, being from C & C++ this is a tad different ;) 

 

 

 

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.