SBB-TUI is a TUI client for Switzerland’s public transport timetables, inspired by the SBB/CFF/FFS app/website and usable right at $HOME

Repository: https://github.com/Necrom4/sbb-tui

Why? I often work in the train, passing through remote regions of Switzerland where I’ll have to wait up to an entire minute to finally be able to load the SBB website/app and get the much needed information about my next connection (I have a cheap cellular data subscription). Someday I fell onto the incredible Swiss public transport API and decided it was the perfect occasion to learn how to create TUIs.

https://www.reddit.com/gallery/1s51m3s

Posted by 4Necrom

Share.

26 Comments

  1. FlyingDaedalus on

    > I’ll have to wait up to an entire minute to finally be able to load the SBB website/app and get the much needed information about my next connection (I have a cheap cellular data subscription).

    Sorry what? Which provider do you have? are you the guy who recently posted how genius he is by switching to some cheap provider for 9.90 chf per month?

  2. I mean good project but let’s be honest – this changes absolutely nothing about how fast your api requests receive a response because they are the exact same requests and responses

  3. Nerd fonts, nice… but if in switch in switch in switch… brother, torvalds would write an angry mail doing a code review xD

  4. Looks pretty neat, well done!

    I’ve been hacking away at a custom timetable script for my frequently used connections. At first I used the same API that you are using, but I got some extremely strange results at times, such as connections that just ended at a random stop along the route and considered that the final destination, or connections not showing up at all, even though they appeared on zvv.ch (which is what I’m trying to mirror, as their timetable does not like it when you try to build bookmark links for certain connections using JavaScript).

    I then switched to opentransportdata.swiss, which seems better. Did you ever find such inconsistencies using transport.opendata.ch? I’m not looking for support by the way, just curious 🙂

  5. There are no stations in these dead areas

    Stations have signal 

    How on earth is that faster or more convenient than using the ubique touch timetable in the SBB app?

    The train can be pulling into a station and in a couple of seconds I can whip my phone out, open the app and swipe and see the info. 

  6. Melodic_Lab_2589 on

    Can’t wait to try it. Also choosing Bern, **Wankdorf** for the cover image is a nice touch lol

  7. Wow!! Thank you..

    Now can u code a website that shows Spartickets from SBB?

    I always think it would be so.cool to just see that and then just go somewhere…

  8. Savings-Concept8972 on

    this is actually really clean, love the terminal approach for quick checks without dealing with the app lag