dshbase

Plugin directory / Network / dsh-weather

dsh-weather

Verified · install-tested on dsh sunshine-lang

✓ Actively maintained Builds on 3 official DSH packages Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

7Stars
1Forks
2Open issues
TypeScriptLanguage
2026-08-14Last push
Cross-platformPlatform

What it does

Weather tool for DeepSeek Harness: current conditions and multi-day forecasts via Open-Meteo (free, no API key)

✅
Our take
Works — verified, early-stage project

Weather tool for DeepSeek Harness: current conditions and multi-day forecasts via Open-Meteo (free, no API key) It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-weather

English | 中文

DeepSeek Harness 天气工具:查询任意城市或地点的实时天气与多日预报,数据来自 Open-Meteo——免费、无需 API key、无需注册。

功能特性

  • get_weather 工具:实时温度、体感温度、湿度、风速与天气状况。
  • 可选多日预报(最多 7 天):每日最高/最低温度与天气状况。
  • 支持摄氏 / 华氏温度单位。
  • 无需 API key;数据来源:Open-Meteo。

安装

从 GitHub 安装

dsh plugin --profile web add "github:sunshine-lang/dsh-weather"

然后重启 dsh --profile web。lib/ 已预构建并提交,安装无需构建权限。

从 npm 安装

dsh plugin --profile web add dsh-weather

从本地源码安装(开发)

dsh plugin --profile web add ./dsh-weather

注意:pnpm 对 link: 方式的本地依赖不会自动安装其依赖,需要手动添加到 profile(通过 registry 或 GitHub 安装则会自动处理):

dsh plugin --profile web add @deepseek-ai/dsh-tools @deepseek-ai/cordis @deepseek-ai/schemastery

验证

dsh --profile web --dump-config   # 应能看到 "# == dsh-weather" 层

使用方法

启动 Web UI 后,向模型提问,例如:

上海现在天气怎么样?

查一下东京的天气,用华氏度,并给出 3 天预报。

模型会调用 get_weather:参数 location(必填),可选 units(celsius | fahrenheit)和 days(1–7)。

配置

可通过 cordis.patch.yml 或 profile 的 patch 层覆盖任意配置项:

- patch:
    - id: dsh-weather
      config:
        defaultUnits: fahrenheit
        timeoutMs: 15000
        maxForecastDays: 5
配置项 默认值 含义
defaultUnits celsius 模型未传 units 时使用的温度单位
timeoutMs 10000 每次天气 API 调用的超时时间(毫秒)
maxForecastDays 7 days 参数的上限(1–7)

配置无效时插件加载会直接失败,并给出可操作的错误信息。

开发

pnpm install
pnpm build        # tsc → lib/

在 DeepSeek Harness 仓库内构建(类型解析指向工作区源码)时,改用 tsconfig.local.json:tsc -p tsconfig.local.json。

同作者更多插件

该作者的全部 DeepSeek Harness 插件(统一入口):dsh-plugins

许可证

MIT。天气数据 © Open-Meteo。

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-weather for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

Web profile:

dsh plugin --profile web add dsh-weather

Headless (CLI) profile:

dsh plugin --profile headless add dsh-weather

Package

npm: dsh-weather · version — · tested on dsh 0.1.0-rc.6

Test report

Verified end-to-end: L1 install + L2 load + L3 runtime Q&A on dsh 0.1.0-rc.6.

When to use it

Give the agent network access — requests, APIs, proxies, or protocols — so it can reach external systems.

Who it's for

Users whose tasks touch the network — calling APIs, fetching resources, or talking to remote services.

For developers — extending it

Adapters and request shaping are the seams — add protocols, auth handlers, retries, and endpoint abstractions.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Network

Browse all 7797 plugins →