Commit 60309463 authored by kenkeiras's avatar kenkeiras

Add gotify-reader daemon script.

parent 7761f0ec
set -eu
# Move to directory where this is executed
cd $(dirname "$0")
source params.bash
exec websocat "wss://${DOMAIN}/stream?token=${TOKEN}"|xargs -d$'\n' -n1 sh
#!/usr/bin/env bash
echo "$1"
title=$(echo "$1" | jq -r .title)
message=$(echo "$1" | jq -r .message)
notify-send "$title" "$message"
DOMAIN="<insert here gotify server domain>"
TOKEN="<insert here application token>"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment