Skip to content

mikowhyHUB/hs3-traminformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tram Information for Hackerspace Trójmiasto

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

Features

  • 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

Instructions

  1. Open this project in PlatformIO
  2. Run "pip3 install requirements.txt" command
  3. 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
  1. Start the "main.py" file. (Works on Python 3.10.7)
  2. You will see an output while it works. The output refreshes on its own every 20sec(You can change it in the code execution)

Todo

  • 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

Contribution

Big thanks to:

About

A program that displays data on a matrix monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages