shenmy-git/dsh-weather-plugin0

dsh-weather-plugin

天气查询工具 + 根据天气自动切换应用主题的 UI 增强插件(DSH plugin marketplace)

包名
dsh-weather-plugin
版本
1.0.0
最近更新
2026年8月16日

安装

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

验证配置层并启动

dsh --profile web --dump-config dsh web


打开 Web UI 就能看到效果:**右下角出现鲸鱼宠物 + 天气胶囊,整个页面已按当前
天气换色并渲染氛围层**——不需要问任何问题。提问「今天天气怎么样」会得到
卡片并刷新常驻状态。

## 关于 IP 定位

IP 定位的是**网络出口**,不是设备位置:如果电脑经过代理/VPN/云服务器上网,
定位结果就是出口节点所在城市。插件内置双数据源(ipwho.is → ipapi.co)交叉
验证;如果你所在城市与定位不符,在 HUD 展开面板里输入城市即可覆盖
(记住在 localStorage),或在 profile 配置里设 `defaultCity`。

## 配置

| 字段 | 默认 | 说明 |
|---|---|---|
| `defaultCity` | `'北京'` | IP 定位失败或关闭时的城市 |
| `language` | `'zh'` | 模型可见文案语言(`zh` / `en`) |
| `autoLocate` | `true` | 城市参数为空时按主机公网 IP 自动定位 |
| `timeoutMs` | `10000` | 上游请求超时(毫秒) |

```yaml

## 配置

| 字段 | 默认 | 说明 |
|---|---|---|
| `defaultCity` | `'北京'` | IP 定位失败或关闭时的城市 |
| `language` | `'zh'` | 模型可见文案语言(`zh` / `en`) |
| `autoLocate` | `true` | 城市参数为空时按主机公网 IP 自动定位 |
| `timeoutMs` | `10000` | 上游请求超时(毫秒) |

```yaml