Package Exports
- pi-temperature
- pi-temperature/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pi-temperature) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.