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_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 MYACCOUNT@sendtodropbox.com; 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?