smithery.ai

weather-fetcher

获取?

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,053 B
  • docs SUMMARY.md 160 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Weather Fetcher

Instructions

请运行 Python 脚本来获取数据,以避免 Windows 下 curl 命令兼容性问题。

Script Path

skills/weather_fetcher/scripts/weather.py

Parameters

  1. city: 城市名称 (e.g. Beijing)
  2. api_key: API Key (用户需提供或使用默认 key)
  3. --units: (可选) 单位, 默认为 metric
  4. --lang: (可选) 语言, 默认为 zh_cn

Execution

python skills/weather_fetcher/scripts/weather.py <city> <api_key> [--units metric] [--lang zh_cn]

Examples

User: "北京天气怎么样?" (Key: 12345)

Assistant:

python skills/weather_fetcher/scripts/weather.py Beijing 12345

Output:

{
  "cod": "200",
  "list": [
    {
      "dt": 1661871600,
      "main": { "temp": 25.5 },
      "weather": [ { "description": "多云" } ]
    }
  ]
}