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.
Matthias Bilger f32576c32c
All checks were successful
continuous-integration/drone/push Build is passing
improved compatibility of calendar entry mail
2019-09-27 15:05:24 +02:00
2018-10-21 07:29:07 +02:00
2018-10-21 07:29:07 +02:00
2018-10-21 07:29:07 +02:00
2019-05-08 05:10:07 +02:00
2019-09-27 08:45:12 +02:00
2019-09-27 08:45:12 +02:00
2019-05-02 05:28:24 +02:00
2019-09-27 08:45:12 +02:00
2019-09-27 08:45:12 +02:00
2019-09-27 13:48:38 +02:00
2019-09-27 08:45:12 +02:00
2019-09-27 08:45:12 +02:00

Infomentor Tool

This tool is designed to check the infomentor portal and send notifications using mail or pushover api.

Usage

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 should be placed.

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

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

for adding an user or all the commands run it adding -it to it, like:

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

Manage Users

Step 1 create a user

Provide the username and password for infomentor.

docker run -it -v '/var/docker/infomentor/:/home/appuser' infomentor:latest adduser --username <username>

Step 2 add notification mechanism

docker run -it -v '/var/docker/infomentor/:/home/appuser' infomentor:latest addmail --username <username>

or

docker run -it -v '/var/docker/infomentor/:/home/appuser' infomentor:latest pushover --username <username>

Step 3 (optional) Add iCloud calendar

NB: This is currently not working. You could add it, but it won't work.

It is capable of syncing all the infomentor calendar elements to icloud calendar

source venv/bin/activate
addcalendar --username <username>

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.

Description
No description provided
Readme 363 KiB
Languages
Python 96.8%
HTML 2.7%
Dockerfile 0.5%