Capture photo and backup to Dropbox (API) from Raspberry Pibackup by press switch from ET-TEST 10P/INP
- You need a DropBox account. Hop on over to https://www.dropbox.com/getspace --it's free.
- USB Web Cam
- Raspberry Pi
- ET-TEST 10P/INP
sudo apt-get install python-opencv
sudo apt-get install git
git clone https://github.com/wuttinunt/capture-backup-file-dropbox.git
cd capture-backup-file-dropbox
git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
cd Dropbox-Uploader
Run the script with ./dropbox_uploader.sh
(if it fails, try chmod +x dropbox_uploader.sh)
You should see this...
Then, You need to visit this link https://www.dropbox.com/developers/apps (must logged in) and follow this
- Click
Create app
button - Choose an API > ```Dropbox API
- Choose the type of access > App folder (up to you in my case I want access for some folder)
- Set up name your app and then click Create app button
- Now look at App key and click show App secret you need use it for set up for next step
- At Shell input your App key
Enter
- Once you've entered your keys and answered the question "app" or "full" your Pi will request an authorisation token and you will be given a web URL you need to visit to activate it and clink
Allow
If it works, you should see this in your browser… Success!
1.Connect jumper wire look at table
GPIO raspberry pi (pin) | ET-TEST 10P/INP (pin) |
---|---|
16 | 1 |
2 (5V) | 10 (5V) |
6 (GND) | 9 (GND) |
credit image http://grimbodroid.blogspot.com/2012/08/following-directions-on-these-pages-1.html
2.Connect USB Web Cam to Raspberry Pi
Please ensure your web cam must not run on another service and cd
same directory with capture_dropbox.py
sudo python capture_dropbox.py
Note
press switch for capture photo.