Push Notifications and Event Rules Variables for HTTP Post Event

Answered

Comments

5 comments

  • Avatar
    Sergey Yuldashev

    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.

    0
    Comment actions Permalink
  • Avatar
    Matthew Del Salto

    Text overlay to mobile?

     

    Anything on the roadmap for bookmark search or text overlay on mobile?

    thanks.

    0
    Comment actions Permalink
  • Avatar
    Matthew Del Salto

    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

    0
    Comment actions Permalink
  • Avatar
    Sergey Yuldashev

    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.

    0
    Comment actions Permalink
  • Avatar
    Reeve Hsu

    The endpoint receive the exactly same text as contents, not variable data

    0
    Comment actions Permalink

Please sign in to leave a comment.