1.3.1 • Published 9 years ago

tessel-temp-logger v1.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

tessel-temp-logger

Temp logger for using with beer brewing

Build Status Coverage Status Code Climate Dependency Status

Usage

var tessel = require('tessel');
var climateLib = require('climate-si7005');
var climate = climateLib.use(tessel.port.B);

var options = {
  debug: true, // Whether or not to spit out all kinds of debug messages.
  interval: 1  // Interval for sending data back (in seconds).
};

var ttl = require('tessel-temp-logger')(climate, options);
var numberOfChecks = 0;

// Function to call at every interval end.
function onTemperature(err, temperature) {
  console.log('Temperature at %s is %d', new Date(), temperature);
  numberOfChecks++;
  if (numberOfChecks > 3) {
    // This will stop the interval based checks.
    ttl.stop();
  }
}

// Start the temperature checking.
ttl.start(onTemperature);
1.3.1

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago