Dahua HTTP API - IVS Subscribe to Events

idooriane

n3wb
Feb 4, 2025
2
0
Israel
Hi,

I am trying to subscribe to IVS events without a success.
The idea is to sent a HTTP request to subscribe to events, and when an event acour a http message will be send to a specific IP with the event details (I did this with Hikvision and Uniview API).

The camera details:
Model: DH-IPC-HFW2449S-S-IL
Version: V2.840.0000000.17.R, Build Date: 2024-08-14

Thanks!
 
I don't know but maybe something like this. While first might be only for NVR level only.. I have removed one of the / for forum format.. But
http://192.168.1.100:<PORT>/cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion,AlarmLocal,IVS]

Then for camera?
http://192.168.1.100:8080/alert?event=ivs&type=tripwire&camera=front_gate

I am sure you already know but the target server must have HTTP listener

Then there are some newer system that might even support MQTT? Maybe this will help get you where you are trying to go.
 
Another thing you could do is use the DMSS app to be able to get notifications to your phone. Could be a way to be able to get those events to you without having to use the HTTP function. Once you add your NVR to DMSS via its SN and getting internet to the NVR you will be able to specify what kind of notifications you want, You will go into the Multi Channel Alarm Subscription to specify what kind of notifications you want. Hope this gives you another option for you.
 
  • Like
Reactions: Mark_M
Another thing you could do is use the DMSS app to be able to get notifications to your phone. Could be a way to be able to get those events to you without having to use the HTTP function. Once you add your NVR to DMSS via its SN and getting internet to the NVR you will be able to specify what kind of notifications you want, You will go into the Multi Channel Alarm Subscription to specify what kind of notifications you want. Hope this gives you another option for you.
Hello! I thought one day I would see someone with Montavue joining IPCT.
You've done well with your how-to videos on Youtube. Thank you! :)

I commented this to MAST digital's NKB1000 video, something you might be interested to know with the keyboard:
With my NKB1000 & NVR5x-I:
  • Some other camera functions can work with the NKB, I notice entering PTZ menu of my fixed thermal camera and 2+OTHER can activate the white light.
  • Pressing SHIFT turns on/off monitor tour.
  • 1+AUX brings up Record mode, 2+AUX brings up PTZ mouse controls of the NVR's right click menu.
Downsides I would like Dahua to fix/add, or I don't know the function:
  • Toggling Arming/Disarming of the NVR.
  • Manually activating the siren and/or flashing lights on a TiOC camera. (In my case) a TiOC PTZ while you are controlling it.
  • Custom split screen layouts cannot be called with #+MULT. This would probably need an ID number set in the NVR's custom split screen setup.
  • A panic backup group would be nice, e.g. 0+FN sets the NVR to panic record a pre-setup group of cameras. (I keep all my cameras recording 24/7, but for some operators it could be useful).
  • Using the keyboard is not available for searching on some windows, e.g. searching the human detection, facial recognition.
  • Manually activating an alarm output (relay)…. although this could get tricky with multiple Alarm boxes added.
  • Auto login on the NKB, I'm the sole user and I don't care about security of someone else using the joystick.
  • LCD screen backlight is always on or off. An option for the backlight to come on when the keyboard is interacted with, then a user set delay before it turns off (e.g. 2min).
 
@Mark_M what DMSS are you using? For light and Alarm there is Also on the Arming and disarming. Some picture below from my DMSS..
 

Attachments

  • Screenshot_20250205_011615.jpg
    Screenshot_20250205_011615.jpg
    225 KB · Views: 0
  • Screenshot_20250205_011314.jpg
    Screenshot_20250205_011314.jpg
    41 KB · Views: 0
@Mark_M what DMSS are you using? For light and Alarm there is Also on the Arming and disarming. Some picture below from my DMSS..
I'm going off topic. Montavue (company) has done a lot of videos on Youtube, including the joystick keyboard.
I got arming and light/siren options in my DMSS app.
What I was referring to is activating siren/light from an NKB1000 connected to my NVR.
 
OK thank you, Here is an idea? Not sure it will work for your TiOC camera or not, I would try preset 98 or 99 and see if that from your camera or keyboard and see if that triggers the alarm output for that camera? IF you can could setup one of the F-1-4 as a fast key. This might need to be setup through an NVR, Alarm, alarm out and setup the cameras alarm output for the alarm to that function and again could call that using your keyboard? This is assuming that your NVR supports the IP alarm output not all do some only offer IP camera input alarm info?

Sorry for the misunderstanding.. Thank you for making it clear..
 
  • Like
Reactions: Mark_M
I don't know but maybe something like this. While first might be only for NVR level only.. I have removed one of the / for forum format.. But
:<PORT>/cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion,AlarmLocal,IVS]

Then for camera?

I am sure you already know but the target server must have HTTP listener

Then there are some newer system that might even support MQTT? Maybe this will help get you where you are trying to go.
None of them is working.. I writing a program to ESP32 that get alerts from IP Camera and its handle the everything. I accomplished the integration with Hikvision and Uniview in the same way. But with Dahua no.

If there is any document that specify how to make this connection it will be helpful