← 返回 Skills 市场
manmal

A nach B - AT Public Transport Service (VOR)

作者 manmal · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1928
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install a-nach-b
功能描述
Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search stations/stops, plan routes between locations, and check service disruptions. Use when asking about Austrian trains, buses, trams, metro (U-Bahn), or directions involving public transport in Austria.
使用说明 (SKILL.md)

VOR AnachB - Austrian Public Transport API

Query Austrian public transport for real-time departures, route planning, and service disruptions using the HAFAS API.

Quick Reference

Script Purpose
search.sh Find stations/stops by name
departures.sh Real-time departures at a station
route.sh Plan a trip between two locations
disruptions.sh Current service disruptions

API: HAFAS (Hacon Fahrplan-Auskunfts-System)
Endpoint: https://vao.demo.hafas.de/gate


1. Search Stations/Stops

Find station IDs by name:

./search.sh "Stephansplatz"
./search.sh "Wien Hauptbahnhof"
./search.sh "Linz"
./search.sh "Salzburg Hbf"

Returns station names, IDs (extId), and coordinates.

Response fields:

  • name: Station name
  • extId: Station ID for use in other queries
  • type: S (Station), A (Address), P (POI)
  • coordinates: WGS84 coordinates (lon/lat in 1e-6 format)

2. Real-Time Departures

Get next departures from a station:

./departures.sh \x3Cstation-id> [count]

# Examples:
./departures.sh 490132000        # Wien Stephansplatz, 10 departures
./departures.sh 490132000 20     # Wien Stephansplatz, 20 departures
./departures.sh 490060200        # Wien Hauptbahnhof
./departures.sh 444130000        # Linz Hbf
./departures.sh 455000100        # Salzburg Hbf

Response fields:

  • line: Line name (U1, S1, RJ, etc.)
  • direction: Final destination
  • departure: Scheduled departure time
  • delay: Delay in minutes (if any)
  • platform: Platform/track number

3. Route Planning

Plan a trip between two stations:

./route.sh \x3Cfrom-id> \x3Cto-id> [results]

# Examples:
./route.sh 490132000 490060200        # Stephansplatz → Hauptbahnhof
./route.sh 490132000 444130000 5      # Wien → Linz, 5 results
./route.sh "Graz Hbf" "Wien Hbf"      # Search by name (slower)

Response fields:

  • departure: Departure time
  • arrival: Arrival time
  • duration: Trip duration
  • changes: Number of transfers
  • legs: Array of trip segments with line info

4. Disruptions

Check current service disruptions:

./disruptions.sh [category]

# Examples:
./disruptions.sh            # All disruptions
./disruptions.sh TRAIN      # Train disruptions only
./disruptions.sh BUS        # Bus disruptions only

Common Station IDs

Station ID
Wien Stephansplatz 490132000
Wien Hauptbahnhof 490134900
Wien Westbahnhof 490024300
Wien Praterstern 490056100
Wien Karlsplatz 490024600
Wien Schwedenplatz 490119500
Linz Hbf 444116400
Salzburg Hbf 455000200
Graz Hbf 460086000
Innsbruck Hbf 481070100
Klagenfurt Hbf 492019500
St. Pölten Hbf 431543300
Wiener Neustadt Hbf 430521000
Krems a.d. Donau 431046400

Tip: Always use ./search.sh to find the correct station ID.


Transport Types

Code Type
ICE/RJ/RJX High-speed trains
IC/EC InterCity/EuroCity
REX/R Regional Express/Regional
S S-Bahn (suburban rail)
U U-Bahn (Vienna metro)
STR Tram/Straßenbahn
BUS Bus
AST Demand-responsive transport

API Details (for advanced usage)

The scripts use the HAFAS JSON API. For custom queries:

curl -s -X POST "https://vao.demo.hafas.de/gate" \
  -H "Content-Type: application/json" \
  -d '{
    "svcReqL": [{
      "req": { ... },
      "meth": "METHOD_NAME",
      "id": "1|1|"
    }],
    "client": {"id": "VAO", "v": "1", "type": "AND", "name": "nextgen"},
    "ver": "1.73",
    "lang": "de",
    "auth": {"aid": "nextgen", "type": "AID"}
  }'

