360 Secure SkillHub
360 安全技能中心

rail-live-boards

该 Skill 通过 Rail Data API 查询英国国家铁路车站的实时出发/到达看板,支持按车站代码查看延误、取消、站台、运营商及服务详情,并以 JSON 输出结果。需要配置 API 密钥。

simonjohnedwards-hub
simonjohnedwards-hub
热度 15.00
最近更新 2026-10-03 20:03:18
分类:生活依赖:代码执行 / 第三方 API应用场景:旅行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add rail-live-boards
Metadata
name
rail-live-boards
description
Query UK National Rail live boards, delays, cancellations, platforms, and service details.

Rail Live Boards

Use this skill for live UK rail departure and arrival boards, disruption notices, platform checks, and service details.

Setup

Requires a valid Rail Data API key:

  1. Set RAILDATA_API_KEY in the environment.
  2. NATIONAL_RAIL_TOKEN is accepted as a fallback.
  3. The helper calls https://api1.raildata.org.uk/1010-live-arrival-and-departure-boards-arr-and-dep1_1/LDBWS/api/20220120/GetArrDepBoardWithDetails/{crs}.

Commands

./scripts/rail-live-boards.py board PAD
./scripts/rail-live-boards.py departures PAD --rows 5
./scripts/rail-live-boards.py arrivals MAN --rows 5
./scripts/rail-live-boards.py search paddington

Reading Results

The helper prints live JSON.

Useful fields:

  • locationName, crs, generatedAt
  • nrccMessages[]
  • trainServices[]
  • Per service:
    • std / etd
    • sta / eta
    • platform
    • operator
    • origin[]
    • destination[]
    • isCancelled, cancelReason, delayReason
    • formation.coaches when present

Notes

  • Use 3-letter CRS codes like PAD, EUS, MAN, RDG.
  • Keep the API key private.
  • If you need a compact summary for chat, read the first few services and the disruption messages first.