返回顶部
l

linz-public-transport林茨公交查询

Query Linz Linien raw EFA endpoints for stop lookup and live departures. Use when tasks involve Linz public transport stop search, resolving stop IDs from stop names, or fetching upcoming departures from a stop.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
672
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

linz-public-transport

Linz Public Transport

Use this skill to interact with Linz Linien EFA endpoints:

  • - INLINECODE0
  • INLINECODE1

Read endpoint details in {baseDir}/references/endpoints.md before implementation.
Use {baseDir}/scripts/linz_transport.py as the default execution path.

Workflow

  1. 1. Resolve the API base URL.
  2. Run the script subcommand that matches the task.
  3. Return a compact, user-facing summary.

Primary Tooling

  • - Script path: INLINECODE4
  • Runtime: Python 3, standard library only.
  • Base URL input:
- --base-url <url> argument, or - LINZ_TRANSPORT_API_BASE_URL environment variable, or - default http://www.linzag.at/linz2.

Preferred commands:

  • - Search stops:

- python {baseDir}/scripts/linz_transport.py stops "taubenmarkt"
  • - Fetch departures by stop ID:

- python {baseDir}/scripts/linz_transport.py departures --stop-id 60501160 --limit 10
  • - Resolve stop and fetch departures in one call:

- INLINECODE10

Step 1: Resolve Base URL

  • - Use user-provided base URL first.
  • Otherwise use LINZ_TRANSPORT_API_BASE_URL if available.
  • If neither exists, use http://www.linzag.at/linz2.

Step 2: Present Output

  • - Sort by countdownInMinutes ascending if needed.
  • Show the next 5-10 departures unless user asks for more.
  • Include both relative (countdownInMinutes) and absolute (time) times.
  • Keep field names stable when returning JSON.

Error Handling

  • - If stop search returns empty list, suggest nearby spellings and retry with a shorter query token.
  • If multiple stop matches are returned, rerun with explicit --stop-id or use next ... --pick-first only when ambiguity is acceptable.
  • If departures response is empty, state that no upcoming departures are currently available.
  • If HTTP request fails, report status code, endpoint, and retry guidance.
  • If EFA response includes a message code, include that code in diagnostics.

Minimal Examples

CODEBLOCK0

CODEBLOCK1

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 linz-public-transport-1776420065 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 linz-public-transport-1776420065 技能

通过命令行安装

skillhub install linz-public-transport-1776420065

下载

⬇ 下载 linz-public-transport v1.0.1(免费)

文件大小: 6.72 KB | 发布时间: 2026-4-17 19:23

v1.0.1 最新 2026-4-17 19:23
- Added a detailed SKILL.md with usage, workflow, preferred commands, and error handling for Linz public transport EFA endpoint queries.
- Clarified step-by-step workflow for resolving the base API URL and output presentation.
- Provided minimal command-line usage examples for stop search and live departure queries.
- Outlined error handling strategies and response formatting expectations.
- Noted environment variable and argument options for customizing the base URL.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部