360 Secure SkillHub
360 安全技能中心

rail-live-boards

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

分类:生活
simonjohnedwards-hub
simonjohnedwards-hub
热度 9.57
最近更新 2026-10-03 20:03:18

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add simonjohnedwards-hub/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.