Controlling the thermostat remotely

We are now going to take the exact same project we defined earlier, but add a graphical interface on top of it. Inside the JavaScript file we saw previously, you just need to add one line, as follows:


Now we are going to code two files: one HTML file with the interface, and another file containing scripts that will make the link between the interface and the server. Let's start with the HTML file:

<head> <script src=""></script> <link rel="stylesheet" href=""> <script src=""></script> <script src="js/script.js"></script> ...

Get Building Smart Homes with Raspberry Pi Zero now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.