Package Exports
- snsr
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 (snsr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
snsr
snsr provides sensor data from lm-sensors.
usage
var sensors = require("snsr");
sensors(function(err, data){
console.log(data);
});
format
data is an array which of each element holds all values of one sensor.
[{
_chip: 'nct6779-isa-0290',
_sensor: 'SYSTIN',
_type: 'temp',
_num: 1,
input: 18,
max: 0,
max_hyst: 0,
alarm: 1,
type: 4,
offset: 0,
beep: 0
},{
_chip: 'nct6779-isa-0290',
_sensor: 'CPUTIN',
_type: 'temp',
_num: 2,
input: 19,
max: 80,
max_hyst: 75,
alarm: 0,
type: 4,
offset: 0,
beep: 0
}, ... ]