Giter Club home page Giter Club logo

capture-backup-file-dropbox's Introduction

capture-backup-file-dropbox

Capture photo and backup to Dropbox (API) from Raspberry Pibackup by press switch from ET-TEST 10P/INP

Firt step

Device

  • USB Web Cam
  • Raspberry Pi
  • ET-TEST 10P/INP

Install package

sudo apt-get install python-opencv
sudo apt-get install git

Download and set up DropBox Uploader (clone this repository)

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... setAPI

Then, You need to visit this link https://www.dropbox.com/developers/apps (must logged in) and follow this

  1. Click Create app button
  2. Choose an API > ```Dropbox API
  3. Choose the type of access > App folder (up to you in my case I want access for some folder)
  4. Set up name your app and then click Create app button
  5. Now look at App key and click show App secret you need use it for set up for next step
  6. At Shell input your App key Enter
  7. 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!

setAPI

setAPI

Prepair before run program

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)

GPIO

credit image http://grimbodroid.blogspot.com/2012/08/following-directions-on-these-pages-1.html

2.Connect USB Web Cam to Raspberry Pi

Run

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.

Reference

http://raspi.tv/2013/how-to-use-dropbox-with-raspberry-pi

capture-backup-file-dropbox's People

Contributors

wuttinunt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.