Commandtrein
CLI tool for NMBS timetables and routes.
Install / Use
/learn @Kaya-Sem/CommandtreinREADME
<h1 align="center">Commandtrein</h1>
<p align="center">Commandtrein is a command-line interface (CLI) tool designed to access and display timetables and route information for SNCB (Belgian Railways) directly from your terminal.</p>
<p align="center"> • <a href="https://github.com/Kaya-Sem/commandtrein/wiki">Documentation</a> • <a href="https://github.com/Kaya-Sem/commandtrein/#Features">Features highlights</a> • <a href="https://github.com/Kaya-Sem/commandtrein/wiki/Installation">Quickstart</a></p>
Features
- Timetables: retrieve and display the current timetable for any SNCB station.
- Routes: Get detailed connections and travel times between two SNCB stations.
- Shortcuts: Configure and use shortcuts for frequently used routes.
Documentation
Configuration
Commandtrein uses a YAML configuration file located at ~/.config/commandtrein/config.yaml. This files stores your shortcuts for frequent routes.
Example configuration:
shortcuts:
work:
station1: "Brussel-Midi"
station2: "Antwerpen-Centraal"
Acknowledgements
Commandtrein leverages the iRails API, an open-source API for accessing real-time data from SNCB.
