0.2.1 • Published 5 years ago

sensor-recorder v0.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

An aggregator for sensor data

This node library can collect sensor data and return the (correct) average sensor value for any given timespan.

Usage

var sensorRecorder = require('sensor-recorder');

var r = sensorRecorder.createSensorRecorder("Test Sensor");

setTimeout(() => {
    r.add(4.0);
    console.log(r.getLatestValue());
    var now = Date.now();
    
}, 4000);

setTimeout(() => {
    var now = Date.now();
    console.log(r.getAvgValueForTimeInterval(now - 10000, now));
}, 7000)

r.add(1.0);
0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago