mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-25 16:23:03 +02:00
Update examples
This commit is contained in:
parent
9d37217eba
commit
1e7ae885b4
3 changed files with 8 additions and 2 deletions
examples/linux-desktop-notifications
|
@ -2,6 +2,8 @@
|
|||
# This is an example shell script showing how to consume a ntfy.sh topic using
|
||||
# a simple script. The notify-send command sends any arriving message as a desktop notification.
|
||||
|
||||
TOPIC_URL=ntfy.sh/mytopic
|
||||
|
||||
while read msg; do
|
||||
[ -n "$msg" ] && notify-send "$msg"
|
||||
done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw)
|
||||
done < <(stdbuf -i0 -o0 curl -s $TOPIC_URL/raw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue