Install
openclaw skills install weather-reporterGenerate detailed weather report images for any city worldwide with temperature, precipitation, humidity, wind, sunrise/sunset, moon phase, UV index, and war...
openclaw skills install weather-reporter天气简报生成器 - 一键生成精美的天气简报图片,支持任意城市。
# 默认南京
python main.py
# 指定城市
python main.py Beijing
python main.py Shanghai
python main.py Tokyo
├── main.py # 主程序入口
├── rain_weather.py # 图表绘制
├── glass.py # 毛玻璃特效
├── cutimage.py # 图像裁剪
├── makeimage.py # AI生图
├── AI.py # 温馨提示生成
├── simhei.ttf # 中文字体
├── config.json # API配置文件(需自行配置)
├── README.md # 项目说明
└── SKILL.md # 本文件
首次使用前需要配置 API 密钥:
{
"zhipuAI": {
"api_key": "你的智谱AI API密钥",
"model": "CogView-3-Flash"
},
"llm": {
"api_key": "你的LLM API密钥",
"base_url": "https://opencode.ai/zen/v1",
"model": "minimax-m2.5-free"
}
}
| 配置项 | 说明 |
|---|---|
| zhipuAI.api_key | 智谱AI生图API密钥 |
| zhipuAI.model | 生图模型(默认CogView-3-Flash) |
| llm.api_key | LLM API密钥 |
| llm.base_url | LLM API地址 |
| llm.model | LLM 模型名称 |
pip install requests pillow matplotlib scipy pandas openai zhipuai
simhei.ttf
生成 output.png,包含完整的天气简报图片。