This repository aims at providing periodic information about the duration of a car trip to given destinations, taking live traffic into account. This was achieved by using a mini LCD connected to a Raspberry PI.
The communication with the LCD was done through the interfacing made available by The Raspberry Pi Guy.
The travel information comes from TomTom Routing API.
pip install requests
pip install schedule
To run this in the console, simply run
python console_travel_time.py
-
Follow this installation guide to setup the drivers for the LCD communication
https://github.com/the-raspberry-pi-guy/lcd#Installation -
Register in TomTom for developers and get your API key, to replace the one in
apikey
file. -
Change the coordinates in
coordinates.json
-
Run
python lcd_travel_time.py
Updated travel times will now be shown in your lcd every 10 minutes. Make the necessary adjustments to edit the periodicity at your own will.