← 返回
效率工具 中文

KMB and LWB Bus Arrivals

Get real-time KMB bus arrival times by route, direction, and stop using the official API for accurate next bus ETAs.
使用官方 API 按路线、方向和站点实时获取 KMB 公交到站时间,精准提供下班车 ETA。
stevenho1394
效率工具 clawhub v1.2.1 5 版本 99872.8 Key: 无需
★ 0
Stars
📥 785
下载
💾 3
安装
5
版本
#latest

概述


name: kmb-bus-arrival

description: Retrieve real-time KMB bus arrival information. getNextArrivals returns plain text; other tools return JSON.

version: 1.2.1

author: Steven Ho

repository: https://github.com/StevenHo1394/kmb-bus-arrival

tools:

  • name: getRouteDirection

description: List available travel directions for a KMB route. Returns JSON.

command: python3 kmb_bus.py getRouteDirection {route}

inputSchema:

type: object

required: [route]

properties:

route:

type: string

output:

format: json

  • name: getRouteInfo

description: Get the list of stops for a route with sequence numbers. Returns JSON.

command: python3 kmb_bus.py getRouteInfo {route} {direction}

inputSchema:

type: object

required: [route, direction]

properties:

route:

type: string

direction:

type: string

enum: ["outbound", "inbound"]

output:

format: json

  • name: getBusStopID

description: Find bus stop ID(s) by name (Chinese or English). Returns JSON.

command: python3 kmb_bus.py getBusStopID {name}

inputSchema:

type: object

required: [name]

properties:

name:

type: string

output:

format: json

  • name: getNextArrivals

description: Get the next bus arrival times for a specific route/direction/stop. Returns plain text.

command: python3 kmb_bus.py getNextArrivals {route} {direction} {stopId}

inputSchema:

type: object

required: [route, direction, stopId]

properties:

route:

type: string

direction:

type: string

enum: ["outbound", "inbound", "auto"]

stopId:

type: string

output:

format: text

Implementation:

  • getNextArrivals output:

```

Route (To Destination)

Stop: Human Readable Stop Name

Next arrivals:

  • HH:MM HKT
  • HH:MM HKT

```

If direction="auto" and the stop is served in both directions, multiple blocks are printed.

  • Auto-direction: direction="auto" tries both inbound and outbound; reports whichever has the stop. If both, both are shown.
  • Alternate stop ID fallback: If the given stop ID is not found on the route, the skill searches the route's stop list for a stop whose Chinese or English name matches the intended location and uses that stop's ID instead.
  • All tools except getNextArrivals return JSON.
  • Errors: getNextArrivals prints human-readable messages; other tools return JSON with an error field.

version: 1.2.1

changes:

  • Full removal of caching — all API calls are fresh
  • Plain-text errors for getNextArrivals; JSON errors for other tools
  • Auto-direction and alternate stop ID fallback retained
  • Docs aligned with code

版本历史

共 5 个版本

  • v1.2.1 当前
    2026-05-12 04:39 安全 安全
  • v1.2.0
    2026-05-09 03:29 安全 安全
  • v1.1.9
    2026-05-07 03:36 安全 安全
  • v1.1.7
    2026-05-03 04:14 安全 安全
  • v1.1.0
    2026-03-30 01:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube Live Broadcast Checking

stevenho1394
使用YouTube Data API v3 与 Google API 密钥检查并管理 YouTube 频道,获取其即将安排的直播信息。
★ 0 📥 608
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,730
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,198