sunshine-lang/dsh-weather 预览 preview

sunshine-lang/dsh-weather

DeepSeek Harness 的天气工具:通过 Open-Meteo 获取当前天气状况和多日预报(免费,无需 API 密钥)

Project Overview项目介绍

This is a native weather query plugin built exclusively for DeepSeek Harness (DSH). It adds a get_weather tool to DSH that lets you pull real-time weather data and multi-day forecasts for any location worldwide. All weather data is sourced from Open-Meteo, a free open weather API that does not require an API key, user registration, or any paid subscription to access. You can install this plugin directly via the DSH CLI from GitHub, npm, or a local source directory for development.

After installation, you just need to restart your DSH instance to activate the plugin. To use it, simply ask your DSH agent a natural language question about the weather, such as “What is the current weather in Shanghai?” or “Show me the 3-day forecast for Tokyo in Fahrenheit”. The agent will automatically call the get_weather tool with the required parameters to return the result you need. This plugin is ideal for any DSH user that regularly needs quick access to accurate weather data for any location.

The plugin supports custom configuration via the DSH profile patch file, where you can set default temperature units, API request timeout, maximum allowed forecast days, and other options. If your configuration has errors, the plugin will fail to load with a clear, actionable error message to help you debug. Pre-built output files are already committed to the repository, so you do not need local build permissions to install it. The plugin is released under the open-source MIT license, so it is free to use and modify.

这是一个专为 DeepSeek Harness 开发的原生天气查询插件,为 DSH 提供了 get_weather 工具,支持用户查询任意城市或地点的实时天气,还可获取最多 7 天的天气预报。所有天气数据均来自免费开放的 Open-Meteo 服务,无需用户申请 API 密钥,也不需要注册账号即可使用,可通过 DSH 的插件管理命令直接从 GitHub 或 npm 安装。

安装完成后重启 DSH 即可使用,用户只需在对话中自然提出天气查询需求,比如询问“上海现在天气如何”“东京未来三天的天气用华氏度显示”,大模型就会自动调用该工具获取对应结果。它原生支持摄氏和华氏两种温度单位,满足不同用户的使用习惯,非常适合日常需要随时查询各地天气的 DeepSeek Harness 用户。

插件支持自定义配置,可通过配置文件修改默认温度单位、API 请求超时时间、最大预报天数上限等参数,配置错误会返回明确的错误提示方便用户排查问题。预构建产物已提交到代码仓库,安装不需要额外构建权限,项目采用 MIT 许可证开源,所有功能完全免费供用户使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-weather

把 sunshine-lang/dsh-weather 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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。

← 上一个 Prev dsh-plugin-market 下一个 Next dsh-plugin-vscode-sidebar →