HowTo: Node Red - Sending push messages using Pushover from NodeRed

So far I have for notifications from my SmartHome the Pushbullet Node used.

Unfortunately, the Pushbullet app – i.e. the counterpart on your smartphone with which you receive the messages – is no longer available for iOS. So if you want to stay informed about the events in your SmartHome on your iOS device, you have to use an alternative system.

One of these alternative systems is Pushover. Anyone who is already familiar with Pushbullet will quickly find their way around Pushover. In principle, both services are very similar.

The only disadvantage: Pushover (currently) costs a one-time fee of 5.99 euros after the first month of testing. Pushbullet, on the other hand, can be used free of charge for up to 500 messages per month.

Nevertheless, I think the one-off payment is quite fair for a service that you can continue to use afterwards.

I have described in the following article how you then integrate the pushover service into your NodeRed instance.


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:
So that you can install new nodes, NodeRed should of course already be installed.
How to prepare a RaspberryPi and then install NodeRed on it is described in the following articles.

Required tool:

NumberLink
1xScrewdriver set  Buy at Amazon
1xSD card reader  Buy at Amazon

Required material:

NumberLink
1x Raspberry Pi  Buy at Amazon
1x Raspberry Pi power supply  Buy at Amazon
1x Raspberry Pi case  Buy at Amazon
1x Micro SD card 64GB  Buy at Amazon


Create Pushover User Key and API Key

In order for your NodeRed instance to be able to send data or messages to your pushover account, you must first create a user or API key. These two keys are used by NodeRed like access data to your account.

You do not need to create the user key yourself. This will be created together with your Puhsover account.

To access this you have to go to pushover.net log into your account.

This (or by clicking on the Pushover lettering) takes you to the start page of your Pushover account. Your user key is given in the red marked area. Copy this character string to be able to enter it later in your NodeRed instance.

In contrast to the user key, you have to create the API key explicitly.

To do this, scroll down on the start page of your Pushover account and click on

  • Create an Application/API Token

On the following page you should be in the section Surname enter a name.

You must also tick the box confirming that you have read the terms.

Then create the API key by clicking on

  • Create Application

On the following page you will then see the message that your API key was successfully created.

The created API key is then displayed in the area marked in red. Copy this character string to be able to enter it later in your NodeRed instance.


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 required nodes

In order for NodeRed to establish a connection to the Puhsover service, you must set the node "node-red-node-pushover" install. How to install your node is described in the article NodeRed – Install new nodes described.


Send a simple message via Pushover

Here you can see a very simple example of sending a pushover message. By clicking on the "Initiate" node, a simple message, which is defined in the "set message" node, is sent via the pushover node.

View of the NodeRed code in the NodeRed configuration view.

View of the sent message on your smartphone.

You can define the message that is sent when you click on the "Initiate" node in the node marked in red.

In order for this NodeCode to work, you must of course enter your user and API key in the node marked in red.

You should have the keys in the step Create Pushover User Key and API Key have already created.

In addition to the keys, you can also set other properties of the sent messages in the configuration menu of the pushover node.

For example, the sound of the notification on the target system can also be defined here.

How you can import the NodeCode linked below into your NodeRed environment is in the article NodeRed - import and export node code described.

As always, you can find the NodeCode in the Nerdiy Git repository under the following link:


Example: Send your own public IP address via pushover

The following is a practical example. Here, after clicking on the "Initiate" node, the public IP address is retrieved, embedded in a message and sent via pushover. To do this, simply click on the "Initiate" node.

View of the NodeRed code in the NodeRed configuration view.

View of the sent message on your smartphone.

You can set the message that is sent together with your IP address in the marked node.

In order for this NodeCode to work, you must of course also enter your user and API key in the node marked in red.

You should have the keys in the step Create Pushover User Key and API Key have already created.

How you can import the NodeCode linked below into your NodeRed environment is in the article NodeRed - import and export node code described.

As always, you can find the NodeCode in the Nerdiy Git repository under the following link:


More articles on the topic

More articles on the topic NodeRed I have grouped them into the following category.


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       

2 comments

  1. Hi,

    great blog, you do a lot. I've also been using NodeRed for a few years and have already written one or the other article. But back to the topic. Why don't you just use a Telegram bot? Would be a free alternative to Pushover 🙂

    Best regards
    Fredrik

    1. Hi Fredrik,
      yes you are right that would be an option too. I have to admit that I'm not that affected because I use Pushbullet. But I'll take a look. Thanks for the hint. 🙂
      Best regards
      Fabian

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.