Read the statement by Michael Teeuw here.
Motion Detection with RaspiCam, Non-Module version
-
@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… -
@AnduriI It should be. The motion system will operate independently of the mirror and only controls the signal running down the HDMI cable to the monitor. The Pi camera and the Magic Mirror process are still running.
If you create a simple python script to control the pinouts on the Pi, you should be able to switch on some simple LED lights to illuminate the front of the mirror.
-
@bhepler
Hello, I am a true n00b and I am having issues with your process for getting the Pi camera to work. I copied and pasted your first line exactly and I get the following.pi@raspberrypi:~ $ sudo apt-get install -y libjpeg-dev libavformat56 libavformat-dev libavcodec56 libavcodec-dev libavutil54 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5 libpq-dev Reading package lists... Done Building dependency tree Reading state information... Done Package libmysqlclient-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package libmysqlclient18 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Unable to locate package libavformat56 E: Unable to locate package libavcodec56 E: Unable to locate package libavutil54 E: Package 'libmysqlclient18' has no installation candidate E: Package 'libmysqlclient-dev' has no installation candidate pi@raspberrypi:~ $
What did I do wrong? Please help and thank you in advance.
-
@dam4
Are you running raspbian Jessie or Stretch?Looks like the names where changed
Jessie: https://packages.debian.org/jessie/libmysqlclient-dev
Stretch: https://packages.debian.org/stretch/default-libmysqlclient-dev -
@yawns I am pretty sure I am running Jessie. How do I know for sure?
-
@dam4
In the terminal runcat /etc/os-release
Maybe you need to run
sudo cat /etc/os-release