0.1.1 • Published 8 years ago

ds18b20-temperature-reader v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

#Temperature reader for DS18B20 temperature sensor Driver for reading the temperature from a DS18B20 sensor. Product

###Installation

npm install ds18b20-temperature-reader

Hardware schematics: Here

dtoverlay=w1-gpio
sudo reboot
sudo modprobe w1-gpio
sudo modprobe w1-therm
ls /sys/bus/w1/devices

Check for folder starting with 28-. This path is used in the example below.

###Example

var Temperature = require('./temperature');
var sensor = new Temperature('/sys/bus/w1/devices/28-000006d62e64/');

sensor.Read().then( function(temperature) {
  console.log('Current temperature is:', temperature)
}

###Licensing MIT

###Copyright Magnus Nordin 2016

0.1.1

8 years ago

0.1.0

8 years ago