Coder Social home page Coder Social logo

node-red-contrib-bmp085's Introduction

node-red-contrib-bmp085

A Node-RED node to receive data from a Bosch BMP085 or BMP180 barometer pressure sensor using I2C interface. Use bmp085 library.

Install

Run command on Node-RED installation directory

npm install node-red-contrib-bmp085

Pre-reqs

For Raspberry Pi users: enable i2c on your Pi and add pi user to i2c group

Usage

Return msg.payload.

msg.payload.temperature - temperature

msg.payload.pressure - pressure

The temperature and pressure units of measurement can be selected as required.

The measured pressure can optionally be corrected to sea level, as used in meteorolgical surface pressure charts, by entering the actual height above sea level of the sensor (US Standard Atmosphere; maximum height 11,000m).

The measurement update interval can also be specified.

node-red-bmp085-flow

Example Node-RED flow:

[{"id":"41f0fc42.bc1834","type":"template","name":"text","field":"payload","template":"Temperature: {{payload.temperature}}°C; Pressure: {{payload.pressure}}mmHg","x":982,"y":626,"z":"c2f61f76.2fd47","wires":[["51c8ed1e.6d326c"]]},{"id":"51c8ed1e.6d326c","type":"debug","name":"","active":true,"console":"false","complete":"payload","x":1174,"y":538,"z":"c2f61f76.2fd47","wires":[]},{"id":"fceb110e.7afd28","type":"bmp085","device":"/dev/i2c-1","timer":"15","pressureUnits":"mmHg","temperatureUnits":"degC","seaLevel":"QFE","height":"NaN","name":"","x":830,"y":727,"z":"c2f61f76.2fd47","wires":[["41f0fc42.bc1834"]]}]

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.