Raspberry Pi running Motion Pie. USB Webcam is connected to it. A bash script pushes small snippets of videos (shot when motion is detected() to your phone.
- Signup for PushBullet and install the android app on your phone (and chrome extension on your browser)
- Take a Raspberry Pi and connect a Raspberry Pi Camera or USB Webcam to it. I used a UVC USB Webcam.
- Format a SD Card on your computer and write the Motion Pie image to it. Here is how to do it.
- Connect your Raspberry Pi to your home WiFi router using Ethernet cable. My house has CAT5 wire running through pipes concealed in the walls.
- Perform basic configuration on the Raspberry Pi using its web interface.
- Administrator password. (Otherwise you wont be able to connect to it using SSH/PuTTY)
- Setting the timezone.
- Network setting - I used static IP address.
- Enable FTP write support.
- Video Device - Camera name or rotation etc.
- File storage: I used "network share" option to point back to the RPi's SD card folder shared over the network. Not sure why the default option of saving files to SD card did not work for me.
- Motion detection threshold - I set mine to 10% because I also have a motion activated light switch installed outside my door.
- Working Schedule - Make sure to cover all days and times of the week
- Use PuTTY to install a bash script (pushbullet.sh) on it.
- Make sure to set your PushBullet access token in the script.
- Before you can use nano to create a script file , you will need to remount the filesystem to make it writable. to do that issue the command: mount -o remount,rw /
Read FAQ here.
- Mark the script as executable: chmod +x pushbullet.sh
- Configure the Raspberry Pi using its web interface to run the pushbullet.sh script when Motion is detected. This option is available under "Motion Notification"
- Put everything in an enclosure and install it near your door. In my case I used a lunch box to hold the RPi and its power supply (standard 5V USB smart phone charger). I installed the cam near the door and ran its USB came through my concealed wiring pipes embedded in the walls of my apartment.
- Wait for motion.
My web configuration settings:
|Enable FTP and Samba write support|
|Nothing much to change here.|
|Name the camera. Since I had mounted my camera upside down,|
I had to set the rotation to 180 degrees.
|Set the storage to Network Share and point it to the IP address of RPi itself.|
Enter the appropriate credentials as well.
|I set the motion detection threshold to 10% and|
turned the frame changes ON (Pink square around the changing parts
of frame where motion is detected)
|Working schedule set to cover all days and times.|
The location of pushbullet.sh is mentioned here under Motion Notifications - make sure to perform that setting only after writing the script to the SD card using PuTTY.
Motion Clips and Screenshots
|Motion detected notification on phone|
|Motion clip being played on phone|
|Motion clip being played on phone|
Photos of hardware
|All in a lunch box. Switch added to make the thing easy to turn on and off.|
|5V smart phone charger acting as Power Supply.|
|There is a security door in field of view of my camera, perhaps I should install|
the camera outside this door to get a clear view of the person ringing the door bell
|I use a webcam, it has infrared lights, haven't bothered to figure out how|
to activate the illumination infrared LEDs over USB.....
|...because I have a motion switch which turns on the porch light|
whenever someone comes near the door.
- motionPie has been renamed to motionEyeOS and lives now at https://github.com/ccrisan/motioneyeos
- Get the latest SD Card image from:
- Installation instructions can be found here: