Skip to content

kajgrant/transittracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TransitTracker

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.

Example image

Prerequisites

$ python -m pip install requests

Usage

  1. 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"}
  1. Run the app by executing:
$ python start.py
  1. 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

Auto start

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

About

Python based tracker for Translink buses

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published