Book Image

Internet of Things Programming with JavaScript

Book Image

Internet of Things Programming with JavaScript

Overview of this book

The Internet of Things is taking the tech world by storm, and JavaScript is at its helm. This book will get you to grips with this exciting new technology. Where do Node.js, HTML5 and Windows 10 IoT Core come in with JavaScript and IoT? Why Raspberry Pi Zero rather than Arduino? How do you configure and build an IoT network from scratch? All your IoT JavaScript questions are answered in this book.
Table of Contents (15 chapters)
Internet of Things Programming with JavaScript
Credits
About the Author
www.packtpub.com
Customer Feedback
Preface

Chapter 6. Building a Web Monitor and Controlling Devices from a Dashboard

In this chapter, we will talk about a very important part of this book, creating a web page that can control different kinds of devices from a dashboard. In an automated home there are different kinds of devices that could be controlled, for example: lamps, doors or windows, washing machines, and so on.

In this chapter, we will cover the following topics:

  • Configuring MySQL database server

  • Installing phpMyAdmin for administrating databases

  • Datalogger with MySQL

  • Dimming a LED

  • Controlling the speed of a DC motor

  • Controlling lights with electrical circuits

  • Controlling door locks

  • Controlling watering plants

  • Remote access from anywhere to your Raspberry Pi Zero

  • Controlling lights and measuring current consumption

  • Controlling and monitoring Arduino, Wi-Fi and Ethernet shields, connected devices, and sensors from the Raspberry Pi Zero