Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

Updating the web app

In this section, we will develop the code needed to display the data in real time inside the web app, as well as provide an interface, using which we can turn on/off the LED.

We will get started by adding a toggle switch component. We will use the ngx-ui-switch (https://github.com/webcat12345/ngx-ui-switch) for the same.

From inside the web-app-base folder, run the following command:

npm install ngx-ui-switch -save  

We will use the ng2-charts https://valor-software.com/ng2-charts/ for plotting charts of our temperature and humidity values. We will install this module as well by running the following command:

npm install ng2-charts --save
npm install chart.js --save  

This will install the toggle switch and ng2-charts

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content