2015-01-04 20:34:12 +00:00
node-red-node-emoncms
=====================
2015-10-21 12:08:30 +01:00
A < a href = "http://nodered.org" target = "_new" > Node-RED< / a > node to send fetch/post data to/from < a href = "http://emoncms.org" target = "_new" > emoncms.org< / a > or any other emoncms server.
2015-01-04 20:34:12 +00:00
Install
-------
2016-03-02 13:26:19 +00:00
Run the following command in your Node-RED user directory - typically `~/.node-red`
2015-01-04 20:34:12 +00:00
npm install node-red-node-emoncms
Usage
-----
2015-10-21 12:08:30 +01:00
### Emoncms post.
2015-01-04 20:34:12 +00:00
2015-12-09 13:21:42 +00:00
The `msg.payload` can contain either a comma separated list of name
2015-01-04 20:34:12 +00:00
value pairs, e.g.
name:value,...
or a comma separated list of values, e.g.
1,2,..
2015-12-09 13:21:42 +00:00
or a simple javascript object e.g.
2015-01-04 20:34:12 +00:00
2015-12-09 13:21:42 +00:00
msg.payload = {temp:12, humidity:56};
2015-01-04 20:34:12 +00:00
2015-12-09 13:21:42 +00:00
If *Nodegroup* is left blank `msg.nodegroup` will used (if set).
This should be a numeric value.
Insertion time can be manipulated by setting `msg.time` . This **must** be in
epoch format - i.e. seconds since 1970.
2015-10-21 12:08:30 +01:00
### Emoncms In:
2015-12-09 13:21:42 +00:00
Fetches last emoncms feed value, returns a numerical value.