virtual_metro | ||
.gitignore | ||
COPYING | ||
README.md | ||
requirements.txt | ||
virtual-metro.service |
Virtual Metro
Online simulation of Melbourne Metro Trains (Public Transport Victoria) platform information display systems.
Usage
Apply for a PTV Timetable API API key, and copy virtual_metro/config.example.py to virtual_metro/config.py and set PTV_USER_ID
and PTV_USER_ID
accordingly.
Create a Python virtual environment if necessary and install the required dependencies:
virtualenv -p python3 venv
. venv/bin/activate
pip install -r requirements.txt
Run the app as per the Flask documentation:
. venv/bin/activate
export FLASK_APP=virtual_metro
flask run