This is the first upload of the Dahua python script to help automatically flop between Day and Night mode using OpenWeatherMap API for determine when sunset and sunrise is supposed to occur. I wrote this for the "Warm Light" cameras as they don't do this natively today.
To get start clone the repository and edit the cameras.yaml and config.yaml to meet your needs. The run the script with a "-s" option to setup the script for cron execution.