Every morning, before going out of the house, I have to send a message to TTC or check Google Maps to see when the bus will come.
I'm bored with this mundane task, so I wrote a bus scheduler to send me an iMessage to notify when the bus will come, I can have time to prepare.
If you are not using TTC, check the your bus provider from NextBus
Install bustracker package
pip install bustrackerfrom bustracker import BusTracker # Agency list is from http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList agency = 'ttc' bus = BusTracker(agency) # get prediction for bus stops stops = [ {'routeTag': 506, 'stopTag': 3292} ] predictions = bus.get_predictions(stops) print(predictions)
Detail of the project, can be found on github.
It would be nice if you want to help to improve this project by creating feature requests or pull request.