bahn
Installation
SKILL.md
Bahn
A comprehensive suite of commands for Deutsche Bahn trains - live departures, delay tracking, Baustellen/disruption alerts, journey planning, connection parsing, historical delay stats, and delay predictions. No API keys needed.
Flags
| Flag | What it does | When to use |
|---|---|---|
--predict |
Runs the exponential delay model (transferProb, zugbindungProb) | User asks about probability of catching a transfer or Zugbindung being lifted |
--stats |
Fetches historical bahn.expert aggregate data per train | User asks about historical delay patterns for a specific train |
Examples
# Search for a train station
node scripts/bahn.mjs --search "Wuppertal" [--json]
# Find latest departures from a given station
node scripts/bahn.mjs --departures "Wuppertal Hbf" [--results N] [--json]