Available methods:

  • LocMatch - Location/station search
  • StationBoard - Departures/arrivals
  • TripSearch - Route planning
  • HimSearch - Disruptions/service messages
  • JourneyDetails - Details of a specific journey

Tips

  1. Find station IDs first: Always use search.sh to find the correct station ID before querying departures or routes.

  2. Station vs Stop: Major stations have multiple platforms - the main station ID covers all platforms.

  3. Real-time data: Departures include real-time delays when available.

  4. Austria-wide: This API covers all Austrian public transport, not just Vienna.

  5. Cross-border: Some routes extend to neighboring countries (Germany, Czech Republic, etc.).

安全使用建议
This skill appears coherent and only makes network calls to a HAFAS demo endpoint. Before installing, note: (1) the scripts require curl and jq on PATH — install those if missing; (2) the endpoint used is 'vao.demo.hafas.de' (a demo host) rather than an official production API — expect rate limits or different behaviour; (3) the source/publisher is unknown and there's no homepage — if you need a production-grade or trusted integration, verify the provider or replace the endpoint/credentials with official ones; (4) the scripts do not access local secrets or files, but they will send queries you provide (station names/IDs) over the network, so run them in a network-restricted/sandboxed environment if you are concerned. Overall the skill is internally consistent with low risk.
功能分析
Type: OpenClaw Skill Name: a-nach-b Version: 1.0.0 The skill is classified as suspicious due to a JSON injection vulnerability present in all shell scripts (`departures.sh`, `disruptions.sh`, `route.sh`, `search.sh`). User-provided arguments are directly embedded into the JSON payload without proper escaping, allowing a malicious user to inject arbitrary JSON fragments into the API request. While this does not lead to arbitrary shell command execution on the agent's host, it could enable malformed API requests to the `https://vao.demo.hafas.de/gate` endpoint, potentially causing unexpected behavior or errors on the API side. No other malicious indicators such as data exfiltration, persistence, or prompt injection against the agent were found.
能力评估
Purpose & Capability
The name/description (Austrian public transport queries) align with the included scripts: search.sh, departures.sh, route.sh, disruptions.sh all POST to a HAFAS endpoint and parse responses. One minor mismatch: the scripts require curl and jq to run, but the skill's metadata declares no required binaries.
Instruction Scope
SKILL.md and the scripts confine behavior to constructing HAFAS JSON requests and calling the documented API endpoint. They do not read user files, environment secrets, or send data to third-party endpoints beyond the single HAFAS demo host. Output formatting is local (jq).
Install Mechanism
No install spec (instruction-only with shell scripts) — lowest-risk deployment model. The code is plain shell + jq usage; nothing is downloaded or extracted during install.
Credentials
The skill does not request environment variables, credentials, or config paths. The code includes a hard-coded client/auth object (client id VAO, auth aid 'nextgen') that appears non-secret and is consistent with demo usage.
Persistence & Privilege
The skill does not request persistent presence (always:false), does not modify system or other skills' configs, and requires no special privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install a-nach-b
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /a-nach-b 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial version: - Routing - Search - Departures - Disruptions
元数据
Slug a-nach-b
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

A nach B - AT Public Transport Service (VOR) 是什么?

Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search stations/stops, plan routes between locations, and check service disruptions. Use when asking about Austrian trains, buses, trams, metro (U-Bahn), or directions involving public transport in Austria. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1928 次。

如何安装 A nach B - AT Public Transport Service (VOR)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-nach-b」即可一键安装,无需额外配置。

A nach B - AT Public Transport Service (VOR) 是免费的吗?

是的,A nach B - AT Public Transport Service (VOR) 完全免费(开源免费),可自由下载、安装和使用。

A nach B - AT Public Transport Service (VOR) 支持哪些平台?

A nach B - AT Public Transport Service (VOR) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 A nach B - AT Public Transport Service (VOR)?

由 manmal(@manmal)开发并维护,当前版本 v1.0.0。

💬 留言讨论