I am trying to set up a Raspberry Pi model B+ with PiCamera to be a security camera. Wifi connects to my home network, motion is installed, detecting motion and saving pictures, and I am able to send mail via ssmtp and Google's servers at smtp.google.com:587
. You can see my setup here.
The problem is with the on_event_start
and on_picture_save
triggers, which do not seem to fire. on_event_start
executes the command: mail -s "Motion detected" MYEMAILADDRESS </dev/null;
that command works fine when I run it by hand, but is not run when motion is detected. on_picture_save
executes the command: mpack -s "Patio door" %f [email protected];
that command works fine when I run it by hand, but is not run when a picture is saved. I know the setup is right because I have a working "Front door" security camera that I set up six months ago and it is still working properly.
Can anyone suggest what I might have missed when setting up the new camera?
mail -s "Motion detected" MYEMAILADDRESS
actually DO on your system, if you just put it in as a command line? (I'm assuming you have changedMYEMAILADDRESS
to something sensible).</dev/null
that creates the bulk body.on_picture_save
works buton_event_start
doesn't...