Is there a way to turn on the Dahua camera LEDs programmatically via an API call? Like for the IPC-Color4K-T, instead of setting a schedule or whatever, I'd like to send a API call to the camera to turn it on, at some level.
Yes, but if you have been following the 4K-T thread, you saw that the APIs for the new GUI are different than the older GUI, so it is a matter of someone trying to figure them out LOL. I figured them out to change the profiles as that is enough for my needs, but I will see if I can figure out the API.
Yes, but if you have been following the 4K-T thread, you saw that the APIs for the new GUI are different than the older GUI, so it is a matter of someone trying to figure them out LOL. I figured them out to change the profiles as that is enough for my needs, but I will see if I can figure out the API.
Oh, if you can share how you're doing the profiles, maybe that'll get me started. From what you said, it sounds like maybe you use a python script to do request.post with fields associated with the "button" on the interface?
Interesting. Let me try those. Did the two cameras that this API worked for using the new GUI or the old GUI? IPC-Color4K-B180 (PFW-5849-A180-E2-ASTE) also use web5.0
# Turn off Led:
curl --digest --user admin:pass 'http://192.168.100.5:10085/cgi-bin/configManager.cgi?action=setConfig&Lighting_V2\[0\]\[1\]\[0\].Mode=Off'
# Turn on Led:
curl --digest --user admin:pass 'http://192.168.100.5:10085/cgi-bin/configManager.cgi?action=setConfig&Lighting_V2\[0\]\[1\]\[0\].Mode=Auto'
Notes:
1. I assume you have direct connection to the camera, either via a POE switch or via Virtual host (NVR feature - blue e icon).
2. The illuminator is set to a none zero value
3. The camera is on the night profile (that's what the middle indices means - [1] = night profile).
4. Make sure to replace the IP and port (and the credentails) with your values.