snsr

0.0.1 • Public • Published

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 
}, ... ]

Package Sidebar

Install

npm i snsr

Weekly Downloads

5

Version

0.0.1

License

Unlicense

Unpacked Size

3.45 kB

Total Files

3

Last publish

Collaborators

  • yetzt