notify.sh (349B) - raw
1 #!/bin/sh 2 # 2020 Oscar Benedito <oscar@oscarbenedito.com> 3 # License: CC0 1.0 Universal License 4 5 # Gotify notify: notifies user using a Gotify instance. 6 7 GOTIFY_DOMAIN="<redacted>" 8 GOTIFY_TOKEN="<redacted>" 9 10 curl -X POST "https://$GOTIFY_DOMAIN/message?token=$GOTIFY_TOKEN" \ 11 -F "title=$1" -F "message=$2" -F "priority=${3:-5}" \ 12 >/dev/null 2>&1