I set it for 30 seconds and it worked perfect. I like the new focus and zoom fields you added too. Thanks!
View attachment 24027
Ah, I just realized those Zoom/Focus features were new in version 1.1 (Sept 12th) that I forgot to upload a release for.
I set it for 30 seconds and it worked perfect. I like the new focus and zoom fields you added too. Thanks!
View attachment 24027
You should rename this thread something like "Dahua day night switch utility - DahuaSunriseSunset" so more people can find it.
The 30 seconds is for time between adjustFocus commands. I have sunrise offset set to .2 (12 minutes later) and sunset offset set to -.1 (6 minutes earlier).30 seconds? lol
Im in Delaware USA. I had a lat and long in the settings. Any idea why the date is so far off? I dissabled it for now because it was forcing my cams to day profile and its night.It does not need an internet connection. It does need latitude and longitude. I'm not confident that the code for calculating sunrise and sunset works in all parts of the world.
Well I guess that would do it lol. Google listed my position as positive values. I double checked it lol. I just did it on the NASA site and it was negative. Picture to prove im not a liar lol. Ill go back tonight and fix it. Thanks!The location you entered is in western China. The USA is all negative longitude values.
Apparently the sunrise calculator code I'm using doesn't like that the entered coordinates and the time zone of the computer are so far apart.
Oh the West indication means negative side of prime meridian. Brushed up on my geography today. How about that. Sorry I just dont ever use coordinates in my day to day stuff and have forgotten this stuff lol.Yeah, unfortunately there are a lot of ways of writing latitude and longitude.
I guess your theory about the extreme mismatch with the PC was right.