diff --git a/social/pushover/57-pushover.html b/social/pushover/57-pushover.html index 66d29bbc..e3f9f130 100644 --- a/social/pushover/57-pushover.html +++ b/social/pushover/57-pushover.html @@ -87,6 +87,7 @@

msg.retry: set retry interval for Emergency priority (2) messages, see details

msg.expire: set retry duration for Emergency priority (2) messages, see details

msg.callback: set the callback url for Emergency priority (2) messages, see details

+

msg.tags: set tags for Emergency priority (2) messages, see details

Uses Pushover. See this link for more details.

diff --git a/social/pushover/57-pushover.js b/social/pushover/57-pushover.js index 548c58fd..98603a69 100644 --- a/social/pushover/57-pushover.js +++ b/social/pushover/57-pushover.js @@ -42,6 +42,7 @@ module.exports = function(RED) { var retry = msg.retry || 30; var expire = msg.expire || 600; var callback = msg.callback || null; + var tags = msg.tags || null; if (isNaN(pri)) {pri=0;} if (pri > 2) {pri = 2;} if (pri < -2) {pri = -2;} @@ -80,6 +81,7 @@ module.exports = function(RED) { if (typeof(url) === 'string') { pushmsg.url = url; } if (typeof(url_title) === 'string') { pushmsg.url_title = url_title; } if (typeof(callback) === 'string') { pushmsg.callback = callback; } + if (typeof(tags) === 'string') { pushmsg.tags = tags; } if (html) { pushmsg.html = 1; } if (typeof(attachment) === 'string') { // Treat attachment as a path diff --git a/social/pushover/README.md b/social/pushover/README.md index ce524e49..1e664694 100644 --- a/social/pushover/README.md +++ b/social/pushover/README.md @@ -29,6 +29,7 @@ Optionally uses `msg.topic` to set the configuration, if not already set in the - `msg.retry`: to set retry interval for Emergency priority (2) messages, see [priority](https://pushover.net/api#priority) - `msg.expire`: to set retry duration for Emergency priority (2) messages, see [priority](https://pushover.net/api#priority) - `msg.callback`: to set callback url for Emergency priority (2) messages, see [callback](https://pushover.net/api/receipts#callback) + - `msg.tags`: to set tags for Emergency priority (2) messages, see [tags](https://pushover.net/api/receipts#cancel_by_tag) 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 2bcca8ae..7bbc2fd1 100644 --- a/social/pushover/package.json +++ b/social/pushover/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pushover", - "version" : "0.1.0", + "version" : "0.1.1", "description" : "A Node-RED node to send alerts via Pushover", "dependencies" : { "pushover-notifications" : "^1.2.2"