This repository has been archived on 2020-02-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
infomentor/README.md
Matthias Bilger 45f0abe76f
All checks were successful
continuous-integration/drone/push Build is passing
added readme information
2019-09-27 22:40:36 +02:00

1.5 KiB

Infomentor Tool

This tool is designed to check the infomentor portal and send notifications using mail or pushover api. It is also capable of sending Calendar invitations/entries.

Usage

You could install it locally but using the docker image is preferred.

python3 -m venv venv
source venv/bin/activate
python setup.py install
infomentor

After the first run a infomentor.ini file is available which has a few values to be entered.

Docker

This could be run within docker. You it has a volume /home/appuser where all the data is stored. In favour of accessing it from a webserver you should bindmount it. There also the infomentor.ini would be placed.

Build the container by docker build -t infomentor:latest . and run it like this:

Notify Users / First Run

docker run -v '/var/docker/infomentor/:/home/appuser' infomentor:latest

Adding a user

docker run -v '/var/docker/infomentor/:/home/appuser' infomentor:latest --username <uname> --password <pwd> --pushover <pushoverid> --invitationmail <mymail>

See all options

docker run -v '/var/docker/infomentor/:/home/appuser' infomentor:latest --help

Webserver Setup (nginx)

If you use the bindmount path as above:

location / {
 root /var/docker/infomentor/files;
}

NB

The login process is a bit scary and mostly hacked. It happens often on the first run, that the login is not ready, the second run then should work without errors.

The script shall be run every 10 minutes, that will keep the session alive and minimize errors.