Dahua day/night switch utility - DahuaSunriseSunset

costib

Young grasshopper
Joined
Aug 22, 2018
Messages
46
Reaction score
8
Location
Transilvania
Just tested with another camera, same model, same behavior. It looks like you have to send the activation twice...
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
@costib

Please try version 1.6. In this one, you should only use one camera instance (delete the extra one you made for version 1.5), and enter both profile numbers in the box (I guess that would be "1,2"). It will send the profile change commands 5 seconds apart and hopefully the camera will accept them reliably this way.

 

costib

Young grasshopper
Joined
Aug 22, 2018
Messages
46
Reaction score
8
Location
Transilvania
How can I offset by minutes and not by hours?
Will this tool accept parameters like -0.5 or 0.5 for 30 minutes?
 

Mikk36

Getting the hang of it
Joined
Aug 21, 2018
Messages
105
Reaction score
42
Location
Estonia
Not sure what I'm doing wrong (IPC-HDW5231R-ZE with firmware 2.8...10.0.R from Andy).
First one is from the service, second when I try to fetch the zoom and focus values.
Code:
11/26/2019 9:27:45 AM    Exception thrown attempting web request (http://192.168.155.101/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0): The remote server returned an error: (404) Not Found.
26.11.2019 09:28:23    Application_ThreadException
System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
Annotation 2019-11-26 093326.png
 

67RS427

n3wb
Joined
Aug 19, 2019
Messages
14
Reaction score
0
Location
United States
Can I get some help with my night time settings? I'm having issues getting anything to work when shutter is at 1/1000 or 1/2000. Settings attached, I've tried a few different variations. I get picture at 1/250 but just black with 1/1000 or 1/2000. Picture attached is a cars headlights driving by. Does this camera have a mechanical issue or am I missing something? THANKS!!

*This is a IPC-HFW5241E-Z12E purchased from Empire
 

Attachments

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
1,995
Reaction score
881
Can I get some help with my night time settings? I'm having issues getting anything to work when shutter is at 1/1000 or 1/2000. Settings attached, I've tried a few different variations. I get picture at 1/250 but just black with 1/1000 or 1/2000. Picture attached is a cars headlights driving by. Does this camera have a mechanical issue or am I missing something? THANKS!!

*This is a IPC-HFW5241E-Z12E purchased from Empire
Those high shutter speeds will never work at night. If you don't want to use Auto shutter setting, I would try 1/30 or 1/60 at night with IR turned on.
 

bigredfish

Known around here
Joined
Sep 5, 2016
Messages
17,009
Reaction score
47,454
Location
Floriduh
Really? to capture moving vehicle plates?

I run 5 of the same camera at 1/1000 - 1/2000 and it works just fine... ....................................Do tell...

Night 1/2000
Day 1/1000

HOA Entrance_EntrTag_main_20190311225156_@8.jpg HOA Entrance_EntrTag_main_20190312194249_@8.jpg HOA Rear_Tag_main_20190209004152_@3.jpg HOA Entrance_EntrTag_main_20190312160305_@8.jpg HOA Entrance_ExitTag_main_20190217151802_@8.jpg HOA Entrance_EntrTag_main_20190210201059_@8.jpg HOA Rear_Tag_main_20190129050407_@3.jpg HOA Entrance_EntrTag_main_20190311172136_@8.jpg HOA Entrance_EntrTag_main_20190311162554_@8.jpg
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
1,995
Reaction score
881
Really? to capture moving vehicle plates?

I run 5 of the same camera at 1/1000 - 1/2000 and it works just fine... ....................................Do tell...

Night 1/2000
Day 1/1000

View attachment 52224 View attachment 52225 View attachment 52226 View attachment 52227 View attachment 52228 View attachment 52229 View attachment 52230 View attachment 52232 View attachment 52233
For night capturing plates, yes. I assumed he wanted a good night image. He stated he wasn't getting any picture.
 

bigredfish

Known around here
Joined
Sep 5, 2016
Messages
17,009
Reaction score
47,454
Location
Floriduh
Gotcha

Yeah a lot of folks who don’t know ( I was there once) dial in a pretty static night picture and don’t understand that with movement it’ll blur and be useless .
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
1,995
Reaction score
881
Gotcha

Yeah a lot of folks who don’t know ( I was there once) dial in a pretty static night picture and don’t understand that with movement it’ll blur and be useless .
Those LPR night images are really nice.
 

quest100

Pulling my weight
Joined
Aug 10, 2018
Messages
147
Reaction score
223
Location
CA
I would like <Simulate Sunrise> and <Simulate Sunset> buttons added to the window for configuring individual cameras. This would allow testing of a single camera without affecting the other cameras. Is this easy to do? Anyone else want this?
 

erensfd

Getting the hang of it
Joined
Nov 17, 2017
Messages
48
Reaction score
32
Location
Chicagoland
Thanks for the tool! Easy to use and works as expected.

My Dahuas switch to night mode once IR kicks in automatically, but that doesn’t work with the two cameras that I force color at night with. This is better than using Dahua’s built-in day/night schedule as it adjusts based on changes in sunset/sunrise time every day. I thought I could do the same thing with BI’s event scheduling but I don’t see this command in the drop down list. Thanks!
 

costib

Young grasshopper
Joined
Aug 22, 2018
Messages
46
Reaction score
8
Location
Transilvania
I would like <Simulate Sunrise> and <Simulate Sunset> buttons added to the window for configuring individual cameras. This would allow testing of a single camera without affecting the other cameras. Is this easy to do? Anyone else want this?
Indeed, it would be useful.

+1
 

HoosierD

Getting the hang of it
Joined
May 29, 2018
Messages
37
Reaction score
26
Location
Ventura, California
Good golly mis Molly. Noticed the service wasn't working any more, and to my amazement, the error log was 54GB. Deleted without even looking. Oops. Jumped to V1.6.0.0 and I can't connect to any camera (HDW2231RP's, HDW5231R's, or SD1A203T-GN)? I'm consistantly getting "The remote server returned an error: (404) Not Found." Post 246-247 suggest factory reset. What am I missing? Am I looking at factory reset for all my cameras maybe? I've set this up before without issue. Camera firmware isn't "old", but maybe not the newest (been stable). Any suggestions?

UPDATE: Factory resets no worky. What settings in the camera(s) prevent the tool from communicating?
 
Last edited:

mezger

Young grasshopper
Joined
Dec 4, 2017
Messages
31
Reaction score
12
@bp2008 thanks for posting this, I can now control my camera via .py. I saw a similar objective mentioned in a few places, but can't see where anyone successfully implemented it: do you or anyone know how to obtain whatever it is the camera uses to calculate the ambient brightness for an ambient conditions triggered changeover? I'd prefer to control for cloudy weather. I read through the documentation and can see what appears to be an adjustment for the camera's sensitivity, but can't see where to get the variable it's sensitive to. An allternative is I could let the camera automatically changeover and check every 30s or so as to whether it's in day or night mode... but so far, I don't like the brightnesses the camera demands to make a change from day to night mode.
 
Last edited:
Top