mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
e5e8a33d80
commit
d913171f40
@ -221,8 +221,14 @@ module.exports = function(RED) {
|
||||
msg.payload = incoming.iden;
|
||||
}
|
||||
else if (incoming.type === 'sms_changed') {
|
||||
msg.topic = "SMS: "+ incoming.notifications[0].title;
|
||||
msg.payload = incoming.notifications[0].body;
|
||||
if (incoming.notifications && incoming.notifications.length > 0) {
|
||||
msg.topic = "SMS: "+ incoming.notifications[0].title;
|
||||
msg.payload = incoming.notifications[0].body;
|
||||
}
|
||||
else {
|
||||
msg.topic = "SMS: ";
|
||||
msg.payload = "";
|
||||
}
|
||||
msg.message = incoming;
|
||||
}
|
||||
else {
|
||||
@ -244,12 +250,11 @@ module.exports = function(RED) {
|
||||
|
||||
function PushbulletOut(n) {
|
||||
RED.nodes.createNode(this, n);
|
||||
var self = this;
|
||||
|
||||
this.title = n.title;
|
||||
this.chan = n.chan;
|
||||
this.pushtype = n.pushtype;
|
||||
this.pusher = null;
|
||||
var self = this;
|
||||
|
||||
var configNode;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pushbullet",
|
||||
"version" : "0.0.17",
|
||||
"version" : "0.0.19",
|
||||
"description" : "A Node-RED node to send alerts via Pushbullet",
|
||||
"dependencies" : {
|
||||
"pushbullet": "^2.4.0",
|
||||
|
Loading…
Reference in New Issue
Block a user