Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Intel Galileo Networking Cookbook
  • Table Of Contents Toc
Intel Galileo Networking Cookbook

Intel Galileo Networking Cookbook

By : Marco Schwartz
5 (1)
close
close
Intel Galileo Networking Cookbook

Intel Galileo Networking Cookbook

5 (1)
By: Marco Schwartz

Overview of this book

Arduino is an electronic prototyping platform used by millions of people around the world. Intel Galileo is fully Arduino compatible; hence it combines the high performance of Intel with the simplicity of Arduino Software Development Environment. This makes it the ideal platform to build exciting projects, especially in the field of web-based connected applications and the Internet of Things. The book features several recipes all based on the Intel Galileo board, and that exploit the powerful features of the board. Each chapter explores a given field using the Galileo board. The book is mainly divided in three parts. The first part is all about learning the basics of the Intel Galileo board, but it uses some of the powerful features of the board such as connecting external sensors and complex hardware devices, compared with more basic Arduino boards. Then, the book dives into the topics related to networking and the Internet of Things. You will learn how to run a web server on the board and log data using a cloud-based service. Finally, the book ends with a chapter that aims to build a complete home automation hub using the Galileo board. This chapter uses everything that was learned in the book to make a home automation system using the Galileo board and Arduino.
Table of Contents (10 chapters)
close
close
9
Index

Displaying measurements stored in a database


In the previous recipes, we saw how to measure data from the Galileo board remotely and how to store this data in a database. Now, we are going to see how to graphically display this data on your computer.

Getting ready

To display the data graphically, we are going to use a JavaScript library called highcharts, which will make the process much easier. You don't have to install anything, but you can have a look at the library at the following location:

http://www.highcharts.com/

How to do it...

We are now going to write the Node.js application that will display the content of the database graphically on a web page. The code will be composed of three parts—a file called app.js containing the Node.js code, a file called index.html that will contain the interface, and finally another JavaScript file that will query the database's measurements and display them graphically.

Here is the code for the app.js file:

// Libraries
var express = require('express...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Intel Galileo Networking Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon