Giter Site home page Giter Site logo

gotify-nextcloud's Introduction

Gotify-Nextcloud

License: GPL v2

IMPORTANT: Since there are https://github.com/Andrewerr/NextcloudServices and https://github.com/nextcloud/notify_push now, this project is no longer needed.

I will neither MAINTAIN the project, nor guarantee for onwards COMPATABILITY.

If you feel a need for this project, you are free to fork and change it as needed.

A Python script that fetches notifications from the Nextcloud notification API and pushes them to a Gotify server.

Usage

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.

Tips

  • 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/

TODO

  • 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

gotify-nextcloud's People

Contributors

berdosi avatar kereltje avatar mrchainman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gotify-nextcloud's Issues

Persistent Storage

We could achieve persistent storage, by dumping the pushed notifications list to a json file and trying to load in on startup,
@berdosi What do you think about that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.