Merge pull request #85 from madeddie/master

New version of nma package available
Thanks @madeddie
Yes - nailing down the pre-reqs is a decision we have made... even if (as in this case) it does break us occasionally.
This commit is contained in:
Dave Conway-Jones 2014-12-12 16:58:40 +00:00
commit a84555acab
2 changed files with 18 additions and 8 deletions

View File

@ -32,11 +32,17 @@ module.exports = function(RED) {
}
else { msg.payload = msg.payload.toString(); }
if (node.pushkey) {
try {
nma(node.pushkey, "Node-RED", titl, msg.payload, 0 );
} catch (e) {
node.warn("NMA error: "+ e);
}
nma({
"apikey": node.pushkey,
"application": "Node-RED",
"event": titl,
"description": msg.payload,
"priority": 0
}, function (error) {
if (error) {
node.warn("NMA error: " + error);
}
});
}
else {
node.warn("NMA credentials not set.");

View File

@ -1,9 +1,9 @@
{
"name" : "node-red-node-nma",
"version" : "0.0.1",
"version" : "0.0.2",
"description" : "A Node-RED node to send alerts via Notify-My-Android",
"dependencies" : {
"nma" : "0.1.8"
"nma" : "0.2.2"
},
"repository" : {
"type":"git",
@ -20,5 +20,9 @@
"name": "Dave Conway-Jones",
"email": "ceejay@vnet.ibm.com",
"url": "http://nodered.org"
}
},
"contributors": [{
"name": "Edwin Hermans",
"email": "edwin@madtech.cx"
}]
}