add ntfysend
a small wrapper over curl to send ntfy messages
This commit is contained in:
parent
150646b4c8
commit
18291fdf07
1 changed files with 11 additions and 0 deletions
11
ntfysend
Executable file
11
ntfysend
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
source /etc/ntfysendrc
|
||||
|
||||
message="$1"
|
||||
title="${2:-$(hostname)}"
|
||||
|
||||
curl -u "$NTFY_USER:$NTFY_PASSWORD" \
|
||||
-H "Title: $title" \
|
||||
-d "$message" \
|
||||
$NTFY_URL
|
||||
Loading…
Add table
Add a link
Reference in a new issue