pi-temperature

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

APACHE-2.0 License

Downloads
572
Stars
14
Committers
3

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.