Developer alerts

New sale? Show it on your LED matrix

A few lines in your backend: every sale, sign-up or milestone lights up the room.

Indie founders love a sale bell. Call this function from the place in your code that handles a payment, a sign-up or any milestone, and the matrix celebrates. It never raises, so a slow network can't break your checkout.

What your matrix shows

New sale $29

Text over the "fireworks" background. Illustration; the real effect is animated.

What you need

  • A backend you can change (any language that can make an HTTPS request), with your Authorization value in an environment variable named PIPPLEE_AUTH.
  • Your Authorization value from the setup guide (about 5 minutes).

Set it up

1. Python

Uses requests. Call show_on_matrix() from your payment webhook handler.

import os
import requests


def show_on_matrix(text, color="ffffff", background="", seconds=30):
    try:
        requests.post(
            "https://pipplee.com/api/v1/public/devices/text",
            headers={"Authorization": os.environ["PIPPLEE_AUTH"]},
            json={"text": text[:100], "font_color": color,
                  "background": background, "duration": seconds},
            timeout=5,
        )
    except Exception:
        pass  # never let the matrix break your app


show_on_matrix("New sale $29", "ffd43b", background="fireworks")

2. Node.js

Uses the built-in fetch (Node 18 and later).

export async function showOnMatrix(text, color = "ffffff", background = "", seconds = 30) {
  try {
    await fetch("https://pipplee.com/api/v1/public/devices/text", {
      method: "POST",
      headers: { Authorization: process.env.PIPPLEE_AUTH, "Content-Type": "application/json" },
      body: JSON.stringify({ text: text.slice(0, 100), font_color: color, background, duration: seconds }),
      signal: AbortSignal.timeout(5000),
    });
  } catch {
    // never let the matrix break your app
  }
}

await showOnMatrix("New sign-up", "2fd3e8");

How it works

  • Each call sends one HTTPS request to Pipplee Cloud, which pushes the message to your matrix.
  • A background effect (here fireworks) plays behind the text; leave it empty for plain text.
  • Errors and timeouts are swallowed, so your app carries on if the matrix is offline.

Variations

Run it in the background

In a web request, call it from a background task or queue (Celery, RQ, a worker) so the customer never waits on it.

Busy app?

The API takes up to 10 messages a minute per matrix. For a busy app, show milestones ("100th sale today") or a count every few minutes instead of every event.

Questions

Is it safe to put the value in my backend?

Yes, keep it on the server like any other API key. Never put it in a web page or mobile app, where anyone could read it.

More ideas

All developer ideas and setup →

Get Pipplee

Set up your matrix in the app, then send it your first alert.

iPhone Android