0.3.0 • Published 4 years ago

node-red-node-emoncms v0.3.0

Weekly downloads
118
License
Apache-2.0
Repository
github
Last release
4 years ago

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.

0.3.0

4 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

8 years ago

0.0.15

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

11 years ago