Skip to content

Code repository for Building Smart Homes with Raspberry Pi Zero, published by Packt publishing

License

Notifications You must be signed in to change notification settings

AzureMentor/Building-Smart-Homes-with-Raspberry-Pi-Zero

 
 

Repository files navigation

Get this product for $5

Packt is having its biggest sale of the year. Get this eBook or any other book, video, or course that you like just for $5 each

Buy now

Buy similar titles for just $5

Building Smart Homes with Raspberry Pi Zero

This is the code repository forBuilding Smart Homes with Raspberry Pi Zero,published by Packt.It contains all the supporting project files necessary to work through the book from start to finish.

Instructions and Navigation

All of the code is organized into folders.Each folder starts with a number followed by the application name. The commands and instructions will look like the following:

var sensor = {
initialize: function () {
return sensorLib.initialize(11, 4);
},
read: function () {
var readout = sensorLib.read();
console.log('Temperature: ' + readout.temperature.toFixed(2) +
'C, ' +
'humidity: ' + readout.humidity.toFixed(2) + '%');
setTimeout(function () {
sensor.read();
}, 2000);
}
};
if (sensor.initialize()) {
sensor.read();
} else {
console.warn('Failed to initialize sensor');
}

Note:

Chapter 01 do not have code files.

Related products:

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781786466952

About

Code repository for Building Smart Homes with Raspberry Pi Zero, published by Packt publishing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.2%
  • HTML 18.7%
  • CSS 2.1%