Public instance running at MBTA.fyi
We use Conda to manage our Python libraries. Install conda
Note that if you choose to install Anaconda (the full version), you probably only need to install GTSF Realtime. But if you choose to install Miniconda, which is way smaller, you'll need to install dependencies later one by one.
pip install protobuf
pip install --upgrade gtfs-realtime-bindings
If it's throwing errors about setuptools, do this:
conda install -c https://conda.anaconda.org/anaconda setuptools
If it's still not working, try install GTFS using
easy_install --upgrade gtfs-realtime-bindings
Using the pyScss and Flask Assets to compile the SCSS files.
pip install flask-assets
pip install pyScss
conda install lxml
Sign up for an account on the MBTA realtime Developer Portal and create a new application. It may take a day or two to get approval. Once you get it, create a file called ignore/mbta_api_key.txt
and paste your API key there.
$ git clone "https://github.com/robsideshow/mbta-bustracker.git"
$ cd your-path-to/mbta-bustracker
$ python flaskbus.py
Open the app at localhost:5000/