1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/io/emoncms
2019-08-11 13:37:15 +01:00
..
icons Tweak emoncms logo to closer match other styles 2014-02-14 20:45:59 +00:00
88-emoncms.html Updates to match API changes (#392) 2018-01-07 15:37:28 +00:00
88-emoncms.js A whole bunch of whitespace linting - no functional changes 2019-08-11 13:37:15 +01:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json io/emoncms - Modify HTTP Timeout (#430) 2018-04-10 12:19:41 +01:00
README.md Updates to match API changes (#392) 2018-01-07 15:37:28 +00:00

node-red-node-emoncms

A Node-RED node to send fetch/post data to/from emoncms.org, local emoncms server or any other emoncms server.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-node-emoncms

Usage

Emoncms post:

Preferred Data Type

The API now accepts a validated JSON object for the name value pairs. This is the preferred data type.

Legacy Data Type Support

The original input API for emoncms used a URI in the format post.json?. If the data type of legacy is selected, the msg.payload can contain:

A comma separated list of name value pairs, e.g.

name:value,...

A comma separated list of values (CSV), e.g.

1,2,..

A simple javascript object (note no quotes) e.g.

{temp:12, humidity:56};

Node

If Node is left blank msg.nodegroup will be used (if set). A Node must be set or the flow will fail.

msg.time

Insertion time can be manipulated by setting msg.time. This can be an ISO format date/time or a number of seconds in epoch format - i.e. seconds since 1970. If no time is set time now is set by emoncms.

Status

The flow will indicate if the node has successfully called the API. This is not a guarantee the data has been inserted to emoncms.

Emoncms In:

Fetches last emoncms feed value, returns a numerical value.