İçeriğe geç
TakoAPI
Becerilere dön

bahn

tobiasbischoff tarafından

Transportation
1.8kİndirme sayıları clawskills.sh tarafından bildirilir
0Görüntülenmeler
0 beğeniBu beceriyi beğenmek için giriş yapın
—Henüz değerlendirilmedi
Puanınız

Özet

Search Deutsche Bahn train connections using the bahn-cli tool.

Açıklama

Bu Beceri Ne Yapar

Searches Deutsche Bahn train connections between German stations using the bahn-cli command-line tool. Returns departure and arrival times, platform numbers, duration, transfer count, and train numbers (ICE, IC, RE) for routes across Germany.

Gets Deutsche Bahn schedule data directly from the command line without opening a browser or the DB Navigator app.

Ne Zaman Kullanılır

  • Finding the next train from Berlin to Munich this afternoon
  • Checking how many transfers a route requires before booking
  • Looking up platform numbers before heading to the station
  • Searching connections for a specific future date and departure time
  • Comparing travel options between two German cities

Örnek İş Akışı

GİRİŞ

User asks: What trains run from Hannover to Bonn tomorrow at 9am?

AJAN
  1. 1

    Identify origin as 'Hannover Hbf' and destination as 'Bonn Hbf'

  2. 2

    Determine tomorrow's date and format it as YYYY-MM-DD

  3. 3

    Run: cd ~/Code/bahn-cli && node index.js search "Hannover Hbf" "Bonn Hbf" --date 2026-03-20 --time 09:00 --results 5

  4. 4

    Parse output for departure times, arrival times, duration, and number of changes

  5. 5

    Present connection options with platform numbers and train types

ÇIKIŞ

A list of train connections with departure and arrival times, total duration, number of changes, and train numbers

Gereksinimler

  • bahn-cli installed at ~/Code/bahn-cli (npm install in that directory)

Kurulum

clawhub install tobiasbischoff/bahn

CLI komutunu çalıştırın ya da istemi Claude Code, Cursor, Codex veya kullandığınız kodlama ajanına yapıştırın.

Bağlantılar