CASE 1: Holidays! I am not at home but I want to know who steals my underwear :(
You will be able to log in to dropbox and see the images there.
1) You need a computer -- I use a RasPi -- and a webcam that is actually detected by the device. Usually, most of them will work well.
2) Install 'cron' 'fswebcam' and 'curl' from the repos:
Code: Select all
sudo apt-get install cron fswebcam curl
4) Fetch the dropbox_uploader.sh script, make it executable (chmod a+x dropbox_uploader.sh), and if wished, move it to /usr/local/bin/dropbox_uploader.sh
Code: Select all
curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh
6) Create a directory named ~/webcam
Code: Select all
mkdir ~/webcam
Code: Select all
#!/bin/bash
IMGPATH=~/webcam/
IMGNAME="$(date +\%Y\%m\%d\%H\%M).jpg"
FULLPATH=$IMGPATH$IMGNAME
fswebcam $FULLPATH
/usr/local/bin/dropbox_uploader.sh upload $FULLPATH $IMGNAME
Code: Select all
crontab -e
Code: Select all
* * * * * /usr/local/bin/snap
Code: Select all
*/5 * * * * /usr/local/bin/snap
CASE 2: I just want to spy on my loved ones :P
1) You need a computer -- I use a RasPi -- and a webcam that is actually detected by the device. Usually, most of them will work well.
2) Install 'cron' and 'fswebcam' from the repos:
Code: Select all
sudo apt-get install cron fswebcam
Code: Select all
mkdir ~/webcam
Code: Select all
#!/bin/bash
IMGPATH=~/webcam/
IMGNAME="$(date +\%Y\%m\%d\%H\%M).jpg"
FULLPATH=$IMGPATH$IMGNAME
fswebcam $FULLPATH
Code: Select all
crontab -e
Code: Select all
* * * * * /usr/local/bin/snap
Code: Select all
*/5 * * * * /usr/local/bin/snap