Git Product home page Git Product logo

pushoverinfocentral's Introduction

InfoCentral

Database Migrations

For being able to develop the database, this repo works with yoyo-migrations for migrations.

New DB migrations can be created by running yoyo new ./db_migrations -m "description of migration" from the src directory (or working directory after starting Docker container by docker-compose up -d).
Attention: pip requirements from requirements.txt have to be installed!

Watchers

Within the directory src/watcher, one can define python files as watchers. They need to have a watch function, that accepts the two parameters database and pushover. This function defines, what will be performed as watch action on the specific watcher.

The two watchers git and pushover are the first ones defined:

  • the pushover watcher simply fetches receipts of prio 2 Pushover messages
  • the git watcher allows one to watch (public) Git repositories for new commits or tags
    • The environmental variable WATCH_GIT_REPOS defines the list ([]) repos to be watched.
    • Each element of this list is a dictionary with two key-value-pairs:
      • repo_url defines the Git URL (string)
      • watch defines the actual watch command (dictionary {})
        • watch may be tags or commits
        • priority defines the priority to be used for Pushover message (defaults to 0) (see Pushover Documentation)
        • title defines the Pushover title of message (defaults to EMPTY)
        • message defines the Pushover message (default message for tag and commit)
        • url defines the Pushover url of message (defaults to EMPTY)
        • url_title defines the Pushover title for url of message (defaults to EMPTY)
        • each of the keys (but watch and priority) can use those placeholders:
          • {tag} current tag (watch: tags)
          • {commit} current commit identifier shortened to 8 chars (watch: commits)
          • {commit_id} current commit identifier (watch: commits)
          • {commit_message} message published with current commit (watch: commits)

pushoverinfocentral's People

Contributors

macwinnie avatar

Watchers

James Cloos avatar  avatar  avatar

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.