/pi-temperature

Measure the temperature on a Raspberry Pi - Node.js module

Primary LanguageJavaScriptApache License 2.0Apache-2.0

pi-temperature

Measure the temperature of a Raspberry Pi.

Usage

var temp = require("pi-temperature");
temp.measure(function(err, temp) {
	if (err) console.error(err);
	else console.log("It's " + temp + " celsius.");
});

API

measure(function callback(err, temperature))

Measures the temperature and calls the callback with the error and temperature.

Note: Temperature is in celsius.