diff --git a/README.md b/README.md index cb1734a..2f8436a 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,16 @@ This is a simple script for receiving [Gotify](https://github.com/gotify/server) * display it via dust (notify-send) * multiple priorities adopted from Gotify * automatic fetch of your application Images + +## Installation + +1. Clone this repo +git clone https://github.com/ztpnk/gotify-dunst && cd gotify-dunst +2. Install python requirements +./.env/bin/pip install -r requirements.txt +3. Change the domain and token in main.py +4. Test if it runs +./.env/bin/python main.py +5. Customize the gotify-dunst.service and copy it to /etc/systemd/system +6. Start and enable the Systemd Unit +sudo systemd start gotify-dunst && sudo systemd enable gotify-dunst diff --git a/gotify-dunst.service b/gotify-dunst.service new file mode 100644 index 0000000..058bbd6 --- /dev/null +++ b/gotify-dunst.service @@ -0,0 +1,12 @@ +[Unit] +Description=Gotify-Dunst +After=network.target + +[Service] +User= +WorkingDirectory=/gotify-dunst/ +ExecStart=/gotify-dunst/.env/bin/python main.py +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..965ad95 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +websocket-client==0.57.0