Thanks to Motion which has GPL license: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
This repo only has example config file for motion and a script that sends email alerts and upload recorded video to Google docs.
- Download and install Rasbian Wheezy on your Raspberry Pi.
- Download and install motion.
- Download Google Drive app on your mobile device
- Create folder named 'motion in your Google Drive
- Change USERNAME, PASSWORD, FROM_EMAIL and TO_EMAILS in zconf.py
- sudo cp motion.conf /etc/motion/
- sudo cp zalert.py zemail.py zupload.py /etc/motion/
- sudo /etc/init.d/motion restart
- To receive SMS text message alert, set up email forwarding to your mobile SMS email address like [email protected] for Verizon.
- To view real-time video streaming, set up your router's port forwarding to your Raspberry Pi's ip address port 8080.
./zalert.py --avideo ./test.avi