IMPORTANT: Since there are https://github.com/Andrewerr/NextcloudServices and https://github.com/nextcloud/notify_push now, this project is no longer needed.
A Python script that fetches notifications from the Nextcloud notification API and pushes them to a Gotify server.
Just adapt the settings in the settings.py file and start run the script. A working Nextcloud instance and a working Gotify setup is needed.
- You can setup logging, by providing the path to a logfile in settings.py
- To use the provided servicefile, copy it to /etc/systemd/system and enable/start it. (To use it, push_msg.py must be located in /usr/local/bin/
- Find a better way for authentication, as username and password are stored in plaintext in the settings.py file
- Use a persistent storage so that old notifications aren't resent, when the script is restarted