Priority
houtknots opened this issue · comments
im having the same issue... did you evere find a solution?
@danmed as a temporary solution you could use a http request node. Below I have placed a snippet which you can import into Node-RED. If you would like to send a normal message you can remove the priority
expire
and retry
from the template node (Message).
Pushover API
If you would like to add or change some options I suggest you to check the Pushover API docs. If you would like to add the sound
option you can add it within the Message node.
Import Snippet
To import the snippet, press the hamburger icon in the right hand corner and press the import button. Paste the content below in the text field and press the import button.
[
{
"id": "5e8ecee9.d3fc4",
"type": "template",
"z": "12369ab8.a76795",
"name": "Message",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\n \"token\":\"apptoken\",\n \"user\":\"usertoken\",\n \"message\": \"{{ payload }}\",\n \"priority\": 2,\n \"retry\": 30,\n \"expire\": 120\n}",
"output": "json",
"x": 580,
"y": 840,
"wires": [
[
"fef7d03e.e137d8"
]
]
},
{
"id": "fef7d03e.e137d8",
"type": "http request",
"z": "12369ab8.a76795",
"name": "",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "https://api.pushover.net/1/messages.json",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 730,
"y": 840,
"wires": [
[]
]
},
{
"id": "379bee41.9f59aa",
"type": "inject",
"z": "12369ab8.a76795",
"name": "Data",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "test",
"payloadType": "str",
"x": 450,
"y": 840,
"wires": [
[
"5e8ecee9.d3fc4"
]
]
},
{
"id": "e42b2f69.4bdbf8",
"type": "comment",
"z": "12369ab8.a76795",
"name": "Pushover",
"info": "",
"x": 460,
"y": 800,
"wires": []
}
]