From 617c6f9cee53a79ed2e2364102e24956fbd539ce Mon Sep 17 00:00:00 2001 From: Simon St-Pierre Date: Mon, 7 Oct 2024 18:13:56 -0400 Subject: [PATCH] ntfy: add page (#14006) Co-authored-by: Wiktor Perskawiec --- pages/common/ntfy.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/ntfy.md diff --git a/pages/common/ntfy.md b/pages/common/ntfy.md new file mode 100644 index 000000000..2a76a03cf --- /dev/null +++ b/pages/common/ntfy.md @@ -0,0 +1,28 @@ +# ntfy + +> Send and receive HTTP POST notifications. +> More information: . + +- Send a message to the `security` topic: + +`ntfy pub security "{{Front door has been opened.}}"` + +- Send with a title, priority and tags: + +`ntfy publish --title="{{Someone bought your item}}" --priority={{high}} --tags={{duck}} {{ebay}} "{{Someone just bought your item: Platypus Sculpture}}"` + +- Send at 8:30am: + +`ntfy pub --at=8:30am {{delayed_topic}} "{{Time for school, sleepyhead...}}"` + +- Trigger a webhook: + +`ntfy trigger {{my_webhook}}` + +- Subscribe to a topic (Ctrl-C to stop listening): + +`ntfy sub {{home_automation}}` + +- Display help: + +`ntfy --help`