Přidat Linux/gotify.sh

This commit is contained in:
Martin Štefl 2026-01-16 21:07:43 +01:00
parent 15ced67c9e
commit b511fdf93b

7
Linux/gotify.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
TITLE="My Title"
MESSAGE="Hello: ![](https://gotify.net/img/logo.png)"
PRIORITY=5
URL="http://localhost:8008/message?token=<apptoken>"
curl -s -S --data '{"message": "'"${MESSAGE}"'", "title": "'"${TITLE}"'", "priority":'"${PRIORITY}"', "extras": {"client::display": {"contentType": "text/markdown"}}}' -H 'Content-Type: application/json' "$URL"