What is the concept?
Within the Nx Witness VMS, we provide the option to receive HTTP generic events, which is a standard HTTP request to the Nx Witness media server from any 3rd party software solution and/or Nx Witness itself.
This means you can enable integration with any application that is able to send the HTTP event to trigger any action in Nx Witness. Using this method, it also possible to create snapshots of any specified event.
In this article, we will describe how you can add a snapshot of an event to an email as an action.
What is a Generic Event?
The Nx Witness™ Server API provides a standard set of API calls for 3rd party systems and/or Nx Witness itself. With the Nx Witness Server API it is possible to send Nx Witness events using a standard API call in the form of an HTTP string - also known as the CreateEvent API call
Receiving a snapshot from a camera via email
You will only need the Nx Event Rules engine, which is already built-in to Nx Witness with an intuitive user interface.
- Confirm you have Administrator user rights to log into Nx Witness via the Nx Desktop client.
- Navigate to the Main Menu, select System Administration (Ctrl+Alt+A), then click the icon Event Rules.
(Or right-click on a camera in the resource panel or on a camera on the grid and select Camera Rules.) - Click the Add button, and you will see the Event and Action dialog at the bottom half of the menu.
- Select the Event you want to use on the left, and select the action Do HTTP Request.
- Fill in the fields for your action details, then click Apply
- HTTP URL: add the Nx Generic Event API call with the specific parameters: source (and/or caption and/or description) and metadata to add the relevant camera ID to the API call. This can contain multiple camera IDs. You can find the Camera ID via Camera Settings in the Advanced tab, and at the top of the menu, you can copy the Camera ID.
- HTTP content: leave blank
- Content type: Auto
- Authentication type: Auto
- Request type: GET
- Login: Your Nx account (Administrator role)
- Password: Your Nx password
- Click the Add button again, and then you will see the Event and Action dialog on the bottom half of the menu.
- Select Generic Event for the event type on the left, and select the action - Send email on the right
- Choose the proper interval of action and enter (or pick) the recipients.
- Click Apply to save the changes, then click OK.
Do you have an example?
Let us design an example for this use case: when a person walks into a confidential bank vault, a sensor is triggered and a signal input will send to an I/O device. We want to receive an email with a snapshot of the camera(s) instant capturing that that person’s arrival at the vault.
Configuration
- Confirm you have ‘Administrator’ user rights to log into Nx Witness via the Nx Desktop client.
- Open the Main Menu, select System Administration (Ctrl+Alt+A), and click the icon Event Rules.
(Or right-click on a camera in the resource panel or on a camera on the grid and select Camera Rules.) - Now we are going to create the first rule by clicking on the Add button to open the Event and Action dialog on the bottom half of the menu.
- Select the Event you want to use on the left, and select the action Do HTTP Request.
- Fill in the fields for your action detail, then click Apply.
HTTP URL example:
http://<the-server-IP-address>:<port-number>/api/createEvent?source=<something>&metadata={"cameraRefs":["CameraID1","CameraID2"]}
http://192.168.1.25:7001/api/createEvent?source=<something>&metadata={"cameraRefs":["3A4AD4EA-9269-4B1F-A7AA-2CEC537D0248","3A4AD4EA-9269-4B1F-A7AA-2CEC537D0240"]}
HTTP content: leave blank
Content-type: Auto
Authentication type: Auto
Request type: GET
Login: Your Nx account (Administrator role)
Password: Your Nx password - Now we are going to add the second rule by clicking the Add button again to open the Event and Action dialog on the bottom half of the menu.
- Select Generic Event for the event type on the left and add the word you assigned to the source (and/or caption and/or description), and select the action Send email on the right.
- Choose the proper interval of action and enter (or pick) the recipients.
- Click Apply to save the changes, then click OK.
Example of the first rule
Example of the second rule
Example of Email Notification
Questions
If you have any questions related to this topic or you want to share your experience with other community members or our team, please visit and engage in our support community or reach out to your local reseller.
Comments
0 comments
Article is closed for comments.