I use it exactly like that.skarabe wrote:Hi
I'm new to MotionEyeOS and must say you have done a great job, making the Pi accessible for surveillance purposes for a non tech wizard like me.
However, one thing puzzles me. I don't want to fill up my NAS with movies of me walking around at home. I want the motion detection running when I'm away and off when I'm home. I'm aware of the schedule possibility, but my life doesn't follow a schedule like that. With the schedule, there would still be loads of movies of myself + motion detection would sometimes be off when I'm away.
Naturally, the cream of awesomeness would be if the MotionEyeOS could detect the state of my alarm system and activate motion detection when the system is armed, but I realize that will be a tough one.. So, to bump RPi85's idea with external triggering, I have another question. Is there as command I could run from a SSH session that would start (and stop) the motion detection? If Yes, maybe I could find a way to have my automation system connect via SSH and start/stop the motion detection depending on the state of my alarm.
While you're at it - is there a shell command to start/stop recording? That would be of interest in case my alarm system goes into an "in alarm" state.
ccrisan wrote:External motion triggering is not currently possible with the motion daemon. I'm not sure how this could be implemented. However executing a script upon motion detection can be achieved using the "Run A Command" option in the "Motion Notifications" section of the menu.
First of all great work you have done, really appreciate it.
Would it be possible to trigger motion (=start recording) with our own scripts/Python? This way we could add external triggers from PIRs, magnetic switches, home automation systems, home alarms etc. Likewise, would it be possible to trigger a script when motion is detected? This would allow turning on IR/LED lights for example.
I have an init script that ping regularly defined smartphones. If none detected, script calls another script to start motionEye init.d (motion process is started with it). When a smartphone is detected, it stops motionEye by init.d too. With a SSH priv/pub keys the process can be automatic.
Another question : Does the RPi2 version of MotionEyeOs use MMAL-motion and optimized for RPi2 ? I have a RPi1 and think about buying RPi2 to improve perf but i'm not sure now that RPi2 is better for now, apparently it depends on motion version.