How long needs the Cam switching from b/w-night to color-day using the http-api?

morpheus

Getting the hang of it
Joined
Nov 9, 2015
Messages
130
Reaction score
68
Hi,

currently i don't have a dahua cam and before i buy some i have a special question.

The camera can be switched from multicolor-daymode to blackAndWhite-nightmode by using the http-api.

Switching to Nightmode:
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[1].DayNightColor=2

Switching to Daymode:
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[1].DayNightColor=0

Switching to Automode:
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[1].DayNightColor=1

Could someone test this, please? I don't need an exact time in milliseconds. A statement like "it needs less than 1 second" or "it needs 4 to 5 seconds" would be nice.

best regards
morpheus
 

nayr

IPCT Contributor
Joined
Jul 16, 2014
Messages
9,329
Reaction score
5,325
Location
Denver, CO
https://www.ipcamtalk.com/showthread.php/8960-Switch-Dahua-Day-Night-Profile-via-IPC-HTTP-API

takes a fraction of a second, all my cameras blink from one to the other simultaneously if I make the requests in parallel.. I'd say it takes longer to establish the http connection than it does for the camera to process it.. the image may be adjusting for a few seconds after, but the deed is done.. you can hear the IR cut trigger pretty much ass soon as the request has completed..

the adjustment time after switching is going to be dependent on environment and settings, if its all set to auto and its still light out its like it just blinks from b&w to color.. but if it dramatically changes the exposure, then it'll take however long it takes to adjust to the lighting conditions, few seconds tops.
 
Last edited by a moderator:

morpheus

Getting the hang of it
Joined
Nov 9, 2015
Messages
130
Reaction score
68
Wow, thanks for the quick answer and the link.
This sounds really good. :)
 

nayr

IPCT Contributor
Joined
Jul 16, 2014
Messages
9,329
Reaction score
5,325
Location
Denver, CO
the longest changes you'll find are going to be due to exposure settings.. for example, I switch to BW an hour before sunset.. nice and smooth transition to B&W.. but my ALPR camera if I change it from 1/500 shutter to auto shutter externally via API at midnight can take 4-5 seconds for it to adjust from a totally black image to a grainy greyscale image.. and thats about the slowest I can think of, going form one extreme to another.

if you used fixed exposures and manual settings like I do on my LPR camera its pretty quick, I issue about 5 commands to that at sunrise/sunset and you if you pay attention you can see it happen sequentially, but dont blink.
 

morpheus

Getting the hang of it
Joined
Nov 9, 2015
Messages
130
Reaction score
68
At night a PIR triggers my outside lights and my homeautomation notices this. I will try to switch the cam to color in this case.

I can not find any dahua manuals on the internet. I found a thread with firmware-files but not with manuals. Do you know where i can find dahua manuals?

regards Andreas
 
Top