0.1.4 • Published 10 years ago

sensable-reporter v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

sensable-reporter

A simple library to report data via node to sensable.io

See the examples for a quickstart.

usage

var sensableReporter = require("sensable-reporter");
// the second general settings object have to contain your accessToken
var tmpReporter = sensableReporter({
        sensorid: "FooSensor",
        unit: "°c",
        sensortype: "temperature",
        latitude: "10.0",
        longitude: "5.0",
        name: "readble name for foo-sensor"
    }, {
        accessToken: "xyz-lshfosn",  //this token needs to be retrieved from sensable.io
        private: false
    });
var celsius = 32;
tempReporter.upload(
    parseFloat(celsius.toFixed(1)),
    (+new Date()),
    function(err) {
        if(err) {
            console.log(err);
        } else {
            console.log("posted the data");
        }
    }
);
0.1.4

10 years ago

0.1.3

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago