1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:02:09 +02:00

ntfy: add page (#14006)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Simon St-Pierre 2024-10-07 18:13:56 -04:00 committed by GitHub
parent b5ba068dfd
commit 617c6f9cee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

28
pages/common/ntfy.md Normal file
View file

@ -0,0 +1,28 @@
# ntfy
> Send and receive HTTP POST notifications.
> More information: <https://github.com/binwiederhier/ntfy>.
- 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`