Go to file
2021-08-01 21:55:57 +02:00
.gitignore Write line names to separate table 2019-06-22 01:36:35 +02:00
monitor.py Properly separate line choices 2019-06-26 11:34:24 +02:00
README.md Begin explainer on legality 2021-08-01 21:55:57 +02:00
requirements.txt Fix requirements 2019-06-22 01:43:28 +02:00
setup.py Set up stations table in Setup 2019-06-22 02:53:17 +02:00
vrr.ini Compact print format by default, proper separation of line choices 2019-05-19 21:33:00 +02:00

VRR-Accountability

A script to help evaluate the reliability of public transport.

monitor.py logs departures (and their delays) to a MySQL database.

Requirements

  • A running MySQL database
  • Python 3 with the modules from requirements.txt
    • These are installable with pip3 install -r requirements.txt

Usage

  • Run ./monitor.py -s to generate a configuration file
    • Store the output in vrr.ini and add your database configuration
  • Run ./monitor.py to start logging!

Thoughts on legality

The ToS of https://abfahrtsmonitor.vrr.de state: "Es sind sämtliche Maßnahmen zu unterlassen, die störend in die Funktion der Webseite eingreifen können. Dazu gehören auch solche, die eine übermäßige oder unzumutbare Belastung der nachgelagerten Infrastruktur zur Folge haben können." This roughly translates as: "You must refrain from taking any measures that may disturb the functioning of the website. This includes measures that put excessive or unreasonable load on the back-end infrastructure."