https://github.com/FaisalBinAhmed/MVGFahrinfo Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} FaisalBinAhmed / MVGFahrinfo Public * Notifications * Fork 3 * Star 48 Get up-to-date departure times for Munich public transport in your terminal. crates.io/crates/mvgfahrinfo License MIT license 48 stars 3 forks Activity Star Notifications * Code * Issues 2 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights FaisalBinAhmed/MVGFahrinfo This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/F] Use Git or checkout with SVN using the web URL. [gh repo clone Faisal] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @FaisalBinAhmed FaisalBinAhmed Merge branch 'main' of https://github.com/ FaisalBinAhmed/MVGFahrinfo ... 5e4aae0 Nov 5, 2023 Merge branch 'main' of https://github.com/FaisalBinAhmed/MVGFahrinfo 5e4aae0 Git stats * 71 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time src removing char callbacks in search November 5, 2023 16:44 .gitattributes Initial commit October 19, 2023 17:50 .gitignore fetch station ids October 19, 2023 18:45 Cargo.toml Update Cargo.toml November 5, 2023 16:49 LICENSE Initial commit October 19, 2023 17:50 README.md Update README.md November 4, 2023 21:36 stations.json read and write to file November 2, 2023 17:57 View code [ ] MVG Fahrinfo Using Installing Shortcuts Normal mode Search mode Screenshots Credits License README.md MVG Fahrinfo MVG Fahrinfo is a CLI tool to keep up-to-date with latest departure times of Munich public transport. The app is a native binary and uses official (albeit unpublished) MVG API. It is made with Rust. It features: * Very low resource usage. * Beautiful terminal interface. * Automatic refreshing of deartures. * Searching of stations. * Saving stations to file. * Real-life colors for vehicles for easier identification. * Easy navigation with shortcuts. Using Clone the repository and run cargo run in the root directory. In the first run, it will fetch the stations list from the server and save it to stations.json file. To force update the stations list file, just delete the file and run the app again. The app will stay open in your terminal and will refresh the departures every 60 seconds. To exit the app, press q or Ctrl+C. Installing To run it globally, you can install the app with cargo binstall mvgfahrinfo. Make sure you have binstall binstall repo installed. Once installed, you can invoke the app just by running mvgfahrinfo in the terminal. This is a binary crate and not a library, so you shouldn't use it as a dependency. I might provide some pre-built binaries for Windows/MacOS/Linux in the future. :) Shortcuts Normal mode * tab - Switch between departures and stations list. * r - Refresh departures. * s - Search for a station. * Up/Down - Navigate through the list of stations. * Enter - Select a station. * q - Quit the app. * Ctrl+C - Quit the app. Search mode * Esc - Exit search mode. * Up/Down - Navigate through the list of stations. * Enter - Select a station. Screenshots Current Departures in Munich Hauptbahnhof All stations list Station search Credits * MVG for the API. * Ratatui for the beautiful terminal interface framework. License MIT About Get up-to-date departure times for Munich public transport in your terminal. crates.io/crates/mvgfahrinfo Topics rust cli tui munich public-transport ubahn ratatui Resources Readme License MIT license Activity Stars 48 stars Watchers 1 watching Forks 3 forks Report repository Releases No releases published Packages 0 No packages published Contributors 3 * @FaisalBinAhmed FaisalBinAhmed Faisal Bin Ahmed * @bq-wrongway bq-wrongway bq_wrongway * @cawiac cawiac Languages * Rust 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.