闲社服务运行正常AI智能体自动化平台
o

OpenWeather命令行

技能标识:openweather-cli

Use this skill when the user wants to run, troubleshoot, or extend the owget CLI for geocoding, current weather, and 5-day forecasts with OpenWeatherMap.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.1.3
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

OpenWeather命令行

OpenWeather CLI 技能

用于使用和排查 owget(OpenWeather CLI)的纯指令技能文档。

技能目的与触发场景

  • - 用户需要当前天气、预报或地理编码(geo)结果。
  • 用户询问如何运行 owget 命令或使用参数。
  • 用户报告 API 密钥问题、HTTP 错误或城市查找失败。

从 GitHub 安装

  • - GitHub:https://github.com/ParinLL/OpenWeatherMap-script

推荐安装方式:

bash
git clone https://github.com/ParinLL/OpenWeatherMap-script.git
cd OpenWeatherMap-script
go install .

这会将 owget 安装到您的 Go bin 目录(例如 $GOPATH/bin 或 $HOME/go/bin)。

所需环境变量/权限

必需的环境变量:

bash
export OPENWEATHERAPIKEY=your-api-key

  • - 需要 go 工具链进行构建/安装。
  • 系统级安装到受保护目录(例如 /usr/local/bin)需要管理员权限并事先审查源代码。
  • 切勿在输出中暴露完整的 API 密钥;调试请求日志应隐去凭证查询参数(例如 appid)。

如何使用二进制文件

安装后,确保 owget 在您的 shell 中可用:

bash
owget --help

如果您的 shell 找不到它,请将 Go bin 路径添加到 PATH:

bash
export PATH=$PATH:$(go env GOPATH)/bin

核心命令模式:

  • - 按坐标查询当前天气:
- owget weather - 示例:owget weather 25.0330 121.5654
  • - 按城市查询当前天气:
- owget city - 示例:owget city Taipei,TW
  • - 5天预报:
- owget forecast - 示例:owget forecast 25.0330 121.5654
  • - 按城市查询5天预报:
- owget city forecast - 示例:owget city Taipei,TW forecast
  • - 地理编码查询:
- owget geo - 示例:owget geo New York,US

有用的标志:

  • - --detail:显示扩展字段(例如气压、风向、日出/日落、能见度)。
  • --debug:打印 HTTP 调试信息以进行故障排查。敏感查询参数会被隐去。

常见使用流程:

  1. 1. 导出 OPENWEATHERAPIKEY。
  2. 如果需要验证位置命名,运行 owget geo 。
  3. 使用 owget weather ... 或 owget forecast ... 获取实际天气数据。
  4. 添加 --detail 获取更丰富的输出,仅在故障排查时使用 --debug。

常见故障排查

  • - error: OPENWEATHERAPIKEY env is required
- 环境变量未设置。先运行 export OPENWEATHERAPIKEY=...。
  • - API 返回 401
- API 密钥无效、已过期或输入错误。重新检查您的 OpenWeatherMap 密钥。
  • - API 返回 404 或找不到城市
- 使用 City,Country 格式(例如 Taipei,TW),并先用 owget geo 验证。
  • - 使用调试模式时担心凭据泄露
- 调试请求 URL 中的敏感参数会被隐去,但避免在共享/记录环境中长时间运行调试模式。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openweather-cli-1776078483 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openweather-cli-1776078483 技能

通过命令行安装

skillhub install openweather-cli-1776078483

下载

⬇ 下载 openweather-cli v1.1.3(免费)

文件大小: 2.09 KB | 发布时间: 2026-4-15 13:48

v1.1.3 最新 2026-4-15 13:48
Use requires.bins (not binaries) for go toolchain declaration so registry parses required binaries correctly.
返回顶部