跳到正文
TakoAPI
返回技能列表

irail

由 dedene 提供

DevOps & Cloud
447下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query Belgian railway (NMBS/SNCB) schedules via the irail CLI.

描述

该技能的功能

Command-line interface for querying Belgian railway (NMBS/SNCB) data via the public iRail API. Covers departures, arrivals, connections, train compositions, and service disruptions. No account or API key required.

The iRail API is free and unauthenticated, so this CLI gives immediate access to live Belgian rail data without browser navigation or app installs.

何时使用

  • Checking next train departure from Brugge before leaving home
  • Planning a route from Ghent to Leuven with transfer options
  • Verifying which platform a train departs from
  • Checking current disruptions before a morning commute
  • Scripting delay alerts by piping JSON output through jq

示例工作流

输入

User asks: What are the next trains from Brugge to Leuven, and are any delayed?

智能体
  1. 1

    Run irail connections Brugge Leuven --json to fetch upcoming connections

  2. 2

    Parse JSON output with jq to extract departure times and delay values

  3. 3

    Run irail liveboard Brugge --json to check platform assignments and delays

  4. 4

    Filter results where delay > 0 to identify affected trains

  5. 5

    Format and return a summary of next departures with delay status

输出

List of upcoming Brugge–Leuven connections with departure times, transfer count, and any current delays in minutes

安装

clawhub install dedene/irail

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接