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.

Using push notifications triggered from change of state of variable, or execution of program's Then

Featured Replies

Posted

I started playing with the Notification Plugin to get away from issues using vText service.  I can set a push notification when a device changes state, ... but can I set the notification when either a program is executed, or a variable changes state?  Can the Notification Plugin handle this approach, or is it limited to trigger a notification when a device status changes?

For example, I currently send a notification when someone stops at the gate for more than 20 seconds (code StoppedAtGate below).  Recently delays using vText, occasionally fail to arrive on time - a few times, they arrived over 12 hours after the fact - not real useful.

What's the best way to implement push notification for this type of situation?  I didn't see a way to add a notification for variable change of value (like intTotStoppedAtGate), nor execution of a program (like StoppedAtGate(Then)).  I would like to replace the "Send Notification" in the StoppedAtGate code, using a push notification.  Is this possible?

Michael

============ Example Code ==========

StoppedAtGate - [ID 002B][Parent 0001]

If

'Gate Operator Safety Loop Sen' Status is On

Then

Wait 20 seconds

$intTotStoppedAtGate += 1

Send Notification to 'TextMichael' content 'Someone At the Gate'

Run Program 'FlashLight' (If)

Else

- No Actions - (To add one, press 'Action')

Increment the intTotStoppedAtGate counter if the Gate outside safety loop sensor is still "on"after 20 seconds.  The 20 second filter ignores people turning around at entrance, and allows notifications when a delivery has been made

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

Solved by Jimbo.Automates

Go to solution
  • Author
11 hours ago, DennisC said:

Thank you for the links/info - I changed a few of the places where I was using vText, to the push notifications with no - i.e.,  using the Notification plugin (free version).  How do I purchase the standard version of the plugin?  I thought possibly via the menu selection "Launch Polyglot V3", but when I selected the menu item, the "Connecting is Not Private" message made me doubt this was the way to make the purchase.

Launch Polyglot.gif

Warning.gif

You can proceed...  The network trip for this connection is inside of your house, from the computer to the eisy. You're good either if you're on a wired connection... or, if you're using wifi with wpa 1,2 or 3, then its encrypted over the air.

The communication from the eisy pg3x server in your eisy to the store is encrypted.

46 minutes ago, Michaelco said:

How do I purchase the standard version of the plugin?

As stated, you can either proceed or you can open a browser window and enter:

xxx.xxx.x.xxx:3000

Replace the "x's" with your UD devices IP address.

  • Author
On 8/1/2024 at 5:41 PM, paulbates said:

You can proceed...  The network trip for this connection is inside of your house, from the computer to the eisy. You're good either if you're on a wired connection... or, if you're using wifi with wpa 1,2 or 3, then its encrypted over the air.

The communication from the eisy pg3x server in your eisy to the store is encrypted.

Thanks - made purchase - wish there was a quicker way to locate and change all of the vText lines of code - bit cumbersome to change 50+ vText notifications to push notifications.  Is there a faster way to accomplish?

6 hours ago, Michaelco said:

wish there was a quicker way to locate and change all of the vText lines of code - bit cumbersome to change 50+ vText notifications to push notifications.  Is there a faster way to accomplish?

This may help a little. Go to the My Programs folder and right-click on it. Pick Find/Replace near the bottom and use Raw Text to find instances of "vText". There's other options besides Raw Text like devices and variables.. I don't think that will help in this case but take a look

  • Author
3 hours ago, paulbates said:

This may help a little. Go to the My Programs folder and right-click on it. Pick Find/Replace near the bottom and use Raw Text to find instances of "vText". There's other options besides Raw Text like devices and variables.. I don't think that will help in this case but take a look

Thank you

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.