TransitTracker is a simple python application I made to easily track when my next local bus would arrive. This application uses the Translink API and optionally the Transit App API.
- >= Python 3.11.0
- Requests
$ python -m pip install requests
- To automate the authentication process, you can create a credentials.json file in the top level directory
i.e. it should look something like (translink api mandatory, transit app api optional):
{"translink_api_key": "your_translink_api_key",
"transit_app_api_key": "your_transit_app_api_key"}
- Run the app by executing:
$ python start.py
- If you are running this on a raspberry pi, you can enable the display option with an automatic startup script:
$ ./start-transittracker.sh
or
$ python start.py -d
if running on a desktop, you can limit the screen size to a small window using the -w flag
$ python start.py -w
To enable script auto start on bootup, create an entry within ~/.config/autostart/.desktop
with the following lines:
make sure to edit the
<username>
field with your username
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec='/home/<username>/transittracker/start-transittracker.sh'
Name=transittracker