From b843c69c16d0115946beb507d051bbfe783dd4b8 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 16 Oct 2024 21:59:32 -0400 Subject: [PATCH] docs: add quantum5/ntfy-run to integrations and examples --- docs/examples.md | 6 ++++++ docs/integrations.md | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/examples.md b/docs/examples.md index d6f83f30..8f2442fd 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -31,6 +31,12 @@ GitHub have been hopeless. In case it ever becomes available, I want to know imm */6 * * * * if curl -s https://api.github.com/users/ntfy | grep "Not Found"; then curl -d "github.com/ntfy is available" -H "Tags: tada" -H "Prio: high" ntfy.sh/my-alerts; fi ``` +You can also use [`ntfy-run`](https://github.com/quantum5/ntfy-run) to send the output of your cronjob in the +notification, so that you know exactly why it failed: + +``` +0 0 * * * ntfy-run -n https://ntfy.sh/backups --success-priority low --failure-tags warning ~/backup-computer +``` ## Low disk space alerts Here's a simple cronjob that I use to alert me when the disk space on the root disk is running low. It's simple, but diff --git a/docs/integrations.md b/docs/integrations.md index a593bf36..b25dab40 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -146,6 +146,7 @@ I've added a ⭐ to projects or posts that have a significant following, or had - [ntfy-java](https://github.com/MaheshBabu11/ntfy-java/) - A Java package to interact with a ntfy server (Java) - [container-update-check](https://github.com/stendler/container-update-check) - Scripts to check and notify if a podman or docker container image can be updated (Podman/Shell) - [ignition-combustion-template](https://github.com/stendler/ignition-combustion-template) - Templates and scripts to generate a configuration to automatically setup a system on first boot. Including systemd-ntfy-poweronoff (Shell) +- [ntfy-run](https://github.com/quantum5/ntfy-run) - Tool to run a command, capture its output, and send it to ntfy (Rust) ## Blog + forum posts