Content on this site may not be resold or reproduced. Copying is strictly prohibited. This post may contain affiliate links. See the Affiliate Disclosure for more information. Use of information on this site is at your own risk. View the Terms of Service.
In the last tutorial, we fetched data from connected devices published on dweet.io. Now, we're going to create a Python script to grab device data for a database. If you haven't read the previous tutorial, I recommend completing that before attempting this one. This tutorial is most suitable for those who are familiar with SQL databases and have written programs using Python. I will not be reviewing these topics in detail, so if you aren't familiar with them, I recommend checking out Python for Everybody, first.
Materials You'll Need
Again, you'll need to use a computer for this project. A tablet, like an iPad, will not work. Install Python on your computer. You'll also need a text editor such as Atom.io or Sublime Text. I'm a huge fan of Atom.io and will be using it throughout this tutorial. Download & configure the dweepy repository. The README explains all of the steps for configuration in detail. Install SQLite Browser (where we'll create our databases).
About Liz Miller
Creator of LearnRobotics.org. Liz is a Robotics Engineer with experience ranging from Robotics Research at UPenn, Teaching at MIT, and Automated Manufacturing Engineering at United Technologies. Liz writes technical tutorials that anyone can follow and provides tips and tricks to help engineers grow their careers. Liz has authored over 100 pieces of unique content on this site. You can support her work here. Learn more about Learn Robotics on our About Us page.
You may also like
Welcome to Learn Robotics!
I’m Liz, a Robotics Engineer, and the creator of Learn Robotics.