Open Data Hub Cli
Use this skill when working with Open Data Hub, NOI Techpark data, ODH APIs, Tourism API, Mobility API, A22 traffic data, or when an agent should query Open...
Latest: v0.7.4
Requires odh v0.7.3. Adds Homebrew installer ahead of Go, trims skill instructions and removes repo-only file references, documents parking forecast units and A22 LDS.
Open Data Hub CLI (odh)
Use odh (or its read-only MCP server odh mcp serve) instead of scraping Open Data Hub pages. Most datasets center on South Tyrol / Bolzano—verify geography from returned coordinates, origin, or metadata.
Requires odh v0.7.3+ (brew install galjos/odh/odh or go install github.com/galjos/odh-cli/cmd/odh@v0.7.3). For Italian fuel prices or OSM EV charger plug/tariff info, use pitstop if installed.
Rules
- Add
--json(or--format json) before parsing output; curated commands (traffic,a22 status,transit,tourism types,mobility types,mobility datatypes) default to table. stdoutis data,stderris diagnostics; exit2= bad invocation, exit1= runtime failure.- Put global
--timeoutbefore the subcommand (odh --timeout 20s traffic today --source content --json).odh doctor --timeout 10sis a local flag. - Run
odh <command> --helpwhen unsure of flags. Discover IDs, origins, datatypes, zones, and stops before filtering. - Report returned
source,source_detail,endpoint,warnings, andcoverage(result_truncated,upstream_may_have_more). Never infer provenance or treat empty/stale feeds as "clear."
Health & Discovery
odh version
odh doctor --timeout 10s
odh datasets guide "ev charging availability" --format json
odh datasets search parking
odh apis
odh openapi mobility
odh mobility types --kind station --json
odh mobility origins --station-type ParkingStation
odh mobility datatypes --station-type TrafficSensor --origin A22 --limit 1000 --json
odh call tourism /v1/ODHActivityPoi --param pagesize=1 --param fields=Detail.en.Title,GpsInfo
- Start unfamiliar questions with
odh datasets guide <topic> --format jsonand follow itsdiscovery,verify, andcaveats. - Always run
odh mobility origins --station-type <type>before--origin. Note--originfilters locally after fetching; use--where 'sorigin.eq."..."'for server-side filtering. mobility origins|stations|datatypes|eventsemit a truncation warning whenever--limitfills—raise--limituntil that warning clears before claiming completeness.--paramonodh callis repeatable and preserves commas.
Traffic & A22
odh traffic today --source content --json
odh traffic today --source content --area pustertal --json
odh traffic search radroute --today --source content --json
odh traffic zones --json
odh traffic categories --json
odh a22 status --limit 10 --json
- Use
--source contentfor current South Tyrol road notices. Default--source odhreads a frozen Mobility Timeseries feed (empty or stale rows never mean roads are clear; state the newest row date). - Under
--source content:--roadand--type bikeexit2(use--searchor--nearinstead).zone_id,zone,zone_it,road,road_name,severity, andseries_idare omitted; an absentend(event.get("end")) means open;--include-expiredshows ended notices;staleonly means unchanged for 30 days.--zone-id/--areamatch by 2 km coordinate inference (surface the unassignable count warning; phrase as "in that area", and use--searchfor a specific village). - A22:
a22 statusinspects a Timeseries event feed plusTrafficForecast(neither is a live incident bulletin). For current notices useodh call tourism /v1/Announcement --param source=a22 --param rawsort=-LastChange; for live traffic level inspectLinkStation(lds_leggeri_desc,lds_pesanti_desc). Past A22 incidents are not archived here.
Mobility & Tourism Quality Gates
Run diagnostics first for EV availability, parking forecasts, and Tourism events:
odh diagnostics ev-charging --origin <ORIGIN> --fresh-within 24h
odh diagnostics parking-forecasts --origin "Municipality Merano" --fresh-within 2h --forecast-minutes 60
odh mobility latest --station-type ParkingStation --data-type free --origin "Municipality Merano" --active --fresh-within 2h --sort newest --request-limit 10000 --limit 10 --json
odh diagnostics tourism-events --date 2026-05-18 --limit 20
odh tourism poi --limit 1 --seed 42 --fields Detail.en.Title,GpsInfo
EChargingStationincludes mostly non-South-Tyrol (Swiss) live rows—verifyscoordinatebefore local claims.diagnostics parking-forecasts:currentisfree_spaces,forecastisoccupied_vehicles. If verdict iscurrent_only, omit forecasts.- Tourism events: verify
date_status,location_status, andGpsInfobefore "near me today" claims.
Transit
odh gtfs datasets
odh gtfs realtime --dataset sta-time-tables --feed trip-updates --limit 5
odh transit stops search merano --limit 10 --json
odh transit departures --stop-id <stop_id> --date 2026-05-16 --around 13:00 --mode train --json
odh transit trip --from-stop-id <from_id> --to-stop-id <to_id> --date 2026-05-16 --time 13:00 --mode train --json
odh transit journey --from-stop-id <from_id> --to-stop-id <to_id> --date 2026-05-16 --time 13:00 --max-transfers 3 --with-realtime --json
odh transit delay-stats --from auer --to brenner --time 14:05 --weekday saturday --json
- Resolve ambiguous station names via
transit stops searchand pass exact stop/parent IDs. journey --with-realtimeannotates static routes with GTFS-RT; it does not live-reroute, and missing realtime entities do not prove on-time service. Historical delay probabilities are unsupported (delay-statsreportssupported: false)—do not guess.
