motioneyeos
motioneyeos copied to clipboard
[Help requested] Possible to make e-mail send conditional?
motionEyeOS Version
motionEye Version | 0.42.1 Motion Version | 4.2.2 OS Version | Debian 9.12
Board Model
Raspberry PI 3
Camera
Simple MJPEG Camera (webcam) Logitech
Network Connection
WiFi
Peripherals
None.
Log Files
None
So my question is this: I use Home Assistant and Node Red. Can I config Motion Eye in such a way that if I'm home (or have been connected through my WiFi in the last X minutes) the camera won't report if movement is detected? I live in a student dorm and I get pictures of me ALL the time.
Also the photo attached are just a bit to late (or no one in the picture), what setting should I adjust?
Thank you so much in advance!
MotionEye in Docker, MotionEye on another OS? A 'simple' (not really) solution is to have 2 cameraX.conf files, one with notifications on, and one with notifications off. Use whatever is monitoring your wifi presence to flip between the files, and restart motioneye. Logic (not actual code): camera1.conf.home #with notification off camera1.conf.away #with notification on wifi detects you're home copies camera1.conf.home to /etc/motioneye/camera1.conf runs command systemctl restart motioneye wifi detects you're away copies camera1.conf.away to /etc/motioneye/camera1.conf runs command systemctl restart motioneye I do not use either HA or NR, so I can't tell you how to do this in your environment.