HowTo: Node Red – Send Pushbullet messages on events

Pushbullet is a free and easy way to receive push messages on your smartphone or computer. So you can use this free service (up to 500 messages/month) to send text information or even pictures. I use this service e.g. to be informed as soon as my washing machine is ready or someone has rung the doorbell. The Pushbullet service has always worked quickly and very reliably.

How to use Pushbullet to send push messages when events occur is explained in the following article.


Safety instructions

I know the following notes are always kind of annoying and seem unnecessary. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. Data loss is almost negligible in comparison, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Because even the coolest project is not worth injury or other trouble.
https://www.nerdiy.de/sicherheitshinweise/

Affiliate links/advertising links

The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, Nerdiy.de will receive a commission from the relevant online shop or provider. The price does not change for you. If you make your purchases via these links, you support Nerdiy.de in being able to offer other useful projects in the future. 🙂 


Requirements

Helpful articles:
Before you start with the article you should have prepared the RaspberryPi so that it is accessible via the network and controllable via SSH. Furthermore NodeRed and the Dashboard-Node should be installed.

The following three articles describe what needs to be done to prepare the RaspberryPi:
RaspberryPi – setup for nerdiys!
RaspberryPi – The first configuration!
RaspberryPi – Control the RaspberryPi via SSH

NodeRed - Installing NodeRed on the RaspberryPi
NodeRed - Import and export NodeCode
Register Pushbullet API Key

Required tool:
-no-

Required material:

In the following list you will find all the parts you need to implement this article.


Log into the NodeRed configuration interface

Before you can edit your NodeRed configuration, you must - if activated - first log into the NodeRed configuration interface.

View of the login dialog. Here you have to enter the login data that you specified during the configuration of the login. You can find information about this in the article NodeRed - set up user login.

Install Pushbullet Node

First you need to install the appropriate node for Pushbullet.
To do this, install the node “node-red-node-pushbullet”.
How to install nodes is described in this article:
NodeRed – Install new nodes

Search for “node-red-node-pushbullet” in the Pallete Manager and install this node.

Enter pushbullet node configuration

In order for the Pushbullet node you just installed to communicate with the Pushbullet service, you need to specify your Pushbullet API code. You can register this API code for free. How to do this is described in the article Register Pushbullet API Key described

To enter a new Pushbullet API code, select “Add new pushbullet-config…” under Config and click on the pencil icon to the right of the drop-down field.
In the following window you can now insert a name for this configuration and your API code. So enter any name such as “pushbulletConfig” in the upper field and your API code in the lower field. Then confirm this by clicking on “Add”.
You are now back in the previous window. The newly created configuration has already been selected and you just have to click “Done” to apply the changes.

Example node code: Send pushbullet message on virtual keystroke

Here is a small example with which you can send pushbullet messages at the push of a button. Just copy the following node code into your configuration.

[{"id":"a604fa0e.8c5138","type":"pushbullet","z":"8c9f8f17.13eb78","config":"5ab02a71.121594","pushtype":"note","title ":"","chan":"","name":"","x":3470,"y":320,"wires":[]},{"id":"2b75de82.354c02", "type":"inject","z":"8c9f8f17.13eb78","name":"","topic":"","payload":"Hello you Pushbullet nerd!","payloadType":" str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":3250,"y":320,"wires":[["a604fa0e. 8c5138"]]},{"id":"5ab02a71.121594","type":"pushbullet-config","z":"","name":""}]
This - or something similar - is what the pushbullet message will look like on your smartphone.

Example: Send pushbullet message on server startup

Another example that can be used to send a pushbullet message when the NodeRed server is restarted can be found in the following article:

NodeRed - Perform action on server startup


Have fun with the project

I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are always welcome. 🙂

PS Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂

Buy Me a Coffee at ko-fi.com       

Kommentar hinterlassen

Your email address will not be published. Erforderliche Felder sind mit * markiert

This site uses Akismet to reduce spam. Learn how your comment data is processed.