node-red-contrib-simplepush 1.4.0
Simplepush wrapper for Node-RED
node-red-contrib-simplepush
Simplepush API wrapper for Node-RED.
Supports push notifications and encrypted push notifications to Android and iOS.
Install
Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-contrib-simplepush
Required Inputs
msg.payload
(required): The message of the notification
Optional Inputs (can also be set in the node config)
msg.key
: Simplepush key (can be found in the app) that identifies the device the notification is sent tomsg.title
: The title of the notificationmsg.attachments
: Array of URLs to images, videos or gifs that will be displayedmsg.event
: The event of the notificationmsg.actions
: Array of strings that will be shown as notification actionsmsg.timeout
: Time in seconds after which a feedback timeout error will be thrown. Set this to 0 if there should be no timeout. Setting this will enable forwarding of the selected action to the output of the node.msg.password
: Password (can be set in the app) for encrypted notificationsmsg.salt
: Salt (can be found in the app) for encrypted notifications
See Simplepush.io for more details.