# WeatherAgent **Repository Path**: qyydeep/weather-agent ## Basic Information - **Project Name**: WeatherAgent - **Description**: agent 查询天气的技能 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-13 - **Last Updated**: 2026-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Weather Agent - 天气查询技能 ## 项目简介 这是一个基于 OpenClaw 框架的天气查询技能项目,用于查询全球城市的实时天气信息。 ## 技能列表 ### weather-query - 天气查询技能 **功能描述:** 查询全球城市实时天气信息,包括温度、湿度、风速等数据,适用于出行规划和日常天气关注场景。 **目录结构:** ``` skills/weather-query/ ├── SKILL.md └── scripts/ └── weather_query.py ``` ## 快速开始 ### 前置条件 - Python 3.7+ - 安装依赖: ```bash pip install requests>=2.31.0 ``` ### 使用方法 1. 进入技能目录: ```bash cd /Users/qyydeep/PycharmProjects/weather-agent/skills/weather-query ``` 2. 执行天气查询脚本: ```bash python scripts/weather_query.py <城市名称> ``` ### 使用示例 **查询北京天气:** ```bash python scripts/weather_query.py 北京 ``` **查询上海天气:** ```bash python scripts/weather_query.py 上海 ``` **查询英文城市名:** ```bash python scripts/weather_query.py Tokyo ``` ### 输出示例 ``` 北京 当前天气 🌡️ 温度:15°C 💧 湿度:65% 🌤️ 天气:多云 🌬️ 风速:12 km/h 🧭 风向:东北风 📅 更新时间:2026-04-13 10:30:00 💡 建议:天气舒适,适合户外活动 ``` ## 注意事项 - 如需实际使用,请替换 `scripts/weather_query.py` 中的演示 API Key 为您自己的 OpenWeatherMap API Key - API 有调用频率限制,避免频繁查询相同城市 - 天气数据每小时更新一次,无需频繁刷新 - 支持的城市列表以 API 返回为准,部分小城市可能不支持 ## 技能文档 详细的技能文档请查看:[skills/weather-query/SKILL.md](skills/weather-query/SKILL.md)