Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-red-contrib-evrythng with all npm packages installed. Try it out:

node-red-contrib-evrythng lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("node-red-contrib-evrythng/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-red-contrib-evrythng v0.1.1

Node-RED module to access the EVRYTHNG API.

EVRYTHNG Node-RED

A simple Node-RED node that performs read or write requests on a Property of a Thng with the EVRYTHNG IoT Platform (free developers accounts!).

Install

To install the module, you can either install it locally within your node-RED user data directory (by default, $HOME/.node-red):

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

or globally alongside Node-RED:

sudo npm install -g node-red-contrib-evrythng

Usage

You can send a payload to the node including Thng, key and value to update the Property of an existing Thng:

{
  "key" : "temperature",
  "value" : 10
  "thng" : "76a267a7e4c3a4cfcca9b9ac"
}

Alternatively, you can set the Thng, key and value in the node configuration The node sends a message to: https://api.evrythng.com/thngs/<msg.payload.thng>/properties And the payload that is sent ends up in the format:

[{
  "key" : <code>msg.payload.key</code>,
  "value" : <code>msg.payload.value</code>
}]
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free