Contents
Node-RED integration

Node-RED push notifications

Node-RED can send push notifications to your phone through PushPiper with no third-party nodes, free for 10,000 messages a month on 10 devices. A function node builds the payload and an HTTP request node posts it, with up to 1,024 characters per message and 600 requests a minute per app token.

How the two-node flow works

Many automations rely on external community palette nodes for messaging, but you don't need extra packages to get reliable alerts out of your flows. Built-in core nodes can build and dispatch your alerts without adding dependencies to your runtime.

PushPiper accepts flat JSON payloads over HTTPS, matching the endpoint format used by Pushover. If you're looking for a Pushover alternative or planning to migrate from Pushover, this integration uses the identical parameter structure and return codes.

The pipeline requires two steps:

  • A function node formats your incoming topic and payload into the fields PushPiper expects.
  • An http request node posts that data directly to the messages endpoint.

When you pass a JavaScript object into the http request node, Node-RED converts it to JSON and applies the proper headers automatically. You don't need a separate JSON parser node in between.

Get your PushPiper keys

Before assembling your nodes, you need an application token and your user key.

  1. Open the PushPiper web app in any modern browser and sign in with Google.
  2. Install the web app on your devices. On Android, Windows, macOS, or Linux, use Chrome, Edge, Firefox, or Safari. On iPhone or iPad running iOS 16.4 or later, open the site in Safari, tap Share, and select Add to Home Screen.
  3. Copy your 30-character user key. It begins with the letter u.
  4. Create an application for your Node-RED instance to generate a 30-character application token starting with a.

The free account covers 10,000 messages every month across up to 10 devices without a credit card.

Configure the function and HTTP nodes

To set up your alert flow, drag an inject node, a function node, an http request node, and a debug node onto your workspace. Connect them in a single chain.

Open the function node, give it a name like Build Alert, and paste the following code:

Function node
msg.payload = {
  token: 'APP_TOKEN',
  user: 'USER_KEY',
  title: 'Node-RED',
  message: String(msg.payload).slice(0, 1024),
};
return msg;

In the code above, replace APP_TOKEN with your 30-character application token and USER_KEY with your 30-character user key. The message field converts incoming payload values to a string and trims the text to 1,024 characters.

Double-click the http request node to configure the network call. Because msg.payload is an object, Node-RED sets the Content-Type header to application/json automatically.

The table below compares the configuration settings required for each node in the chain.

NodeSettingValue
functionCodeBuilds msg.payload
http requestMethodPOST
http requestURLhttps://api.pushpiper.com/1/messages.json
http requestReturna parsed JSON object

Deploy the flow and click the inject button to trigger a test alert.

Inspecting API responses and limits

Attach a debug node to the output of the http request node to inspect the API reply in msg.payload.

When a message delivers properly, the API returns an HTTP 200 status code with a JSON response: {"status": 1, "request": "..."}. When sending emergency alerts with priority 2, the JSON response also provides a unique receipt string you can poll to verify who acknowledged the notification.

If an alert fails to arrive, check the debug tab for error indicators:

  • HTTP 400 means a field was missing, a text field exceeded character limits, or the payload included nested objects instead of flat values.
  • HTTP 429 means your account used up its monthly notification limit, which resets automatically on the 1st of each month at 00:00 UTC.

Each app token allows up to 600 requests per minute. If you send an alert to a group key rather than a single user key, every member of that group counts as an individual message against your monthly allowance.

Sources

Questions and answers

Can PushPiper send SMS text messages or place phone calls from Node-RED?

No. PushPiper delivers push notifications to browsers and devices via Web Push. It does not send SMS messages or place automated voice phone calls.

Does PushPiper have a native mobile app in Google Play or the App Store?

No. PushPiper runs as a web app installed directly from your browser. On iOS devices, you install it by opening Safari and selecting Add to Home Screen.

Can an emergency notification break through Do Not Disturb on an iPhone?

No. PushPiper priority 2 alerts will repeat until acknowledged, but Web Push cannot bypass iOS Focus or Do Not Disturb settings.

What happens if an automation flow exceeds the monthly message limit?

The PushPiper API will reject additional requests with an HTTP 429 status code. Quotas reset on the 1st day of the month at 00:00 UTC, or you can purchase extra message packs.

Can I attach images or files to notifications sent from Node-RED?

Yes. PushPiper supports single file attachments up to 5 MB, including images, audio, text, and PDF files, though sending files requires multipart form data rather than a flat JSON payload.