2014-07-15 11:15:34 +02:00
node-red-node-pushbullet
========================
A < a href = "http://nodered.org" target = "_new" > Node-RED< / a > node to send alerts via < a href = "http://pushbullet.com" target = "_new" > Pushbullet< / a > .
Install
-------
2016-03-02 14:26:53 +01:00
Run the following command in your Node-RED user directory - typically `~/.node-red`
2014-07-15 11:15:34 +02:00
npm install node-red-node-pushbullet
Usage
-----
2016-03-02 14:26:53 +01:00
2015-01-27 08:08:54 +01:00
### Pushbullet output node
2014-07-15 11:15:34 +02:00
2016-03-02 14:26:53 +01:00
Uses PushBullet to push `msg.payload` to a device that has the PushBullet app installed.
* Optionally uses `msg.topic` to set the title, if not already set in the properties.
* Optionally uses `msg.pushtype` to set the type of the push, if not already set in the properties.
* Optionally uses `msg.deviceid` to set the device ID, if not already set in the properties.
You can also push to any channels that you own either configured or via `msg.channel` .
2014-07-15 11:15:34 +02:00
2016-03-02 14:26:53 +01:00
The node can also *dismiss* and *delete* any push and *update* items in a pushed list. In this case `msg.data.iden` must be set to a valid push id, if `msg` originates from the Pushbullet input node this value is already set.
2014-07-15 11:15:34 +02:00
2015-01-27 08:08:54 +01:00
### Pushbullet input node
2016-03-02 14:26:53 +01:00
2015-01-27 08:08:54 +01:00
Receives Pushbullets from all devices. Messages contain the following data:
2016-03-02 14:26:53 +01:00
* `msg.pushtype` : type of message
* `msg.topic` : topic information from the push
* `msg.payload` : main content of the push
* `msg.data` : original object from the pushbullet API containing e.g. sender, receiver and message ids.
2015-01-27 08:08:54 +01:00
2016-03-02 14:26:53 +01:00
Pushes of type < i > link</ i > and < i > file</ i > will also have `msg.message` containing the message associated with the push.
2015-01-27 08:08:54 +01:00
For further details of see < a href = "https://docs.pushbullet.com/stream/" > Pushbullet Stream API< / a > and < a href = "https://docs.pushbullet.com/v2/pushes/" > Pushbullet Push API< / a > .