This tool serves the pure purpose to fill the MTEC presence tracing form faster.
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
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
.
You need the following programs and packages:
- Python 3
- Selenium:
python3 -m pip install selenium
- Firefox:
sudo apt update && sudo apt install firefox
- Geckodriver for Firefox:
sudo apt install firefox-geckodriver
Command line commands are for Debian, Ubuntu, and related Linux distributions using Advanced Package Tool.
- Add feature to add deviating room without changing the default user data.
- Restructure to make it easier to understand and to follow the instructions