Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.32 KB

README.md

File metadata and controls

34 lines (19 loc) · 1.32 KB

Travel Time Raspberry

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.

Setup

Install dependencies

pip install requests
pip install schedule

Run in the console

To run this in the console, simply run
python console_travel_time.py

Run on Raspberry Pi

  1. Follow this installation guide to setup the drivers for the LCD communication
    https://github.com/the-raspberry-pi-guy/lcd#Installation

  2. Register in TomTom for developers and get your API key, to replace the one in apikey file.

  3. Change the coordinates in coordinates.json

  4. 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.