Code Monkey home page Code Monkey logo

node-red-contrib-ruuvi-gateway's Introduction

Ruuvi gateway node

Example flow

The node uses the poll mode to retrieve the values from the Ruuvi Gateway and gets triggered when receiving input.

Inputs

  • payload (string|number|json) : the trigger to poll the Ruuvi gateway

The msg.topic is filled with the MAC address of the queried gateway.

Outputs

  • payload (json) : the answer from the Ruuvi gateway

A typical answer contains a few top level fields:

  • timestamp : the timestamp of the retrieval
  • tags : an object, containing all of the tags that are within reach of the gateway
  • gw_mac : the MAC address of the queried gateway

The tags contain an object for each found Ruuvi sensor, identified by its id. Typical fields that reside within this object are:

  • rssi : the signal strenght
  • timestamp : timestamp of the last received sensor reading
  • data : raw field containing the data of the sensor
  • dataFormat : identifier for the data format
  • temperature : the temperature in degrees Celsius
  • humidity : the humidity in percentage
  • pressure : if available, the pressure. Seems to return null
  • axelX ,axelY and axelZ - movement information
  • movementCounter - how often the sensor was moved
  • voltage - the battery voltage
  • txPower - the transmit txPower
  • measurementSequenceNumber - a sequence number
  • id - the identification id for the sensor

Configuration

  • name (string) : the name for the node
  • gateway (ruuvi config) : the configured Ruuvi gateway
  • store in global context (boolean) : whether or not to store the answer in the global context
  • verbose (boolean) : show the used curl command in the debug tab

Configure the gateway to enable poll mode. Then copy and paste the token into the configuration of a new Ruuvi gateway.

Also fill out the hostname or ip address for the Ruuvi gateway. The easiest way is to enter ruuvigatewayXXXX.local, where the XXXX match the code, which is printed on the backside of the Ruuvi gateway.

node-red-contrib-ruuvi-gateway's People

Contributors

dirkjanfaber avatar

Watchers

 avatar

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.