Přidat Linux/gotify.sh
This commit is contained in:
parent
15ced67c9e
commit
b511fdf93b
7
Linux/gotify.sh
Normal file
7
Linux/gotify.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
TITLE="My Title"
|
||||
MESSAGE="Hello: "
|
||||
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"
|
||||
Loading…
Reference in New Issue
Block a user