Dual Light or Smart light function?
Does Openipc have Smartlight functionality ie IR-led to White light led on motion detect / human detect I have installed Openipc on both the Sigmastar SSC338Q and SSC378DE modules.
IR-led works on auto day/night but I noticed that when I move close to the camera the IR-Led turns off and after a small time it turns back on and seems to do that on movement is that expected? SSC338Q gpio for IR-led=60 for White-led=59 (Anjoy) SSC378DE gpio for IR-led=13 for White-led=14 (Hushi/Vatilon HD8)
I presume there is a gpio for motion? and if so then could a script be made to trigger the white light? and how do I find the motion gpio?
Kind regards
You can create /usr/sbin/motion.sh script, make it executable, and it will be called every time motion is detected. You can fill this script with anything you want - white light, send to telegram, etc.
Two parts of this got better with the majestic work landing in the next nightly, and one observation in it turns out to be a bug that work fixes.
"When I move close to the camera the IR-Led turns off and after a small time it turns back on" — that is the gain-threshold day/night monitor being talked into daylight by your own reflection: step close, the IR light bounces back, the sensor's gain drops through the day threshold, and the camera briefly believes in morning. The reworked automatic mode requires the scene to stay bright for a full minute before it returns to day (and slows itself further if it ever starts cycling), so a person walking up to the lens no longer ends the night. It also needs no thresholds at all any more — the light monitor alone, with nothing else configured, switches from the sensor's own exposure state. Details: https://github.com/OpenIPC/wiki/blob/master/en/majestic-streamer.md#auto-daynight-detection
On driving the white LED: motion.sh (as suggested above) remains the way to trigger anything from motion. What is new is what the script can drive: besides the plain GPIO toggle, boards whose white LED sits on a PWM pad (the SigmaStar modules you name are not in the first supported family — that is HiSilicon EV200/EV300 and Goke GK7205V200/V500 for now) can have majestic dim the lamp to the ambient light rather than switch it, with the current percentage published as a night_light_duty metric. A smart-light mode proper — IR by default, white on human/motion detection, as the commercial firmwares do — is not implemented; if that is the ask, it is a good standalone feature request against majestic with this issue linked.
The camera-side changes arrive with the next nightly build; the web interface half is already on majestic-webui master.
Closing — the fixes described above have been in the nightly builds since early September. If the IR LED still switches off when something comes close to the camera on a current nightly, please reopen with the nightMode section of /etc/majestic.yaml.