1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Update Pushover docs to include msg.sound (#491)

* Add msg.sound to node info

* Add msg.sound option to the readme
This commit is contained in:
Paul 2018-09-17 19:58:24 +01:00 committed by Dave Conway-Jones
parent 15cab5a381
commit 7ca806f4d1
2 changed files with 16 additions and 9 deletions

View File

@ -73,10 +73,15 @@
</script>
<script type="text/x-red" data-help-name="pushover">
<p>Uses Pushover to push the <code>msg.payload</code> to a device that has the Pushover app installed.</p>
<p>Optionally uses <code>msg.topic</code> to set the title, <code>msg.device</code> to set the device,
<code>msg.priority</code> to set the priority, <code>msg.url</code> to add a web address and <code>msg.url_title</code>
to add a url title if not already set in the properties.</p>
<p>Uses Pushover to push the msg.payload to a device that has the Pushover app installed.</p>
<br>
<p>Optionally uses msg.topic to set the configuration:</p>
<p><code>msg.topic</code>: set the title</p>
<p><code>msg.device</code>: set the device</p>
<p><code>msg.priority</code>: set the priority</p>
<p><code>msg.url</code>: to add a web address</p>
<p><code>msg.url_title</code>: to add a url title if not already set in the properties</p>
<p><code>msg.sound</code>: set the notification sound, <i><a href="https://pushover.net/api#sounds" target="_new">see the available options</a></i></p>
<p>Uses Pushover. See <i><a href="https://pushover.net" target="_new">this link</a></i> for more details.</p>
</script>

View File

@ -16,12 +16,14 @@ Usage
Uses Pushover to push the `msg.payload` to a device that has the Pushover app installed.
Optionally uses `msg.topic` to set the title, `msg.device` to set the device
and `msg.priority` to set the priority, if not already set in the properties.
Optionally uses `msg.topic` to set the title, `msg.device` to set the device,
`msg.priority` to set the priority, `msg.url` to add a web address and `msg.url_title`
to add a url title - if not already set in the properties.
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.url`: to add a web address
- `msg.url_title`: to add a url title
- `msg.sound`: to set the alert sound, see the [available options](https://pushover.net/api#sounds)
The User-key and API-token are stored in a separate credentials file.