HowTo: Node Red – Send pushbullet messages at events

Pushbullet is a free and easy way to receive push messages on your smartphone or computer. You can use this free service (up to 500 messages/month) to send text information or images. I use this service e.g. to let me know as soon as my washing machine is finished or someone has rung the doorbell. The Pushbullet service always worked fast and very reliably.

The following article explains how your push bullet uses push messages to trigger events.

Hints for our lovely english readers: Basically, many of the articles on Nerdiy.de are translations from the original german articles. Therefore, it may happen here and there that some illustrations are not available in english and that some translations are weird/strange/full of mistakes or generally totaly wrong. So if you find some obvious (or also not obvious) mistakes don't hesitate to leave us a hint about that in the comment section. 
Also please don't get confused, that instead of a "dot" often a "comma" is used as decimal separator. 🙂


Safety instructions

I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance. https://www.nerdiy.de/en/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 shop via this link, Nerdiy.de receives a commission from the online shop or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support Nerdiy.de in being able to offer further useful projects in the future. 🙂


Requirements

Helpful Articles:
Of course NodeRed should already be installed so that you can take over this configuration. You should also have the Dashboard Node installed.
How to prepare a RaspberryPi and then install NodeRed on it is described in the following articles.
RaspberryPi – Setting up for Nerdiys!
RaspberryPi – The first configuration
RaspberryPi – Controlling the RaspberryPi via SSH
NodeRed – Installing NodeRed on the RaspberryPi
NodeRed – Install New Nodes
NodeRed – Import and export NodeCode
Register a Pushbullet API-Key

Required tools:
-none-

Required material:

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


Log in to the NodeRed configuration interface

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

View of the login screen. Here you have to enter the login details that you entered during the configuration of the login. Information about this can be found in the article NodeRed - User Login Setup.

Install pushbullet node

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

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

Enter pushbullet node configuration

In order for the newly installed Pushbullet node 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 about Register a Pushbullet API-Key

To enter a new Pushbullet API code, under Config select “Add new pushbullet-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 in the upper field carry any name such as “pushbulletConfig” and in the lower field your API code. Then you confirm this by clicking on “Add”.
Now you are back in the previous window. The newly created configuration has already been selected and you just have to click on “Done” to apply the changes.

Sample Node Code: Pushbullet message at virtual keystroke send

Here is a small example with which you can send Pushbullet messages at the touch of a button. Simply 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":"Hallo du 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":""}]
So – or something like that – the Pushbullet message looks like on your smartphone.

Example: Send pushbullet message at server startup

Another example of how to issue a push bullet message when the NodeRed server is restarted can be found in the following article:

NodeRed – Execute action at ServerStart


I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂

Fab

P.S. 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 appreciate it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂

Buy Me a Coffee at ko-fi.com

Leave a Reply

Your email address will not be published. Required fields are marked *