Push Notifications and Event Rules Variables for HTTP Post Event
Answered1. Good job on push notifications. They work well outside of having the image attached to them from a generic event, even if the event specifies the camera id in the metadata JSON.
1a. Should implement mobile URI to handle location time to playback that specific event.
1b. There should be a way to send push notifications via the API.
2. Event rules needs a common variable system ie $SERVERID $CAMERAID $CAMERANAME(of the triggering camera for that specific event) We should be able to pass these variables to the HTTP requests to facilitate fast rule setup.
-
Hello Matthew,
It is already implemented for "Do HTTP request" action. Note that right now only Analytics Plugin and Generic events might generate the variable output.
The placeholders syntax is:- {event.caption} is replaced with the event caption sent by a plugin;
- {event.description} is replaced with the even description sent by a plugin;
- {event.cameraId} is replaced by a corresponding camera guid;
- {event.cameraName} is replaced by user-readable camera name, it’s skipped if for some reasons server doesn’t have a valid camera id (e.g. when the event was created by incorrect API call);
- {event.eventType} is replaced by internal unique event identifier (e.g. “nx.stub.lineCrossing”);
- {event.eventName} is replaced by human-readable event type (that’s the value shown in rules configuration widget, e.g. “Line Crossing”), it’s skipped if eventType id is incorrect.
We are going to implement support for Push Notificaitons, Text Overlay and some other actions in 4.2.
-
Sergey Yuldashev I have a generic event sending the word "Vehicle" and the metadata is the camera ID.
I am then trying to take that Generic Event and do an http request using {event.cameraId} as a variable in the URL. Does not work. Just comes in as {event.cameraId}
are the variables only in the post data?
thanks
-
Hi Matthew,
> Anything on the roadmap for bookmark search or text overlay on mobile?
Not in the roadmap yet.
> are the variables only in the post data?
Yes, the variables are available now only for "Do HTTP request" action as a POST data.
Please see my previous response, the support for variables in Text Overlay and Push Notifications will likely be added in 4.2 version which is expected in 2021.
-
Hello Dmytro Kravchenko,
As of 4.2 all the mentioned substitutions work for "Generic Event" and "Analytics Event" sources.
I.e. {event.cameraName} actually works right now:Camera IP was not listed before and is not yet implemented. But AFAIK, more parameters are to come in the future versions.
Unfortunately, embedding the substitutions to other actions like HTTP overlay or Mobile Pushes have been postponed.
-
Hello Sergey Yuldashev,
Is it possible add the placeholder syntax (e.g. {event.description}) to Default System Event (e.g. "Network Issue")?
I want to add HTTP(s) Content with placeholder syntax included on Default System Event.
-
Hello deyatch deyatch,
Unfortunately, not at the moment. In version VMS 5.1 and the upcoming 6.0 the placeholder syntax is only available for the Analytics and Generic event types.
But the list will be expanded to all of the available event types in the version planned for the next(2025) year. Basically the next one after 6.0 being released later this month.
Please sign in to leave a comment.
Comments
9 comments