Skip to content

bhileman/cardtocloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

cardtocloud

Quick upload device from SD card to cloud storage.

For more build details" https://hackaday.io/project/19390-cardtocloud-the-quick-photo-uploader

Description:

  • Hardware - Linkit Smart 7688
  • Push button, LED, and resistors Firmware - 0.9.3
  • Supported Cloud Storage - Google Drive
  • File Support - jpg (JPG)

Installation:

  1. Follow steps here to get device connected to wifi: https://docs.labs.mediatek.com/resource/linkit-smart-7688/en/get-started/get-started-with-the-linkit-smart-7688-development-board
  2. Copy files to root directory on device using scp client
  3. SSH into device ,I use Putty, for Linkit device ip mylinkit.local port 22
  4. Install google drive api pip install --upgrade google-api-python-client
  5. Create google app, active google drive and plus api, create credentials oauth client(other), download json, insert into config folder

Usage:

  1. If using a different device you will need to update the directory for the os.walk piece of code. The Linkit mounts the SD card in this tmp folder location. This varies with your device.
  2. connect device to wifi
  3. Insert SD card
  4. run program python root/app.py
  5. The code is written to initiate with the press of a button, if only using this linkit with the additional hardware the code will need to be updated.
  6. if first time using copy url from command
  7. Go to link in browser, authorize the app, copy code
  8. Manually enter code into command enter certificate will save to config folder
  9. Upload will gather all photos on sd card and will upload all photos to the folder specified

Planned Updates:

Software:

  • Add duplicate protection PENDING
  • Main folder, year and month sub-dir when uploading PENDING
  • Run on button press COMPLETE

Credits: Thanks Jeremy for the google flow code. Helped a ton! (https://github.com/jerbly/tutorials)

About

Quick upload device from SD card to cloud storage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages