loading

This instructable is an extension to the Datalogger for Arduino Yun. This lets you use the Yun to log your sensors to the SD card, and uses Python and the Dropbox API to store the logged data periodically so you don't lose your data to the elements.

The link to the Github repository is here : https://github.com/ankitdaf/yun-datalogger-dropbox

Step 1: Setup Your Dropbox App

Create a Dropbox account if you don't have one already. You can do that here : http://www.dropbox.com

Next, go to the Dropbox Apps Console here : https://www.dropbox.com/developers/apps/create

Create an app with the options shown in the image.

Note down the app key and the app secret that you get when you create this, we will use it later.

<p>Hello,</p><p>I can't pass the authorisation. It keeps telling me:</p><p>Error.Cannot connect to Dropbox</p><p>Please check app secret and key, and rerun script to get token</p><p>I filled in the app secret and key.</p><p>What am i doing wrong?</p>
<p>Had the same issue. It's file permission issue on the SD card. The token can't be written to dropbox_auth.cfg.</p>
<p>You can put in your information into the &quot;dropbox_auth.cfg&quot; file before you copy it to the SD card if you are having permission issues once on the Yun. I find it easier that way, just edit the file in something like brackets.io or notepad++.</p>
<p>You can put in your information into the &quot;dropbox_auth.cfg&quot; file before you copy it to the SD card if you are having permission issues once on the Yun. I find it easier that way, just edit the file in something like brackets.io or notepad++.</p>
<p>The problem is in the log.py file.</p><p>On line 7 it says : </p><p>configfile = '/mnt/sda1/LogToDropbox/dropbox_auth.cfg'</p><p>while it should be</p><p>configfile = '/mnt/sda1/YunLogToDropbox/dropbox_auth.cfg'</p><p>Or you could change the name of the folder to LogToDropbox</p><p>:)</p>
<p>Hi guys,</p><p>Im trying to do this instructable but i got the same error. Did the steps one by one. Already checked the route in log.py, but still the same result. Can you help me? Tks in advance.</p>
<p>Did you also generate the access token on the dropbox site. Its on the same page you get your key and secret from. Only difference is you have to click &quot;generate access token&quot;</p>
<p>how can i solve this error?</p>
<p>In <em>dropbox_auth.cfg</em> replace the placeholder &quot;app_secret&quot;, &quot;app_key&quot; &amp; &quot;access_token&quot; with the ones you get from dropbox when you create your app before you run Step 5. If you don't you are just trying to authenticate to the authors dropbox app and not yours.</p>
<p>Hello,</p><p>i get the following message:</p><p>/usr/lib/python2.7/site-packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see <a href="https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning." rel="nofollow"> https://urllib3.readthedocs.org/en/latest/securit...</a></p><p> InsecurePlatformWarning</p><p>Success</p><p>I don't know how to solve this.</p>
<p>Hi! Would this tutorial work as well for the Uno and Mega boards?</p>

About This Instructable

22,932views

62favorites

License:

More by ankitdaf:Turn your CC2541 based HM-10 Bluetooth Smart Module into an iBeacon Getting Started with the Daflabs ESP8266 ESP-12 Breakout Board Getting Started with the ESP8266 ESP-12 
Add instructable to: