Read the statement by Michael Teeuw here.
Motion Detection with RaspiCam, Non-Module version
-
@lolobyte
Can U specify what this command does,. Am not sure if it isn’t doubling the motion command:@reboot sleep 150; screen -S motion -dmS sudo motion
(ignored the -c path part, cause renamed the config to motion.conf, so not needed)why is there two time motion - in it?
By the way it isn’t working on my mirror
-
I am completely unable to make this work.
The camera wont take any snapshots, maybe just a config error. But can someone confirm that this still works or show me something that works? Dont wanna go out and buy a pir sensor if i can make use of the raspicam. :) -
@Kimzer - If the camera won’t even take a snapshot, then none of this is going to work. Have you tried the various tutorials about getting the PiCam to work? The ones that are at the basic level of “I enter this command and it takes a picture right then and there and I can download it”?
Start with the official Getting Started Guide. Once you can get images from the camera to your Pi, come back.
If you can get the camera to produce images but have trouble getting Motion to work, follow my tutorial and the part where it says “at this point you can test it but…”, stop there. Change the parameter in the
motion.conf
file namedoutput_pictures
toon
and changeon_event_start
toecho Motion Detected!
. That should put a bunch of snapshots on your memory card. Test Motion by entering./motion -c motion.conf
and you should see motion writing messages to the screen. -
Ah my bad, poorly formulated on my end here.
I am able to take snapshots, and i have gotten the camera to work just fine itself. It is the motion part i am struggling with.
But i will have to test some more.
-
This post is deleted! -
@bhepler It works perfectly !
Thank you so much for sharing ! -
@bhepler I was hoping you could give me a hand. I’ve got your motion working but. Pm2 is not auto starting the motion. Everything is working fine if I manually “pm2 start motion” and " pm2 start mm" and I’ve tried adding @pm2 start motion to my auto start along side my “pm2 start mm” but that only breaks both processes. I’m trying to get both the magic mirror and the motion to auto start upon reboot.
-
@stangarrang Sure, no problem. Quick question: Did you enter
pm2 save
after you started both the motion and the Magic Mirror processes? -
@bhepler yes that was one of the first things I did but after reboot nothing was saving. Actually just as you replied I went through a couple steps for pm2 startup plus the command that came after. After that I did a pm2 save and now things are working well :) thanks for your prompt reply!
-
is it possible to use Motion to activate the screen and MMM-Facial-Recignition simultaneously? Maybe also use the
on_event_start
to activate some lights in the front of the MM to increase image quality…