whaoran1018-cmd/dsh-plugin-weather ↗★ 0

dsh-plugin-weather

Global weather, multi-day forecast and air quality for DeepSeek Harness, Claude Code, Codex, Cursor and any MCP/shell agent — temperature, feels-like, humidity, UV index, sunrise/sunset, wind, PM2.5/AQI, in 9 languages. Open-Meteo, no API key.

패키지
dsh-plugin-weather
호환성
미검증
버전
0.4.1
라이선스
MIT
최근 업데이트
2026. 10. 4.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:whaoran1018-cmd/dsh-plugin-weather

Usage

Just ask:

  • "What's the weather in Shanghai?" / "上海现在天气怎么样"
  • "Is it going to rain this week in New York?" / "上海未来 7 天"
  • "Air quality in Jakarta" / "雅加达空气好不好"
  • "What time is sunrise tomorrow?" / "明天几点日出"
  • "Hourly forecast for Oct 7" (the model passes date: "2026-10-07")
  • "UV index at 31.23,121.47" (raw coordinates work too)

Each call returns two blocks: a human-readable summary (localised, with levels and emoji) and the complete JSON, so the model can reason about exact numbers.

Options

ParameterApplies toNotes
locationbothCity name (Chinese or English) or "lat,lon". Falls back to config defaultLocation, then public-IP location.
latitude / longitudebothExplicit coordinates; take precedence over location.
unitsbothmetric (°C / km/h / mm) or imperial (°F / mph / inch).
includeAirQualitybothDefaults to the plugin config (true).
daysboth0–16. get_weather defaults to 3, get_weather_forecast to 5.
includeHourlyforecastHourly rows from now, capped at 48.
dateforecastYYYY-MM-DD. Returns that day's 24 hourly rows; auto-widens the window to 16 days when needed.

Plugin config

Set from the plugin settings UI, or in the profile's cordis.patch.yml under the row's config:

KeyDefaultMeaning
defaultLocation""Used when no location is given. Empty = public-IP lookup.
languageenSummary language — see Languages.
unitsmetricmetric or imperial.
includeAirQualitytrueAttach the air-quality block.
cacheTtlSeconds300Local cache for identical requests; 0 disables.
requestTimeoutMs15000Per-request upstream timeout.
providerautoauto falls back to wttr.in if Open-Meteo fails; open-meteo never falls back.