mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
88ee43186c
commit
587ff6b8e6
@ -99,9 +99,11 @@ module.exports = function(RED) {
|
||||
|
||||
function pushMessage(pushmsg) {
|
||||
pusher.send( pushmsg, function(err, response) {
|
||||
if (err) { node.error("[57-pushover.js] Error: "+err); }
|
||||
response = JSON.parse(response);
|
||||
if (response.status !== 1) { node.error("[57-pushover.js] Error: "+response); }
|
||||
if (err) { node.error(err); }
|
||||
else {
|
||||
response = JSON.parse(response);
|
||||
if (response.status !== 1) { node.error("[57-pushover.js] Error: "+response); }
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pushover",
|
||||
"version" : "0.0.14",
|
||||
"version" : "0.0.15",
|
||||
"description" : "A Node-RED node to send alerts via Pushover",
|
||||
"dependencies" : {
|
||||
"pushover-notifications" : "^1.2.0"
|
||||
|
Loading…
Reference in New Issue
Block a user