Auto-discovered marketplace from kerkerj/cwa-weather
npx claudepluginhub kerkerj/cwa-weatherQuery Taiwan weather data from CWA Open Data API
CWA Open Data API CLI and Go library for Taiwan weather data.
Queries forecast and real-time observation data from Taiwan's Central Weather Administration (CWA) Open Data platform.
brew tap kerkerj/tap
brew install cwa-weather
go install github.com/kerkerj/cwa-weather/cmd/cwa-weather@latest
Or download a binary from GitHub Releases.
Get an API key from https://opendata.cwa.gov.tw and export it:
export CWA_API_KEY=your-key
# Township-level forecast
cwa-weather forecast --city 臺北市 --town 中正區
# City-level forecast (all towns)
cwa-weather forecast --city 台北市 # 台→臺 auto-converted
# Filter by weather elements
cwa-weather forecast --city 新北市 --town 板橋區 --element 溫度,天氣現象
# Show 3 days of forecast
cwa-weather forecast --city 臺北市 --town 中正區 --days 3
# Group by day
cwa-weather forecast --city 臺北市 --town 中正區 --days 3 --summary
# Filter by time range
cwa-weather forecast --city 臺北市 --time-from 2026-03-01T06:00:00
# Raw JSON output (pipe to jq for field extraction)
cwa-weather forecast --city 臺北市 --json
Tip: Element names are defined by CWA API — run a command with
--jsonand inspect the JSON keys to see all available names.
# By city
cwa-weather observe --city 新北市
# By station name
cwa-weather observe --station 淡水
# Filter by weather elements
cwa-weather observe --city 新北市 --element AirTemperature,Weather
# City-level 36-hour forecast
cwa-weather overview --city 臺北市
# Filter by weather elements
cwa-weather overview --city 臺北市 --element Wx,PoP
# Filter by time range
cwa-weather overview --city 臺北市 --time-from 2026-03-01T06:00:00 --time-to 2026-03-01T18:00:00
# All active alerts
cwa-weather alert
# Alerts for a specific city
cwa-weather alert --city 臺北市
# Current tropical cyclone info
cwa-weather typhoon
# Filter by tropical depression number and dataset
cwa-weather typhoon --td-no 03 --dataset ForecastData
# All marine stations
cwa-weather sea
# Specific station
cwa-weather sea --station 富貴角
# Query any CWA endpoint by data ID
cwa-weather query F-D0047-069 -p LocationName=板橋區
# List all 22 cities
cwa-weather cities
# List towns in a city
cwa-weather cities --city 臺北市
package main
import (
"context"
"fmt"
"github.com/kerkerj/cwa-weather/cwa"
)
func main() {
client := cwa.NewClient("YOUR_API_KEY")
ctx := context.Background()
// Forecast
forecast, _ := client.Forecast(ctx, "臺北市", "中正區")
fmt.Println(forecast)
// Forecast with element and time filters
filtered, _ := client.Forecast(ctx, "臺北市", "", cwa.ForecastOption{
Element: "溫度,天氣現象",
TimeFrom: "2026-03-01T06:00:00",
})
fmt.Println(filtered)
// Observation
obs, _ := client.Observe(ctx, cwa.ObserveByCity("新北市"))
fmt.Println(obs)
// Observation with element filter
obsFiltered, _ := client.Observe(ctx, cwa.ObserveByCity("新北市"), cwa.ObserveWithElement("AirTemperature"))
fmt.Println(obsFiltered)
}
This project includes skill files so AI agents can query Taiwan weather data via the CLI.
Requires cwa-weather CLI installed and CWA_API_KEY env var set.
/plugin marketplace add kerkerj/cwa-weather
/plugin install cwa-weather@kerkerj-cwa-weather
Once installed, ask Claude things like:
Point your agent to the skill files in plugins/cwa-weather/skills/ for command reference and usage instructions.
--json for raw JSON (pipe to jq for field extraction).台北市 is automatically converted to 臺北市 to match CWA's use of 正體字.MIT