PointLookout247
Getting the hang of it
where would you put the above linux code on the cam itself? you have to edit a file or setup a cron?
Will this utility work, or be made to work with other camera brands?
Am I right in ASSuming this only sends a focus command once? Im having issues with a 5231 Z12 loosing focus. Even during the day with no subjects
Sent from my VS990 using Tapatalk
I’ve got a question for auto launching on windows startup. I’ve got the GUI set to run when windows logs in. How would I then configure it to start the service?
where would you put the above linux code on the cam itself? you have to edit a file or setup a cron?
@bp2008 , Thank for this.
Was trying to use this for my Dahua IPC-HFW5231E-Z12E and for some reason i get
Lat 0 and Lon 0 , also.
And hours for Sunrise and Sunset are off too based on my Lat/Long .
I used this to get the long/lat
Latitude/Longitude Finder - MY NASA DATA
and also some nice info about your location , regarding to Sunrise and Sunset :
Here is mine
Sun & moon times today, Rocklin, California, USA
Thanks for any help!
P.
Is there a way to make this continue checking focus and adjusting?
@bp2008
Tried setting this up. Says service started successfully, but when simulating sunrise I get the following error.
Any ideas?
4/26/2018 1:02:01 AM TriggerSunriseActions
4/26/2018 1:02:37 AM Exception thrown attempting web request (http://192.168.1.219:37777/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1): The operation has timed out
Repeat 5x
4/26/2018 1:07:01 AM Cancelled web request (http://192.168.1.219:37777/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0) due to the next event time being reached.
4/26/2018 1:07:37 AM Exception thrown attempting web request (http://192.168.1.219:37777/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1): The operation has timed out
Repeat 6x
That was it, had the wrong port. TCP port instead of http.That looks like the error you would get if you typed in the wrong address, port number, or protocol (http vs https). Try the URLs from the error message in a web browser on the same computer running the service.
I wanted to use stronger noise reduction at night and weaker during the day, but Dahua seems to have made a mess of the profile management. There doesn't seem to be a way to have the camera switch automatically between Day and Night profiles when the camera changes between "Color" and "Black & White" mode.
The Profile Management tab has a "Normal" mode which is evidently supposed to do this (IPC/Camera Configuration - Dahua Wiki). But I just tried it. It doesn't do that at all. Choosing "Normal" just makes the camera use a third profile, which is neither "Day" or "Night" but a separate third profile called "Normal", which stores settings independently of the "Day" and "Night" profiles.
Dahua engineers must live in a world where it is perfectly acceptable to say:
or
Now I know why Nayr has his profile management scripted externally, but even that seems to be a mess: Switch Dahua Day/Night Profile via IPC HTTP API
Update
I've written Windows software to take care of this.
GitHub - bp2008/DahuaSunriseSunset: A Windows Service which changes the profile of dahua cameras between Night and Day at each sunset and sunrise.
Thanks for this service, works great! Forgive me if it's in the thread and I missed it, but can anyone point me to some decent day/night profile settings?
they dont care about you, the dont sell direct and dont want to sell direct to end users like you.Absolutely crazy this isnt a native feature of the Dahua experience. I mean REALLY? If this is their level of care for the end-user I gotta say this doesn't make me think they give a damn and I'll be skeptical of buying this from Dahua again.
Thanks for the script, however. I'll have to try it out.
When simulating sunset, how long does it take to switch back to day mode?
However, when I switch profile from night to day, the camera does not de-activate the backlight. I have to switch profile to "normal" for that to happen. This effectively renders my backlight capability non-operative.
Anyone know why this might be?
I am having an issue with the backlight setting. This is not a problem with the app from @bp2008
When profile = day then backlight = off When profile = night then backlight = on.
However, when I switch profile from night to day, the camera does not de-activate the backlight. I have to switch profile to "normal" for that to happen. This effectively renders my backlight capability non-operative.
Anyone know why this might be?
@bp2008 would it be difficult to have the program instead switch to "normal" from "night" mode instead of "day" mode? For whatever reason that mode indeed deactivates the backlight while the day/night cycle has no effect on backlight (any kind of backlight).
Here you go. Let me know if it works or not: bp2008/DahuaSunriseSunset
5/6/2018 9:08:19 PM DahuaSunriseSunset 1.3.0.0 Service Manager Startup
5/6/2018 9:09:14 PM TriggerSunsetActions
5/6/2018 9:10:15 PM Exception thrown attempting web request (https://192.168.1.108:80/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1): The underlying connection was closed: An unexpected error occurred on a send.