odh-cli

module
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MPL-2.0

README

odh-cli

CI Release Upstream smoke

Unofficial CLI and MCP server for public Open Data Hub APIs, with compact tables for humans and structured JSON for scripts and agents.

Community project, not affiliated with or endorsed by NOI Techpark or Open Data Hub. Most Tourism and Mobility data covers South Tyrol; verify location from returned coordinates and origins rather than assuming it.

Features

  • Discovery: registered APIs, dataset catalog and topic guidance (datasets guide), OpenAPI specs, Tourism taxonomies, and Mobility types, origins, and data types.
  • Raw calls: call any registered API path with comma-safe --param key=value flags.
  • Mobility: stations and latest time-series measurements with --active, --fresh-within, and sorting filters.
  • Traffic & A22: deduplicated South Tyrol road notices from --source content (live Content API road bulletin; --area/--zone-id infer geography within 2 km from historical coordinates and reject unsupported filters) or --source odh (Mobility Timeseries events, with staleness warnings); A22 status inspection with explicit caveats.
  • Transit: STA GTFS datasets, live GTFS-RT feeds, stop search, departures, direct trips, and static transfer journeys with optional realtime annotations.
  • Diagnostics: reliability verdicts for EV charging availability, parking occupancy/forecasts, and Tourism events.
  • MCP server: exposes the curated surface as read-only Model Context Protocol tools (odh mcp serve).

Out of scope (reported explicitly rather than guessed): authenticated writes, live transit rerouting, historical GTFS-RT delay archives, and past A22 incident reconstruction.

Install

curl -fsSL https://raw.githubusercontent.com/galjos/odh-cli/main/scripts/install.sh | sh

Installs to ~/.local/bin after verifying the SHA-256 checksum (macOS/Linux, amd64/arm64). Pass --version v0.7.3 --dir "$HOME/bin" to pin.

Alternatives:

brew install galjos/odh/odh
sudo apt install ./odh_v0.7.3_linux_amd64.deb   # from GitHub Releases
go install github.com/galjos/odh-cli/cmd/odh@v0.7.3
go build -o odh ./cmd/odh                       # from source

Releases publish SHA256SUMS and GitHub artifact attestations (gh attestation verify <asset> --repo galjos/odh-cli). Shell completions: odh completion bash|zsh|fish|powershell.

Quickstart

odh doctor
odh apis
odh datasets guide parking --format json
odh call tourism /v1/ODHActivityPoi --param pagesize=1 --param fields=Detail.en.Title,GpsInfo
odh mobility origins --station-type ParkingStation
odh mobility latest --station-type EChargingStation --data-type number-available --active --fresh-within 24h --sort newest --limit 5
odh diagnostics parking-forecasts --origin "Municipality Merano" --fresh-within 2h
odh traffic today --source content --area ueberetsch-unterland --type roadworks --format table
odh traffic search "road closed badia" --source content --today --json
odh a22 status --limit 10
odh transit stops search merano --limit 10
odh transit journey --from-stop-id Parentit:22021:301 --to-stop-id it:22021:730:0:1150 --date 2026-05-21 --time 16:40 --max-transfers 3 --with-realtime --json

Use --source content for current South Tyrol road notices (default --source odh reads Mobility Timeseries events whose stored dates may be old). Run odh <command> --help for full flags and examples.

Automation & MCP

Development

go fmt ./... && go vet ./... && go test ./... && go build ./cmd/odh

See docs/development.md, docs/release.md, docs/evaluation.md, and CHANGELOG.md.

Directories

Path Synopsis
cmd
odh command
internal
mcpserver
Package mcpserver exposes the curated odh command surface as Model Context Protocol tools.
Package mcpserver exposes the curated odh command surface as Model Context Protocol tools.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL