TheWaterbug
Known around here
I pulled the git repos for DahuaSunriseSunset and the required BPUtils on my Windows box, made the changes suggested by ChatGPT, and it appears to work.I asked ChatGPT if it could give me the corrected curl commands to program my camera:
ChatGPT also offered me some changes so that the updated utility will query each configured camera to determine which API it uses, to work with both older firmware and newer firmware, and I tested that with an Amcrest IP5M-T1277EW-AI (legacy API), and that appears to work as well.
The logging is also enhanced to show more detail.
I can compile and install the app, and the Simulate buttons cause my EmpireTech IPC-B52IR-Z12E S2 and my Amcrest IP5M-T1277EW-AI to switch to Day or Night mode, respectively.
I'll know more about whether it's actually working properly in a few days. How should I set my cameras up for profile management, if I'm going to rely on this service?

I am working with local code on my C: drive, and I'm not sure how to update a git repository, or even whether these changes are worth putting in, since I really don't know what I'm doing, and I'm just doing what the machines tell me to to do.
But in any case, all the changes were made to a single file, ServiceWrapper.cs, and my new version is available, here:
as well as the compiled executable:
YMMV, n=1, use at your own risk.
