Giter Site home page Giter Site logo

node-red-contrib-htu21d's Introduction

node-red-contrib-htu21d

A Node-RED node to query and receive data from Measurement Specialities HTU21D humidity and temperature sensors. These pre-calibrated sensors are interfaced using the I2C bus. The node also calculates the dewpoint temperature from the measured humidity and temperature.

Install

Use npm to install this package locally in the Node-RED data directory (by default, $HOME/.node-red):

cd $HOME/.node-red
npm install node-red-contrib-htu21d

Alternatively, it can be installed globally:

npm install -g node-red-contrib-htu21d

The nodes will be added to the palette the next time node-RED is started.

Requirements

This node uses the htu21d npm package to access the device over an I2C bus. This is generally supported only on Linux. The bus device name (e.g. /dev/i2c-1) is configurable: only one actual sensor is allowed on each bus, but the bus can be shared with any other I2C device not using the (7-bit) address 0x40.

Usage

The output message payload holds the following properties:

humidity - relative humidity in %

temperature - temperature in ˚C or ˚F as configured

dewpoint - calculated dewpoint in ˚C or ˚F as configured

Measurements are repeated at a configurable interval: each measurement takes just over 0.1 second.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.