Git Product home page Git Product logo

hs3-traminformation's Introduction

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:

If you have any questions, feel free to contact me :)

hs3-traminformation's People

Contributors

mikowhyhub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.