JSPM

pi-temperature

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 139
  • Score
    100M100P100Q79739F
  • License Apache-2.0

Measure the temperature of a Raspberry Pi.

Package Exports

  • pi-temperature
  • pi-temperature/index.js

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 (pi-temperature) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pi-temperature

Measure the temperature of a Raspberry Pi.

Usage

var temp = require("pi-temperature");
temp.measure(function(err, temp) {
    if (err) console.error(err);
    else console.log("It's " + temp + " celsius.");
});

API

measure(function callback(err, temperature))

Measures the temperature and calls the callback with the error and temperature.

Note: Temperature is in celsius.