diff --git a/social/pushover/57-pushover.html b/social/pushover/57-pushover.html index 17deb3e0..5ba1bd3e 100644 --- a/social/pushover/57-pushover.html +++ b/social/pushover/57-pushover.html @@ -47,8 +47,8 @@ diff --git a/social/pushover/57-pushover.js b/social/pushover/57-pushover.js index 9778e3fc..bf0a227c 100644 --- a/social/pushover/57-pushover.js +++ b/social/pushover/57-pushover.js @@ -45,6 +45,7 @@ module.exports = function(RED) { var titl = this.title || msg.topic || "Node-RED"; var pri = this.priority || msg.priority || 0; var dev = this.device || msg.device; + var sound = msg.sound || null; if (isNaN(pri)) {pri=0;} if (pri > 2) {pri = 2;} if (pri < -2) {pri = -2;} @@ -61,6 +62,7 @@ module.exports = function(RED) { expire: 600 }; if (dev) { pushmsg.device = dev; } + if (typeof(sound) === 'string') { pushmsg.sound = sound; } //node.log("Sending "+JSON.stringify(pushmsg)); pusher.send( pushmsg, function(err, response) { if (err) { node.error("Pushover Error: "+err); }