mirror of
https://github.com/simbelmas/gotify-dunst.git
synced 2026-01-19 14:35:23 +01:00
Add Installation
This commit is contained in:
13
README.md
13
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
|
||||
<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
12
gotify-dunst.service
Normal 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
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
websocket-client==0.57.0
|
||||
Reference in New Issue
Block a user