Jump to content

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


Go to solution Solved by Jimbo.Automates,

Recommended Posts

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

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

Posted
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

Posted

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.

  • Like 1
Posted
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.

  • Like 1
Posted
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?

  • Like 1
Posted
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

Posted
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.

×
×
  • Create New...