Real-time tracking of nearest trams next to headquarters of Hackerspace Trójmiasto located in Gdańsk, Poland. The project was written to be finally displayed on matrix monitors. The script takes data from the two closest stops going in two different directions of the city.
The data is pulled from the official Open Data API located here: https://ckan.multimediagdansk.pl/dataset/tristar/resource/00fbcffa-5188-45be-b300-b4da9a91c24f
- Gets live data from ckan.multimediagdansk.pl
- Shows live data
- Shows train emoji when the time is under 1 minute
- Refreshes every n seconds for its owns
- Shows n lines of coming trams
- Configurable station
- Open this project in PlatformIO
- Run "pip3 install requirements.txt" command
- You can set other stops in Tricity with(Default stops are: Zajezdnia 01 and Zajezdnia 02):
- Choose the stop you want to be displayed('stopId') in List of stops
- Replace stop_id with stop you'd like
- Start the "main.py" file. (Works on Python 3.10.7)
- You will see an output while it works. The output refreshes on its own every 20sec(You can change it in the code execution)
- Add colors to the tram numbers
- Add the option to show scheduled data if live data is not available
- Add an apostrophe next to the minute
Big thanks to:
- DoomHammer for the chance to do this project.
- Claude for code review.