OpenWrt Forum Archive

Topic: Dropbox API

The content of this topic has been archived on 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dropbox is an awesome way to store and share files in the cloud (e.g. you can use it to mirror files across many computers or routers).  BTW, if you'd like to sign up, here is my referral link (both you and I will get some extra space if you use it):  LINK

My specific goal was to create a script that would poll my Gmail account every few minutes and check for specific messages that contain attachments.  Then, it would save the attachments to my dropbox account so I could easily access them on all of my desktop computers.  I used python and it all worked out nicely.  The steps below will get you up and running with the Dropbox API. 

My router is WNDR3700v2 running 10.03.1


These steps assume that you already have a dropbox account. 

Step 1:  Sign up for the dropbox developper account here:  https://www.dropbox.com/developers

Step 2:  Create a dropbox App using this link:  https://www.dropbox.com/developers/apps

Step 3:  Install python on your router:

opkg update
opkg install python python-openssl

Step 4:  Install setuptools (needed to install the Dropbox API)

cd /tmp
wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
sh setuptools-0.6c11-py2.6.egg

Step 5:  Download and unpack the API from dropbox website: https://www.dropbox.com/static/develope … dk-1.2.zip

Step 6:  Go through the short tutorial on how to use the API.  https://www.dropbox.com/developers/start/setup#python 

That's it.  Let me know if you run into any problems.

Thank you for this tutorial.
I have idea to save openwrt logs in dropbox folder. I'll try this tutorial on next weekend )
Unfortunately dropbox API doesn't offer any append or concat functionality for files. So it is useless for logging sad

(Last edited by tectep on 4 Feb 2012, 10:45)

Here is a small HOW-TO add a new torrent tasks to your router, using Dropbox cloud.

You just drop your *.torrent-files to Dropbox and router will download it.

Please, install a DropboxAPI first as decribed above.

(Last edited by chatlanin on 30 Mar 2012, 21:29)

The discussion might have continued from here.