- Home
- Plugins
- Tools & Capabilities
- dsh-weather
dsh-weather
bukseong/dsh-weather
Sidebar weather panel for batch city forecasts with eight UI languages and UTC-offset selection, plus native weather tools for unattended DSH tasks. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
dsh plugin --profile web add github:bukseong/dsh-weatherREADME
DSH Weather Bureau
A sidebar weather panel for DeepSeek Harness. Save several cities once, pick any day from today through the next 7 days, and see each city's daily forecast together. The Host half also registers native tools so DSH can obtain weather during unattended tasks without opening the panel.
Repository: https://github.com/BukSeong/dsh-weather
Features
- Batch city input for Chinese and international cities.
- One shared date across a batch, including cities in different time zones.
- Daily cards with condition, high/low temperature, precipitation, maximum wind, humidity, cloud cover, and coverage hours.
- Per-city errors: one failed city does not hide the others.
- Saved city list stored locally and reused after a DSH restart.
- Native
weather_forecastandweather_citiestools for automation. - Eight UI languages with an in-panel language selector.
- A reference time-zone selector using direct
UTC+…/UTC-…offsets, including half-hour zones and Kathmandu'sUTC+5:45.
Languages
The panel and its plugin metadata support:
| Language | Locale id |
|---|---|
| Chinese (Simplified) | zh |
| Chinese (Traditional) | zh-TW |
| English | en |
| Spanish | es |
| Korean | ko |
| French | fr |
| German | de |
| Malay | ms |
Choose the language from the Language selector at the top of the panel, or from DSH → Settings → General → Language. The in-panel selector changes the whole DSH interface, not only this plugin. Simplified Chinese, English, Spanish, French, and German use the languages shipped with DSH. Traditional Chinese, Korean, and Malay are registered by this plugin as language packs, with their own dictionaries and fallbacks. Dates and times are formatted with the active locale.
Time zone
The Time zone selector sets the reference offset for “today” and for the 8-day date range. It is not a per-city forecast time zone: each city's daily forecast still uses that city's local calendar date.
- Whole-hour offsets from
UTC-12throughUTC+14. - Common half-hour offsets such as
UTC-3:30,UTC+3:30,UTC+5:30,UTC+6:30,UTC+9:30, andUTC+10:30. - Special offsets including
UTC+5:45(Kathmandu),UTC+8:45,UTC+12:45, andUTC+13:45.
The selection is saved together with the city list, so it survives a DSH restart. Unattended weather_forecast calls also use the saved reference offset when date is omitted.
Install
Install this directory as a local plugin package:
- In DSH → Plugins → Add plugin, select this directory, or
- run:
plugin_manager install_bundle <absolute path to this directory>
The plugin has no third-party runtime dependencies and no build step.
Use
- Open DSH Weather Bureau in the left sidebar.
- Choose Language and Time zone from the selectors at the top of the panel.
- In the Cities box, enter or paste city names, then click Add cities. You can also press
Ctrl+Enter/Cmd+Enter.- Separate cities with new lines, commas, or semicolons.
- Use
City|CountryorCity|Provincefor ambiguous names, for exampleParis|FranceorQingdao|Shandong.
- Pick a date with the date field or the Today / Tomorrow / Day after tomorrow / weekday shortcuts.
- The panel queries every saved city automatically. Use Refresh to query again.
- Each card shows the daily forecast. Use the × button to remove a city. Clear cities requires a second click.
Chinese cities are matched against a bundled administrative index before any remote geocoding, so a city such as Qingdao resolves to Shandong instead of a same-named village in another province. A province hint that conflicts with the matched city is rejected with an explicit error.
Automation
Two Host tools are available to every DSH session:
weather_forecast
Query one date for one or more cities. When cities is omitted, the saved sidebar list is used.
{
"cities": ["Beijing", "New York", "London"],
"date": "2026-12-03"
}
dateis the city's local calendar date. The allowed range is anchored to the plugin's saved reference time zone (the DSH Host by default): today through 7 days ahead, 8 calendar days in total.refresh: truebypasses the 10-minute in-memory cache.- Up to 20 cities per query. A failed city does not fail the rest.
- Returns condition, high/low, precipitation, maximum wind, humidity, cloud cover, and structured JSON.
weather_cities
Manage the saved sidebar list:
{ "action": "add", "cities": ["Beijing", "Shanghai", "London"] }
{ "action": "list" }
{ "action": "remove", "city": "Beijing" }
{ "action": "clear", "confirm": true }
For unattended work, prefer passing cities directly to weather_forecast; that path does not depend on the sidebar list.
Data and network
- Weather: MET Norway Locationforecast 2.0 compact, global hourly forecasts covering about 9 days. The plugin aggregates them into a daily forecast in the city's time zone. Licensed CC BY 4.0; attribution: MET Norway.
- Chinese cities: bundled
lib/china-cities.json, covering prefecture-level cities, autonomous prefectures/regions/leagues, and county-level cities. Derived from qfz9527/city-geo, originally sourced from Administrative-divisions-of-China and Baidu Maps, under the Mulan PSL v2 license. No Baidu API is called at runtime. - Other places: Open-Meteo Geocoding API, whose place data comes from GeoNames.
- No API key is required.
- A matched Chinese city sends only its coordinates to MET Norway. Unmatched or international cities send the city name to Open-Meteo. Chat content and other session data are never sent.
- Successful forecasts are cached in Host memory for 10 minutes; the cache is cleared when DSH restarts.
- The saved city list and reference time zone live in
%LOCALAPPDATA%\dsh-weather\cities.jsonon Windows, or under the platform data directory on other systems. SetDSH_WEATHER_DATA_DIRto override the directory.
Limits
- The date range is anchored to the selected reference time zone's today, through 7 days ahead (8 calendar days). The date itself is interpreted as the city's local calendar date, so a batch can share one date across time zones. For today, MET Norway only has the remaining hours; the card marks it as a partial-day forecast.
- MET Norway provides numerical forecast data, not local weather warnings. Air quality, typhoon tracks, severe-weather alerts, and precipitation probability are not included.
- Chinese prefecture-level and county-level city names use the local index. District names not present there fall back to Open-Meteo.
- International geocoding keeps Open-Meteo's relevance order. Use a
City|Countryhint when a name is ambiguous.
Troubleshooting
If the panel says Cannot reach the plugin backend:
- Refresh the page.
- Confirm the plugin is enabled in Plugins.
- Check
http://127.0.0.1:<DSH port>/dsh-weather/api/health; a working Host returns{"ok":true,"panel":"dsh-weather"}.
The Host registers the sidebar API only after the Web server service is available, so a cold boot does not permanently skip the route. The forecast tools register independently and remain available in headless profiles.
Development
cd dsh-weather
node --check index.js
node --check client.js
node scripts/build-china-cities.mjs # only when updating China city data; downloads the source on first run
node test/locales.test.mjs # key and placeholder parity for all 8 languages
node test/client.test.mjs # language-pack and dictionary wiring in the client
node test/host.test.mjs # tool registration and delayed webServer injection
node test/smoke.mjs
test/smoke.mjs contacts Open-Meteo and MET Norway and writes to a temporary directory; it does not touch the real saved city list.
Third-party notices
See THIRD_PARTY_NOTICES.md for city-data, weather, and geocoding attributions and licenses.
Related plugins
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn