[For Dafang Hacks Camera Page] Detect if it's dark using image analysis and if so turn on night mode (IR Led on and IR Cut off).
[For Dafang Hacks Camera Page] Detect if it's dark using image analysis and if so turn on night mode (IR Led on and IR Cut off). This is a fix for auto night mode not working on Wyze v2 (see https://github.com/openipcamera/openipc-firmware/issues/96). The darkness threshold is set in the script. If it doesn't work for you feel free to leave a comment here or file a github issue at https://github.com/weilu/isitdark. I can make it configurable on the extension UI.