← Back to Skills Marketplace
45
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install weather-reporter
Description
Generate detailed weather report images for any city worldwide with temperature, precipitation, humidity, wind, sunrise/sunset, moon phase, UV index, and war...
README (SKILL.md)
技能说明
项目概述
天气简报生成器 - 一键生成精美的天气简报图片,支持任意城市。
核心功能
1. 天气数据获取
- 数据来源:wttr.in (无需API密钥)
- 支持全球任意城市(英文名称)
- 获取内容:温度、降水、湿度、风速、日出日落、月相、紫外线指数等
2. 图表生成 (rain_weather.py)
- 温度曲线(平滑处理)
- 降水柱状图
- 湿度曲线
- 风速曲线
- 支持自适应尺寸、透明背景
3. 图像处理
- 毛玻璃特效 (glass.py):圆角矩形 + 高斯模糊 + 边缘羽化
- 背景裁剪 (cutimage.py):等比放大 + 左对齐裁剪
- AI 生图 (makeimage.py):智谱AI文生图API
4. AI 温馨提示 (AI.py)
- 基于天气数据生成贴心提醒
- 三条建议,每条不超过30字
- 使用任意 OpenAI 协议的 API
使用示例
# 默认南京
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 # 本文件
配置文件 (config.json)
首次使用前需要配置 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
- 若缺失需从github下载:https://github.com/ZYT64/WeatherReporter
输出
生成 output.png,包含完整的天气简报图片。
Usage Guidance
Review before installing. If you use it, run it from a dedicated folder with no important PNG files, configure only the intended AI provider keys, verify the LLM base URL, and install dependencies in an isolated environment.
Capability Analysis
Type: OpenClaw Skill
Name: weather-reporter
Version: 1.0.0
The skill bundle is a legitimate weather reporting tool that fetches data from wttr.in and generates visual reports. It uses standard libraries (Pillow, Matplotlib, Requests) and official AI SDKs (ZhipuAI, OpenAI) to create charts, frosted glass effects, and AI-generated weather tips. The code logic in main.py, AI.py, and makeimage.py is entirely consistent with the stated purpose, and no evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Tags
Capability Assessment
Purpose & Capability
The weather fetching, chart generation, AI background image generation, and AI tips are coherent with the stated Weather Reporter purpose.
Instruction Scope
The documented use is simply running python main.py, but the code automatically cleans up fixed filenames before running, which is not clearly warned about in the usage instructions.
Install Mechanism
There is no install spec, and setup relies on manual unpinned pip installs plus a font that may be downloaded from GitHub; this is common for a script-style skill but should be reviewed.
Credentials
The skill writes and deletes files using relative paths in the current working directory, so unrelated files with names like 1.png, bg.png, or bg1.png could be removed or overwritten.
Persistence & Privilege
The skill stores API keys in config.json and writes output/temp image files, but it does not show background persistence, self-starting behavior, or credential exfiltration.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install weather-reporter - After installation, invoke the skill by name or use
/weather-reporter - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of weather-reporter skill:
- Generates weather report images for any city using data from wttr.in (no API key required).
- Supports temperature, precipitation, humidity, wind, sunrise/sunset, moon phase, and UV index.
- Creates charts: temperature (smoothed), precipitation, humidity, wind (all adaptive in size, transparent background).
- Includes image effects: frosted glass (rounded, blurred, feathered), background cropping, and AI-generated backgrounds via Zhipu AI.
- Provides 3 concise AI-generated weather tips (API needed; OpenAI protocol).
- Easy configuration for API keys and models; outputs weather report as output.png.
Metadata
Frequently Asked Questions
What is Weather Reporter?
Generate detailed weather report images for any city worldwide with temperature, precipitation, humidity, wind, sunrise/sunset, moon phase, UV index, and war... It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.
How do I install Weather Reporter?
Run "/install weather-reporter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Weather Reporter free?
Yes, Weather Reporter is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Weather Reporter support?
Weather Reporter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Weather Reporter?
It is built and maintained by ZYT64 (@zyt64); the current version is v1.0.0.
More Skills