Developer alerts

Disk full and backup alerts on your LED matrix

Hear about a full disk before it takes the server down, and see every failed backup.

Home labs fail quietly: a disk fills up, a nightly backup stops working, and nobody notices for weeks. Two small cron jobs put those on the matrix, where you'll see them.

What your matrix shows

Disk 92% on nas

Plain text. Illustration; the real effect is animated.

What you need

  • A Linux or macOS machine you run cron on, with the pipplee helper installed.
  • Your Authorization value from the setup guide (about 5 minutes).

Set it up

1. Disk check

Save as ~/disk-check.sh, make it executable, and run it hourly from cron (0 * * * * $HOME/disk-check.sh).

#!/bin/sh
LIMIT=90
USED=$(df -P / | awk 'NR==2 {gsub("%", "", $5); print $5}')
if [ "$USED" -ge "$LIMIT" ]; then
  "$HOME/.local/bin/pipplee" "Disk $USED% on $(hostname -s)" ffa94d "" 300
fi

2. Backup result

Wrap your backup command in the cron line so its result goes to the matrix.

$HOME/backup.sh && $HOME/.local/bin/pipplee "Backup OK" 51cf66 "" 30 || $HOME/.local/bin/pipplee "Backup FAILED" ff6b6b fireworks 0

How it works

  • The disk check reads how full / is and only sends a message above the limit.
  • The backup line sends a short green message on success and a red one that stays on failure.

Variations

Only tell me about failures

Drop the success half so a working backup stays quiet.

$HOME/backup.sh || $HOME/.local/bin/pipplee "Backup FAILED" ff6b6b fireworks 0

Questions

Does cron know where the helper and auth are?

Yes: the commands use full paths, and the helper reads ~/.config/pipplee/auth, so it doesn't need your shell settings.

More ideas

All developer ideas and setup →

Get Pipplee

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

iPhone Android