I too was bummed at my two higher end Dahua's can't automatically select a day/night profile based on a sensor rather than a profile time setting.
I know that there BP2008 has an app out there that goes by lat/long to automatically set day/night and someone else mentioned a script that could be run but I got to thinking...
There is a command line you can use to do different camera functions, one of them being turning on a profile.
So here are the basic steps I followed to make this work with no external app/script and just using
Blue Iris and the two models of Dahua cameras I have.
1) Main Blue Iris options: Schedule: enable it and I used civil twilight. Plugged in my area's lat/long.
2) Edit one of my Dahua camera properties go to Schedule then override global schedule, then goto event schedule, enable it then click Add. I checked the "relative to sunrise/sunset" and entered the time for this event for what it says will be sunrise (ie: 7:15:00 am). All profile boxes checked. For function I chose any blank preset (my Daylight is 13 and night is 12). Before you OK this make sure the "search back at startup/reset" is checked.
3) Now go to your PTZ/Control tab for that camera's settings. Choose edit presets and choose whatever preset you chose in previous step (assuming you're doing day profile first). Now in the http:// or script box put this:
http://login_name: Password@ip-address: Port/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0
The example steps is for the day profile.
The night profile is identical except you choose another preset in step 2 & 3 and use this script:
http://login_name: Password@ip-address: Port/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1
The "normal" profile is the same, except I think it ends in "2" and obviously you use your own login/pw, ip and port for your cameras.
Anyway I just tested this out and it does seem to work so if this is the case then no external scripts would be needed to run, just use blue iris. Should work on other camera manufacturers that allow http commands.
Would appreciate if it others play around with this and let me know if this seems to be solid. I hope I didn't leave anything out!
and sorry if it's too concise.
**** IMPORTANT*** there are no spaces in the two script examples above but I couldn't do plain text so a colon with a p right after it became
I couldn't figure out how to turn on plain text mode for this!