This repository has been archived on 2024-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2019-01-13 22:58:12 +11:00
virtual_metro Add some basic documentation 2019-01-13 22:58:12 +11:00
.gitignore Initial commit 2018-12-31 20:26:42 +11:00
COPYING Add licence 2019-01-11 23:04:36 +11:00
README.md Add some basic documentation 2019-01-13 22:58:12 +11:00
virtual-metro.service Optimise for --preload in production 2019-01-01 14:11:00 +11:00

Virtual Metro

Online simulation of Melbourne Metro Trains (Public Transport Victoria) platform information display systems.

Example image

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