1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/social/pushover
wooferguy a058999f4c
Pushover ttl Bug Fix (#1017)
* TTL Functionality

Pick up msg.ttl and pass it to REST API, checking it is a positive integer first.

* Update help doc

Reference ttl parameter in api docs

* Fix: Warnings with no ttl

Check if ttl exists before sanitizing

* Add: Allow string ttl

If ttl is a string, parse to integer and check validity

---------

Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
2023-07-11 20:24:38 +01:00
..
icons add pushover icon 2014-04-20 18:01:14 +01:00
57-pushover.html Pushover TTL (#1013) 2023-06-24 09:54:34 +01:00
57-pushover.js Pushover ttl Bug Fix (#1017) 2023-07-11 20:24:38 +01:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json bump package for PR to add msg.ttl 2023-06-24 09:56:17 +01:00
README.md social-pushover | add tags parameter (#846) 2021-10-18 21:09:35 +01:00

node-red-node-pushover

A Node-RED node to send alerts via Pushover.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-pushover

Usage

Uses Pushover to push the msg.payload to a device that has the Pushover app installed.

Optionally uses msg.topic to set the configuration, if not already set in the properties:

  • msg.device: to set the device
  • msg.priority: to set the priority
  • msg.topic: to set the title
  • msg.attachment: to specify an image to attach to message (path as a string or Buffer containing image)
  • msg.url: to add a web address
  • msg.url_title: to add a url title
  • msg.html: set to true or 1 if message is HTML formatted, see the supported tags
  • msg.sound: to set the alert sound, see the available options
  • msg.retry: to set retry interval for Emergency priority (2) messages, see priority
  • msg.expire: to set retry duration for Emergency priority (2) messages, see priority
  • msg.callback: to set callback url for Emergency priority (2) messages, see callback
  • msg.tags: to set tags for Emergency priority (2) messages, see tags

The User-key and API-token are stored in a separate credentials file.

Uses Pushover. See Pushover.net for more details.