Skip to content

moritzhoferer/mtec-presence-tracing

Repository files navigation

MTEC Presence Tracing

This tool serves the pure purpose to fill the MTEC presence tracing form faster.

How to use

Setup virtual environment (./venv/) in the directory of the repository, activate it and install requirements (./requirements.txt):

python3 -m venv venv
source ./venv/bin/activate
python -m pip install -r requirements.txt

Additionally, you need to install Firefox and the Geckodriver for Firefox and then you are ready to go (Links below).

To fill the form, execute this in terminal:

./mtec_presence_tracing.py hhmm hhmm

where the first time is the arrival and the second the departure time. The date is automatically for today. If you run the program the first time, the program asks you to enter your data.

In a Python GUI you navigate to the respective directory and execute

run mtec_presence_tracing.py hhmm hhmm

If you want to change your data, you can run the ./setup.py script or manipulate the ./user_data.csv file manually.

If you have a meeting in a different room, you can change the building, floor and room number for one time:

./mtec_presence_tracing.py hhmm hhmm buildingfloorroom

Set up aliases on Linux or Mac

To make life easier, you can also define aliases. Add these lines to the ~/.bashrc or ~/.bash_aliases file:

# MTEC presence tracing
alias mtec-presence-tracing='python3 $SCRIPTDIR/mtec_presence_tracing.py '

#MTEC presence tracing - setup
alias mtec-setup='python3 $SCRIPTDIR/setup.py'

or execute add_alias.sh. Afterwards, you run source ~/.bashrc.

Requirements

You need the following programs and packages:

Command line commands are for Debian, Ubuntu, and related Linux distributions using Advanced Package Tool.

TODOs

  • Add feature to add deviating room without changing the default user data.
  • Restructure to make it easier to understand and to follow the instructions

About

Tool to store user data and quickly fill the D-MTEC Presence Tracing form.

Topics

Resources

License

Stars

Watchers

Forks