mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
67fee810eb
commit
b1a2741fa0
@ -42,7 +42,7 @@ module.exports = function(RED) {
|
|||||||
if (isNaN(pri)) {pri=0;}
|
if (isNaN(pri)) {pri=0;}
|
||||||
if (pri > 2) {pri = 2;}
|
if (pri > 2) {pri = 2;}
|
||||||
if (pri < -2) {pri = -2;}
|
if (pri < -2) {pri = -2;}
|
||||||
if (!msg.payload) { msg.payload = ""; }
|
if (typeof msg.payload === 'undefined') { msg.payload = "(undefined msg.payload)"; }
|
||||||
if (typeof(msg.payload) === 'object') {
|
if (typeof(msg.payload) === 'object') {
|
||||||
msg.payload = JSON.stringify(msg.payload);
|
msg.payload = JSON.stringify(msg.payload);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-pushover",
|
"name" : "node-red-node-pushover",
|
||||||
"version" : "0.0.20",
|
"version" : "0.0.21",
|
||||||
"description" : "A Node-RED node to send alerts via Pushover",
|
"description" : "A Node-RED node to send alerts via Pushover",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"pushover-notifications" : "^1.2.2"
|
"pushover-notifications" : "^1.2.2"
|
||||||
|
Loading…
Reference in New Issue
Block a user