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.

WeatherBug & Text Program

Featured Replies

Posted

Created a program to advise me when the temp is <=32 degrees. Well, when the temp reached that level and I received about 50 texts. Any way to limit the text to just one?

I think the temp value is actually an xx.yy value. Any change in temp will trigger the Program again. You can AND an If Variable is 0 (arbitrary value) that allows the Then clause (True) to run. In the Then clause set the Variable to 1 which will stop the Then clause from running during additional temp changes. Another Program resets the Variable to 0 when the temp goes above 32.

  • Author

I'm new at this, so here's what I did. Is this correct?

 

Program 1: If temp <=32 and $Temperature (new variable I created without values)=0, then send notification text (Low Temp) and set $Temperature=1.

Program 2: If temp >=90 and $Temperature=0, then send notification text (High Temp) and set $Temperature=1

Program 3: If temp >32 and <90, then set $Temperature=0.

 

Thanks.

You are right on, that is the concept. The variable should be an Integer variable, as opposed to a State variable.

  • Author

Got it. Thanks.

  • Author

Out of curiosity, how would I program a non-repeating text to advise me that the temperature is now between 33 and 89 without the same repeating problem? Define a different variable and essentially do the reverse?

Same concept, different variable. The 32 and below program and 90 and above program reset this additional variable.

  • Author

Yup, that's what I did. Interesting. This is fun! Thanks.

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.