From c63575e538f4c33d06b44729229de38d3c16811d Mon Sep 17 00:00:00 2001
From: dceejay
Date: Tue, 16 Jun 2015 10:47:44 +0100
Subject: [PATCH 01/48] skip other email test also temporarily
---
test/social/email/61-email_spec.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/social/email/61-email_spec.js b/test/social/email/61-email_spec.js
index 6a072f35..030a5b30 100644
--- a/test/social/email/61-email_spec.js
+++ b/test/social/email/61-email_spec.js
@@ -73,7 +73,7 @@ describe('email Node', function() {
});
- describe('email in', function() {
+ describe.skip('email in', function() {
it('should load with defaults', function(done) {
var flow = [ { id:"n1", type:"e-mail in", wires:[["n2"]] },
From b33c6605b166f270b8766afcc3a88a3e69b3543d Mon Sep 17 00:00:00 2001
From: dceejay
Date: Tue, 16 Jun 2015 17:41:32 +0100
Subject: [PATCH 02/48] fix README for Twitter so it renders correctly in
flows.nodered.org
---
social/twitter/README.md | 5 ++---
social/twitter/package.json | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/social/twitter/README.md b/social/twitter/README.md
index ec0485e9..c5661f44 100644
--- a/social/twitter/README.md
+++ b/social/twitter/README.md
@@ -5,7 +5,7 @@ node-red-node-twitter
The Twitter API will **NOT** deliver 100% of all tweets. This does **NOT** give access to the Twitter Firehose.
-Tweets of who you follow will include their retweets and favourites.
+Tweets of who you follow will include their retweets and favourites.
**Note** : This is the same node as is/was in the core of Node-RED. If you already
have it installed you do NOT need this node. However it will be deprecated from
@@ -55,5 +55,4 @@ To send a Direct Message (DM) - use a payload like.
D {username} {message}
-If **msg.media** exists and is a Buffer object, this node will treat it
- as an image and attach it to the tweet.
+If **msg.media** exists and is a Buffer object, this node will treat it as an image and attach it to the tweet.
diff --git a/social/twitter/package.json b/social/twitter/package.json
index e80373fe..f2ddbb9b 100644
--- a/social/twitter/package.json
+++ b/social/twitter/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-twitter",
- "version" : "0.0.4",
+ "version" : "0.0.5",
"description" : "A Node-RED node to talk to Twitter",
"dependencies" : {
"twitter-ng": "0.6.2",
From 56bb10642a3bb6cb0dc472506786f51c6c4ed142 Mon Sep 17 00:00:00 2001
From: dceejay
Date: Tue, 16 Jun 2015 21:37:22 +0100
Subject: [PATCH 03/48] Update Note(s) in READMEs for all moved out nodes.
redis, mongo, email, feedparse, twitter, irc, arduino, serialport
---
hardware/Arduino/README.md | 6 ++----
hardware/Arduino/package.json | 2 +-
io/serialport/README.md | 4 ++--
io/serialport/package.json | 2 +-
social/email/README.md | 3 ++-
social/email/package.json | 2 +-
social/feedparser/README.md | 6 ++----
social/feedparser/package.json | 2 +-
social/irc/README.md | 6 ++----
social/irc/package.json | 2 +-
social/twitter/README.md | 6 ++----
social/twitter/package.json | 2 +-
storage/mongodb/README.md | 4 ++--
storage/mongodb/package.json | 2 +-
storage/redis/README.md | 4 ++--
storage/redis/package.json | 2 +-
16 files changed, 24 insertions(+), 31 deletions(-)
diff --git a/hardware/Arduino/README.md b/hardware/Arduino/README.md
index e85f5c10..b89fa78b 100644
--- a/hardware/Arduino/README.md
+++ b/hardware/Arduino/README.md
@@ -3,10 +3,8 @@ node-red-node-arduino
A Node-RED node to talk to an Arduino running firmata.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node. However it will be deprecated from
-the core in due course, at which point you will need to install it from here if
-still required.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 you will need to install it from here if still required.
Install
-------
diff --git a/hardware/Arduino/package.json b/hardware/Arduino/package.json
index 247b5136..3129d275 100644
--- a/hardware/Arduino/package.json
+++ b/hardware/Arduino/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-arduino",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"description" : "A Node-RED node to talk to an Arduino running firmata",
"dependencies" : {
"arduino-firmata" : "0.3.2"
diff --git a/io/serialport/README.md b/io/serialport/README.md
index e56c22d5..fcb05611 100644
--- a/io/serialport/README.md
+++ b/io/serialport/README.md
@@ -3,8 +3,8 @@ node-red-node-serialport
Node-RED nodes to talk to an hardware Serial port.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 it will be installed from here instead.
Install
-------
diff --git a/io/serialport/package.json b/io/serialport/package.json
index 29818e27..d70d229c 100644
--- a/io/serialport/package.json
+++ b/io/serialport/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-serialport",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"description" : "Node-RED nodes to talk to an serial port",
"dependencies" : {
"serialport" : "1.7.*"
diff --git a/social/email/README.md b/social/email/README.md
index 88e9c7de..3f37cf2d 100644
--- a/social/email/README.md
+++ b/social/email/README.md
@@ -3,7 +3,8 @@ node-red-node-email
Node-RED nodes to send and receive simple emails.
-**Note** : This is the same node as is/was in the core of Node-RED.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 it will be installed from here instead.
Pre-requisite
-------------
diff --git a/social/email/package.json b/social/email/package.json
index 9f3f39c7..01c63c96 100644
--- a/social/email/package.json
+++ b/social/email/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-email",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"description" : "Node-RED nodes to send and receive simple emails",
"dependencies" : {
"nodemailer" : "1.3.4",
diff --git a/social/feedparser/README.md b/social/feedparser/README.md
index 2c03a2d8..109a92a6 100644
--- a/social/feedparser/README.md
+++ b/social/feedparser/README.md
@@ -3,10 +3,8 @@ node-red-node-feedparser
A Node-RED node to read RSS and Atom feeds.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node. However it will be deprecated from
-the core in due course, at which point you will need to install it from here if
-still required.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 it will be installed from here instead.
Install
-------
diff --git a/social/feedparser/package.json b/social/feedparser/package.json
index 65c646d7..8ab1bed7 100644
--- a/social/feedparser/package.json
+++ b/social/feedparser/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-feedparser",
- "version" : "0.0.3",
+ "version" : "0.0.4",
"description" : "A Node-RED node to get RSS Atom feeds.",
"dependencies" : {
"feedparser" : "0.19.2",
diff --git a/social/irc/README.md b/social/irc/README.md
index eab139df..c30ea484 100644
--- a/social/irc/README.md
+++ b/social/irc/README.md
@@ -3,10 +3,8 @@ node-red-node-irc
A Node-RED node to talk to an IRC server.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node. However it will be deprecated from
-the core in due course, at which point you will need to install it from here if
-still required.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 you will need to install it from here if still required.
Install
-------
diff --git a/social/irc/package.json b/social/irc/package.json
index 32f213c7..7b82763d 100644
--- a/social/irc/package.json
+++ b/social/irc/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-irc",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"description" : "A Node-RED node to talk to an IRC server",
"dependencies" : {
"irc" : "0.3.11"
diff --git a/social/twitter/README.md b/social/twitter/README.md
index c5661f44..1c9035e1 100644
--- a/social/twitter/README.md
+++ b/social/twitter/README.md
@@ -7,10 +7,8 @@ The Twitter API will **NOT** deliver 100% of all tweets. This does **NOT** give
Tweets of who you follow will include their retweets and favourites.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node. However it will be deprecated from
-the core in due course, at which point you will need to install it from here if
-still required.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 it will be installed from here instead.
Install
-------
diff --git a/social/twitter/package.json b/social/twitter/package.json
index f2ddbb9b..6533df55 100644
--- a/social/twitter/package.json
+++ b/social/twitter/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-twitter",
- "version" : "0.0.5",
+ "version" : "0.0.6",
"description" : "A Node-RED node to talk to Twitter",
"dependencies" : {
"twitter-ng": "0.6.2",
diff --git a/storage/mongodb/README.md b/storage/mongodb/README.md
index 727bbee2..e73db656 100644
--- a/storage/mongodb/README.md
+++ b/storage/mongodb/README.md
@@ -3,8 +3,8 @@ node-red-node-mongodb
A Node-RED node to save data in a MongoDB database.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 you will need to install it from here if still required.
Pre-requisite
-------------
diff --git a/storage/mongodb/package.json b/storage/mongodb/package.json
index 32cfb177..7abf7cf8 100644
--- a/storage/mongodb/package.json
+++ b/storage/mongodb/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-mongodb",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"description" : "Node-RED nodes to talk to an Mongo database",
"dependencies" : {
"mongodb" : "1.3.6"
diff --git a/storage/redis/README.md b/storage/redis/README.md
index 9dd58076..ba19b92d 100644
--- a/storage/redis/README.md
+++ b/storage/redis/README.md
@@ -3,8 +3,8 @@ node-red-node-redis
A Node-RED node to save data in a Redis database.
-**Note** : This is the same node as is/was in the core of Node-RED. If you already
-have it installed you do NOT need this node.
+**Note** : This is the same node as was in the core of Node-RED.
+As of v0.10.8 you will need to install it from here if still required.
Pre-requisite
-------------
diff --git a/storage/redis/package.json b/storage/redis/package.json
index b1bab230..7260101e 100644
--- a/storage/redis/package.json
+++ b/storage/redis/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-redis",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"description" : "A Node-RED node to save data to an Redis database",
"dependencies" : {
"redis" : "0.12.1"
From fc05ddd035247c645a485d0320ba6699c7a51e8f Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Fri, 19 Jun 2015 16:54:07 +0100
Subject: [PATCH 04/48] Re-enable email node basic tests...
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
it’s a start….
---
social/email/61-email.js | 4 +-
test/social/email/61-email_spec.js | 92 +++++++++++++++---------------
2 files changed, 48 insertions(+), 48 deletions(-)
diff --git a/social/email/61-email.js b/social/email/61-email.js
index bf315fed..195d390d 100644
--- a/social/email/61-email.js
+++ b/social/email/61-email.js
@@ -127,8 +127,8 @@ module.exports = function(RED) {
RED.nodes.createNode(this,n);
this.name = n.name;
this.repeat = n.repeat * 1000 || 300000;
- this.inserver = n.server || globalkeys.server || "imap.gmail.com";
- this.inport = n.port || globalkeys.port || "993";
+ this.inserver = n.server || (globalkeys && globalkeys.server) || "imap.gmail.com";
+ this.inport = n.port || (globalkeys && globalkeys.port) || "993";
this.box = n.box || "INBOX";
var flag = false;
diff --git a/test/social/email/61-email_spec.js b/test/social/email/61-email_spec.js
index 030a5b30..9aba594d 100644
--- a/test/social/email/61-email_spec.js
+++ b/test/social/email/61-email_spec.js
@@ -30,56 +30,13 @@ describe('email Node', function() {
helper.stopServer(done);
});
- describe.skip('email out', function() {
+ describe('email in', function() {
it('should load with defaults', function(done) {
- var flow = [ { id:"n1", type:"e-mail", name:"emailout", wires:[[]] } ];
- helper.load(emailNode, flow, function() {
- var n1 = helper.getNode("n1");
- n1.should.have.property('name', "emailout");
- done();
- });
- });
-
- it('should send an email', function(done) {
- var smtpTransport = require("nodemailer").createTransport();
- //var spy = sinon.stub(smtpTransport, 'sendMail', function(arg1,arg2,arg3,arg4) {
- //console.log("HELLO");
- //console.log(arg1,arg2,arg3,arg4);
- //done();
- //});
- var flow = [ { id:"n1", type:"e-mail", name:"emailout", outserver:"smtp.gmail.com", outport:"465", wires:[[]] } ];
- helper.load(emailNode, flow, function() {
- var n1 = helper.getNode("n1");
- n1.should.have.property('name', "emailout");
- n1.emit("input", {payload:"Hello World"});
- //done();
- });
- setTimeout(function() {
- try {
- var logEvents = helper.log().args.filter(function(evt) {
- return evt[0].type == "e-mail";
- });
- //console.log(logEvents);
- logEvents.should.have.length(1);
- logEvents[0][0].should.have.a.property('msg');
- logEvents[0][0].msg.toString().should.startWith("Error: connect ECONNREFUSED");
- done();
- }
- catch(e) { done(e); }
- //finally { smtpTransport.sendMail.restore(); }
- },150);
- })
-
- });
-
- describe.skip('email in', function() {
-
- it('should load with defaults', function(done) {
- var flow = [ { id:"n1", type:"e-mail in", wires:[["n2"]] },
- {id:"n2", type:"helper"} ];
+ var flow = [ { id:"n1", type:"e-mail in", name:"emailin", wires:[[]] } ];
helper.load(emailNode, flow, function() {
var n1 = helper.getNode("n1");
+ n1.should.have.property('name', "emailin");
n1.should.have.property("repeat", 300000);
n1.should.have.property("inserver", "imap.gmail.com");
n1.should.have.property("inport", "993");
@@ -104,4 +61,47 @@ describe('email Node', function() {
});
+ describe('email out', function() {
+
+ it('should load with defaults', function(done) {
+ var flow = [ { id:"n1", type:"e-mail", name:"emailout", wires:[[]] } ];
+ helper.load(emailNode, flow, function() {
+ var n1 = helper.getNode("n1");
+ n1.should.have.property('name', "emailout");
+ done();
+ });
+ });
+
+ it('should fail to send an email (no valid creds)', function(done) {
+ var smtpTransport = require("nodemailer").createTransport();
+ //var spy = sinon.stub(smtpTransport, 'sendMail', function(arg1,arg2,arg3,arg4) {
+ //console.log("HELLO");
+ //console.log(arg1,arg2,arg3,arg4);
+ //done();
+ //});
+ var flow = [ { id:"n1", type:"e-mail", name:"emailout", outserver:"smtp.gmail.com", outport:"465", wires:[[]] } ];
+ helper.load(emailNode, flow, function() {
+ var n1 = helper.getNode("n1");
+ n1.should.have.property('name', "emailout");
+ n1.emit("input", {payload:"Hello World"});
+ //done();
+ });
+ setTimeout(function() {
+ try {
+ var logEvents = helper.log().args.filter(function(evt) {
+ return evt[0].type == "e-mail";
+ });
+ //console.log(logEvents);
+ logEvents.should.have.length(3);
+ logEvents[2][0].should.have.a.property('msg');
+ logEvents[2][0].msg.toString().should.startWith("Error: connect ECONNREFUSED");
+ done();
+ }
+ catch(e) { done(e); }
+ //finally { smtpTransport.sendMail.restore(); }
+ },150);
+ })
+
+ });
+
});
From d21b24bbce4812c2666f22424ccd9017dbc74712 Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Fri, 19 Jun 2015 22:34:07 +0100
Subject: [PATCH 05/48] check header properties in email node
to close #118
---
social/email/61-email.js | 6 +++---
social/email/package.json | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/social/email/61-email.js b/social/email/61-email.js
index 195d390d..dfc594b6 100644
--- a/social/email/61-email.js
+++ b/social/email/61-email.js
@@ -202,9 +202,9 @@ module.exports = function(RED) {
stream.on('end', function() {
if (info.which !== 'TEXT') {
var head = Imap.parseHeader(buffer);
- pay.from = head.from[0];
- pay.topic = head.subject[0];
- pay.date = head.date[0];
+ if (head.hasOwnProperty("from")) { pay.from = head.from[0]; }
+ if (head.hasOwnProperty("topic")) { pay.topic = head.subject[0]; }
+ if (head.hasOwnProperty("date")) { pay.date = head.date[0]; }
pay.header = head;
} else {
var parts = buffer.split("Content-Type");
diff --git a/social/email/package.json b/social/email/package.json
index 01c63c96..8c77a814 100644
--- a/social/email/package.json
+++ b/social/email/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-email",
- "version" : "0.0.3",
+ "version" : "0.0.4",
"description" : "Node-RED nodes to send and receive simple emails",
"dependencies" : {
"nodemailer" : "1.3.4",
From 04f43851e572f17ab5abbbd36378fa388a883369 Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Fri, 19 Jun 2015 22:38:44 +0100
Subject: [PATCH 06/48] fix incorrect test of email header
fix for #118 (mea culpa)
---
social/email/61-email.js | 2 +-
social/email/package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/social/email/61-email.js b/social/email/61-email.js
index dfc594b6..fa969d3d 100644
--- a/social/email/61-email.js
+++ b/social/email/61-email.js
@@ -203,7 +203,7 @@ module.exports = function(RED) {
if (info.which !== 'TEXT') {
var head = Imap.parseHeader(buffer);
if (head.hasOwnProperty("from")) { pay.from = head.from[0]; }
- if (head.hasOwnProperty("topic")) { pay.topic = head.subject[0]; }
+ if (head.hasOwnProperty("subject")) { pay.topic = head.subject[0]; }
if (head.hasOwnProperty("date")) { pay.date = head.date[0]; }
pay.header = head;
} else {
diff --git a/social/email/package.json b/social/email/package.json
index 8c77a814..f407b388 100644
--- a/social/email/package.json
+++ b/social/email/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-email",
- "version" : "0.0.4",
+ "version" : "0.0.5",
"description" : "Node-RED nodes to send and receive simple emails",
"dependencies" : {
"nodemailer" : "1.3.4",
From 3f08764dd4a5e49e7c48f0980c3dd3431a117690 Mon Sep 17 00:00:00 2001
From: dceejay
Date: Mon, 29 Jun 2015 17:29:12 +0100
Subject: [PATCH 07/48] Let RBE node handle multiple msg.topic at the same
time.
---
function/rbe/README.md | 3 +++
function/rbe/package.json | 2 +-
function/rbe/rbe.html | 2 ++
function/rbe/rbe.js | 13 +++++++------
4 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/function/rbe/README.md b/function/rbe/README.md
index e7475bf5..c9a5da06 100644
--- a/function/rbe/README.md
+++ b/function/rbe/README.md
@@ -18,6 +18,9 @@ Usage
A simple node to provide report by exception (RBE) and deadband function
- only passes on data if it has changed.
+This works on a per **msg.topic** basis. This means that a single rbe node can
+handle multiple topics at the same time.
+
###RBE mode
Outputs the **msg** if the **msg.payload** is different to the previous one.
diff --git a/function/rbe/package.json b/function/rbe/package.json
index 5add0be8..a0dde101 100644
--- a/function/rbe/package.json
+++ b/function/rbe/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-rbe",
- "version" : "0.0.4",
+ "version" : "0.0.5",
"description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.",
"dependencies" : {
},
diff --git a/function/rbe/rbe.html b/function/rbe/rbe.html
index 2476fa95..9788b4b7 100644
--- a/function/rbe/rbe.html
+++ b/function/rbe/rbe.html
@@ -38,6 +38,8 @@
different to the previous one. Works on numbers and strings.
In deadband mode the incoming payload should contain a parseable number and is
output only if greater than + or - the band gap away from the previous output.
+
Note: This works on a per msg.topic basis. This means that a single rbe node can
+handle multiple topics at the same time.
Tip: Leave title blank to set using msg.topic and msg.priority.
- Only supports priorities 2, 1, 0, and -1.
+ Supports priorities 2, 1, 0, -1, and -2.
@@ -51,8 +57,9 @@
RED.nodes.registerType('pushover',{
category: 'output',
defaults: {
- title: {value:""},
name: {value:""},
+ device: {value:""},
+ title: {value:""},
priority: {value:0}
},
credentials: {
@@ -72,7 +79,7 @@
},
oneditprepare: function() {
$("#node-input-priority").spinner({
- min:-1,
+ min:-2,
max:2
});
}
diff --git a/social/pushover/57-pushover.js b/social/pushover/57-pushover.js
index 46badeed..9778e3fc 100644
--- a/social/pushover/57-pushover.js
+++ b/social/pushover/57-pushover.js
@@ -22,6 +22,7 @@ module.exports = function(RED) {
function PushoverNode(n) {
RED.nodes.createNode(this,n);
this.title = n.title;
+ this.device = n.device;
this.priority = n.priority;
var credentials = this.credentials;
if ((credentials) && (credentials.hasOwnProperty("pushkey"))) { this.pushkey = credentials.pushkey; }
@@ -43,6 +44,7 @@ module.exports = function(RED) {
this.on("input",function(msg) {
var titl = this.title || msg.topic || "Node-RED";
var pri = this.priority || msg.priority || 0;
+ var dev = this.device || msg.device;
if (isNaN(pri)) {pri=0;}
if (pri > 2) {pri = 2;}
if (pri < -2) {pri = -2;}
@@ -58,7 +60,8 @@ module.exports = function(RED) {
retry: 30,
expire: 600
};
- //console.log("Sending",pushmsg);
+ if (dev) { pushmsg.device = dev; }
+ //node.log("Sending "+JSON.stringify(pushmsg));
pusher.send( pushmsg, function(err, response) {
if (err) { node.error("Pushover Error: "+err); }
//console.log(response);
diff --git a/social/pushover/README.md b/social/pushover/README.md
index 3ff18ebc..b8b6cd94 100644
--- a/social/pushover/README.md
+++ b/social/pushover/README.md
@@ -16,7 +16,8 @@ Usage
Uses Pushover to push the msg.payload to a device that has the Pushover app installed.
-Optionally uses **msg.topic** to set the title, and **msg.priority** to set the priority, if not already set in the properties.
+Optionally uses **msg.topic** to set the title, **msg.device** to set the device
+and **msg.priority** to set the priority, if not already set in the properties.
The User-key and API-token are stored in a separate credentials file.
diff --git a/social/pushover/package.json b/social/pushover/package.json
index b10cb564..a3e98d44 100644
--- a/social/pushover/package.json
+++ b/social/pushover/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pushover",
- "version" : "0.0.4",
+ "version" : "0.0.5",
"description" : "A Node-RED node to send alerts via Pushover",
"dependencies" : {
"pushover-notifications" : "0.2.2"
From 0f9bd05180f724fc3a572255e3025fd7fb20bb3b Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Thu, 27 Aug 2015 10:56:43 +0100
Subject: [PATCH 46/48] Add meg switch input to Ti Sensortag node
---
hardware/sensorTag/79-sensorTag.js | 4 ++--
hardware/sensorTag/package.json | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hardware/sensorTag/79-sensorTag.js b/hardware/sensorTag/79-sensorTag.js
index 191454e9..77c229bb 100644
--- a/hardware/sensorTag/79-sensorTag.js
+++ b/hardware/sensorTag/79-sensorTag.js
@@ -84,9 +84,9 @@ module.exports = function(RED) {
msg.payload = {'x': +x.toFixed(2), 'y': +y.toFixed(2), 'z': +z.toFixed(2)};
node.send(msg);
});
- sensorTag.on('simpleKeyChange', function(left, right) {
+ sensorTag.on('simpleKeyChange', function(left, right, mag) {
var msg = {'topic': node.topic + '/keys'};
- msg.payload = {'left': left, 'right': right};
+ msg.payload = {'left': left, 'right': right, 'magnet': mag};
node.send(msg);
});
diff --git a/hardware/sensorTag/package.json b/hardware/sensorTag/package.json
index d0beff8d..5f02f019 100644
--- a/hardware/sensorTag/package.json
+++ b/hardware/sensorTag/package.json
@@ -1,10 +1,10 @@
{
"name": "node-red-node-sensortag",
"description": "A Node-RED node to read data from a TI SensorTag",
- "version": "0.0.6",
+ "version": "0.0.7",
"keywords" : ["node-red","sensortag"],
"dependencies": {
- "sensortag": "~1.0.1"
+ "sensortag": "~1.1.0"
},
"license": "Apache-2.0",
"repository" : {
From 059c7a2d67778badbd577289ae37f0eb26e67ca2 Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Wed, 2 Sep 2015 10:56:32 +0100
Subject: [PATCH 47/48] slight update to daemon node words
to clarify arguments
---
utility/daemon/README.md | 23 +++++++++++++++++------
utility/daemon/daemon.html | 4 +++-
utility/daemon/package.json | 2 +-
3 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/utility/daemon/README.md b/utility/daemon/README.md
index 32bba0c4..2ed00f2b 100644
--- a/utility/daemon/README.md
+++ b/utility/daemon/README.md
@@ -1,9 +1,12 @@
node-red-node-daemon
====================
-A Node-RED node that runs and monitors a long running system command.
+A Node-RED node that runs and
+monitors a long running system command.
-Similar to the **exec** node - but this calls the command at start time and then pipes any input to the node to the STDIN of the running command, and feeds any STDOUT to the first output.
+Similar to the **exec** node - but this calls the command at start time and
+then pipes any input to the node to the STDIN of the running command, and feeds
+any STDOUT to the first output.
Useful for monitoring command line based processes.
@@ -20,10 +23,18 @@ Usage
Calls out to a long running system command. Sends msg.payload to stdin of the process.
-Provides 3 outputs... stdout, stderr, and return code, from the running command.
+**Note** Only the command itself should be placed in the command field.
+All parameters **must** be placed in the arguments field.
-If the called program stops (i.e. a return code is produced), this node can attempt to restart the command.
+The command provides 3 outputs... stdout, stderr, and return code, from the running command.
-**Note :** when you stop Node-RED running we may not get a chance to kill the called program so it may remain running. You may have to kill it manually.
+If the called program stops (i.e. a return code is produced), this node can attempt
+to restart the command automatically.
-For example I have used it to run and then monitor the dump1090 plane spotter, and also to interact with various python apps that everyone seem to write these days :-)
+**Note :** when you stop Node-RED running we may not get a chance to kill the
+called program so it may remain running. You may have to kill it manually.
+
+For example it can be used to run and then monitor the
+dump1090 plane
+spotter, and also to interact with various python apps that everyone seem to write
+these days :-)
diff --git a/utility/daemon/daemon.html b/utility/daemon/daemon.html
index dc32f07d..b6b17d5c 100644
--- a/utility/daemon/daemon.html
+++ b/utility/daemon/daemon.html
@@ -20,7 +20,7 @@
-
+
@@ -45,6 +45,8 @@
+
Note: The command should just be the actual command.
+ All parameters should be passed in as arguments.