In this script, you will enter in your desired graph information, as well as API Key and Stream Token (Obtained earlier). Then, run the script! (You have to sudo to access the GPIO pins) sudo python plotly-raspi-stream.py Make sure you update the credentials in the script with your own! (Obtained in previous step) username = 'your_plotly_username' Now, if you have everything connected properly, and you've downloaded the getting started script, go ahead and execute it! Thanks to Plot.ly's streaming capabilities, all of your sensor data will automatically update on the graph! The purpose of this Instructable is to take some temperature data read from a TMP36 sensor, and visualize it using real-time streaming using the Plotly Python API! Here is an example of our final product: Raspberry Pi fun isn't limited only to software activities though! In addition to its other great features, the Raspberry Pi has some GPIO (General Purpose IN/OUT) pins, which you can use to read data from! I'm a huge fan, and have done a few projects with my Raspberry Pi, from setting up a web server in our workshop, to using it as a desktop PC when my laptop was in the shop. Now it's time to extend that fun to all Raspberry Pi users! The Raspberry Pi is a fantastic platform for software experimentation, allowing kids, amateurs and professionals alike to hack away without fear of breaking an expensive computer system. Recently we completed an Instructable for visualizing temperature and humidity data using an Arduino and Plot.ly, a free online collaborative graphing tool. Time for some Raspberry Pi + Plotly Streaming fun!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |