odroid-temp

0.0.2 • Public • Published

odroid-temp

Use Odroid's temp sensor with NodeJS A single small module to easily read the temperature sensor on Odroid

Installation

NodeJS versions 10.12.x are currently supported and tested.

Install from NPM (Easy way)

$ npm install odroid-temp

API

  • var temp = new Temp(); Create a new instance of odroid-temp.

  • temp.read to read the temperature

  temp.read(function(err, value){
    console.log("temp.read", err, value);
  });
  • temp.on to catch event from temperature sensor
  temp.on('change', function(value){
    console.log("Temperature %d °C", value);
  });

Ref : http://odroid.us/mediawiki/index.php?title=Temperature_Checking

/odroid-temp/

    Package Sidebar

    Install

    npm i odroid-temp

    Weekly Downloads

    4

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • zorglu