Yup that did it. The Time planner finally works! Thank youLOL...i'll try that...thanks
That's a major bug dahua needs to fix...
Yup that did it. The Time planner finally works! Thank youLOL...i'll try that...thanks
#======= fetch focus and zoom from camera ===========
aim browser at address...
http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=getFocusStatus
will be asked for username and password for camera. Then cgi response will show desired info.
#======= day script ===========
import requests
from requests.auth import HTTPDigestAuth
import time
#street east ====================
try:
#day profile
url = 'http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(3)
#day autofocus mode
url = 'http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInFocus[0][0].Mode=2'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(2)
#set zoom and focus for day position
url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.663889&zoom=0.272879'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(10)
#perform autofocus
url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=autoFocus'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(10)
except:
a = 1
#======= night script ===========
import requests
from requests.auth import HTTPDigestAuth
import time
#street east ====================
try:
#night profile
url = 'http://http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(10)
#night manual focus mode
url = 'http://http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInFocus[0][1].Mode=4'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(2)
#zoom and focus for night position
url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.680000&zoom=0.300333'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
time.sleep(5)
#repeat zoom and focus for night position to increase reliability
url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.680000&zoom=0.300333'
requests.get(url, auth=HTTPDigestAuth('username', 'password'))
except:
a = 1
RE: oncoming headlights, with a bonus Fog light..Deleting all the schedules from custom operating mode continues appearing to prevent day / night operating mode from reverting the night profile going back to auto color. I think the IPC-B52IR-Z12EB-S2 is now stable.
===============
Flintstone61, Since you showed how your 4MP Z4 is doing with LPC, here is something a little different. One of my LPC cams is a 4MP SD49425XB-HNRB PTZ unit rather than a 2MP unit facing in opposite direction. It actually does OK in both day and night. The night captures are not as crisp as yours, but it is good enough to get a plate with oncoming headlights.
Using PTZ's in that location lets my system shift camera aim and zoom for day and night. This one shifts is framing to slightly tighter at night, but my other one (not illustrated) makes a big zoom down road during the daytime. Then at night targets closer so its IR can work reliably.
Admittedly it requires some python Tom Foolery to get the PTZ's repositioned and properly focused for their day and night positions.
View attachment 182034View attachment 182035
Can you share your night time image settings? Or do you have a thread where its shared?RE: oncoming headlights, with a bonus Fog light..
View attachment 182102