Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Internet of things with Intel Galileo

You're reading from   Internet of things with Intel Galileo Employ the Intel Galileo board to design a world of smarter technology for your home

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781782174585
Length 212 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 de Sousa de Sousa
Author Profile Icon de Sousa
de Sousa
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Internet of Things with Intel Galileo
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introducing Galileo FREE CHAPTER 2. Rediscovering the Arduino IDE 3. Monitoring the Board Temperature 4. Creating a Motion Sensing Light 5. Intel IoT Developer Kit Tools 6. Building an Irrigation System 7. Creating Christmas Light Effects 8. The Intel XDK IoT Edition 9. Developing an IoT Quiz 10. Integrating with Muzzley Index

Plotting your temperature data


Now, let's use everything you've learned so far to create temperature data samples and use them to draw an online chart. In this example, we will be using Plotly. It is a very useful online tool that allows you to create online charts using an API. Using a free plan, we are able to create unlimited number of public and up to ten private charts. The whole idea of this demo is to capture the temperature values each second during a minute and use the gathered data to create a chart.

Creating temperature data samples

With the system command, we were able to print the temperature values to the serial port. This is the right tool to print the data to our serial port, but to be able to use it, we'll need to assign that same data to vars. One way to do this is combining our system calls with the Arduino SD library methods. We need to change the temperature output from the serial port to a path where the SD library can read it. To do so, we can use the following system...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images