Add Installation

This commit is contained in:
ztpnk
2020-08-17 14:03:58 +02:00
parent 5112afaab2
commit f3a011e155
3 changed files with 26 additions and 0 deletions

View File

@@ -9,3 +9,16 @@ This is a simple script for receiving [Gotify](https://github.com/gotify/server)
* display it via dust (notify-send) * display it via dust (notify-send)
* multiple priorities adopted from Gotify * multiple priorities adopted from Gotify
* automatic fetch of your application Images * automatic fetch of your application Images
## Installation
1. Clone this repo
<code>git clone https://github.com/ztpnk/gotify-dunst && cd gotify-dunst</code>
2. Install python requirements
<code>./.env/bin/pip install -r requirements.txt</code>
3. Change the domain and token in main.py
4. Test if it runs
<code>./.env/bin/python main.py</code>
5. Customize the gotify-dunst.service and copy it to /etc/systemd/system
6. Start and enable the Systemd Unit
<code>sudo systemd start gotify-dunst && sudo systemd enable gotify-dunst</code>

12
gotify-dunst.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=Gotify-Dunst
After=network.target
[Service]
User=<user>
WorkingDirectory=<your-path>/gotify-dunst/
ExecStart=<your-path>/gotify-dunst/.env/bin/python main.py
Restart=always
[Install]
WantedBy=multi-user.target

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
websocket-client==0.57.0