Remotely Trigger Warning Light on Dahua Cameras Using NX Witness
In ProgressHello NX Community,
I am working on a project where I need to remotely trigger a warning light on Dahua cameras based on video analysis. Here’s the current setup:
- Cameras send video feeds to an NX Witness server installed on a Raspberry Pi at each site.
- We bookmark events in NX Witness and process the video on the cloud to decide if a warning light should be triggered.
- The cameras are distributed nationwide, with two cameras and an NX Witness server per site.
The challenge I am facing is that Dahua’s API/SDK requires me to be on the same local network as the camera to trigger the warning light. I want to know if NX Witness can act as a middleman to send the API command to the cameras, allowing remote control via the NX Witness infrastructure instead of requiring direct local network access.
Is there a way to achieve this using NX Witness's features, such as events, rules, or any API/SDK functionality?
Any guidance, examples, or suggestions would be greatly appreciated!
Thank you in advance!
-
I would assume that this is possible.
In our VMS you have the option to send a Do HTTP(S) request, after an Event, for example an Analytics Event:
Or you can use a Generic Event:
For more details about triggering the Generic Event, you can check the Server API documentation for `POST` or `GET` `/api/createEvent`.
Best regards.
Please sign in to leave a comment.
Comments
1 comment