Top-centered weather bar for the DSH Web UI: geolocation, current conditions, 12h/7d forecasts and severe-weather notifications via Open-Meteo (free, no API key).
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:QianLuo-Ly/dsh-weather
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DSH Web 顶部居中的天气插件:定位信息 + 当前天气 + 未来 12 小时/7 天预报。 装上后,打开 DeepSeek Harness 网页版就能在顶部看到常驻天气栏。
- 数据来自 Open-Meteo:免费、无需 API key、浏览器直连
- 自动定位优先使用浏览器定位(GPS/WiFi,可精确到区),失败或拒绝时回退 IP 定位
- 不收集、不上传任何个人数据,配置仅保存在本地

安装
方式一:插件市场一键安装(推荐)
如果还没有插件市场,先安装它:
dsh plugin --profile web add dshmarket重启
dsh web,打开 设置 → 插件市场,搜索 weather,一键安装dsh-weather。刷新页面,顶部即可看到天气栏。
方式二:命令行从 GitHub 安装
dsh plugin --profile web add https://github.com/QianLuo-Ly/dsh-weather
重启(或按提示刷新)dsh web 后生效。
要求 dsh web 0.1.0-rc.6 或更新版本。
使用
- 顶部天气栏:常驻显示当前定位、温度、天气与体感温度(如
📍 广东省广州市天河区 · 26° · 晴 · 体感 28°),点击展开详情。 - 详情弹层:
- 当前天气:大图标 + 大温度,以及湿度 / 风速 / 阵风 / 风向 / 气压 / 能见度 / 云量 / 露点 / 今日降水量 / 空气质量(AQI + PM2.5)
- 今日信息:日出 / 日落 / 紫外线指数 / PM2.5 + 一句话出行建议(带伞 / 防晒 / 防暑等)
- 未来 6 小时降水:15 分钟级降水柱状条(Open-Meteo
minutely_15),直接告诉你「预计几点开始下雨 / 会下多久」 - 未来 24 小时温度趋势曲线
- 未来 12 小时逐小时预报、未来 7 天预报(带温度区间渐变条)
- 即将下雨提示:预计 2 小时内开始下雨时,天气栏实时显示「☔ 约 X 分钟后有雨」。
- 浏览器标签页标题会同步显示当前天气,刷新也保持同步。
- 恶劣天气提醒:当前或未来 12 小时预报出现强降雨 / 雷暴 / 高温 / 大风 / 强降雪时发送浏览器通知(可在设置中开关);1 小时内即将下雨也会提醒带伞。
- 失败降级:刷新失败时保留上次成功的数据并标注快照时间,不会突然空白。
- ⚙ 设置:点击天气栏 → 弹层右下角进入,可配置:
- 显示开关
- 定位方式:
自动(GPS 优先,失败回退 IP)或手动(中文城市搜索,如「北京」「上海」,或直接填经纬度) - 单位:摄氏 °C / 华氏 °F
- 自动刷新间隔(默认 15 分钟)
- 恶劣天气提醒开关
常见问题
- 定位不够精确? 天气栏 → ⚙ 设置 → 定位方式改为
手动,搜索城市或直接填经纬度。 - 想用华氏度? ⚙ 设置 → 单位切换为 °F。
- 天气数据准吗? 数据来自 Open-Meteo(免费公共气象服务),每小时自动更新;也可以点 ⚙ 设置调短自动刷新间隔。
数据来源与隐私
| 用途 | 服务 | 说明 |
|---|---|---|
| 天气数据 | Open-Meteo | 免费公共 API,浏览器直连 |
| 自动定位 | 浏览器定位 / geojs.io | GPS 优先,失败回退 IP 定位(仅市一级) |
| 中文区名 | BigDataCloud | 反向地理编码 |
插件不收集、不上传任何用户数据;所有配置仅保存在 DSH 本地设置中。
开发者
构建、调试与二次开发说明见 docs/DEVELOPMENT.md。
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 6815
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 6815
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 3318
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 2823
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 1695
A fixed-corner whale widget showing DeepSeek balance, today usage, per-turn cost and random talk lines, with sound effects and a menu.
Devin-AXIS/deepseek-design#deepseek-idesign★ 720
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.