Run the following command in your Node-RED user directory - typically
npm install node-red-node-emoncms
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.
A comma separated list of values (CSV), e.g.
If Node is left blank
msg.nodegroup will be used (if set). A Node must be set or the flow will fail.
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.
The flow will indicate if the node has successfully called the API. This is not a guarantee the data has been inserted to emoncms.
Fetches last emoncms feed value, returns a numerical value.