← 返回 Skills 市场
zyt64

Weather Reporter

作者 ZYT64 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
45
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install weather-reporter
功能描述
Generate detailed weather report images for any city worldwide with temperature, precipitation, humidity, wind, sunrise/sunset, moon phase, UV index, and war...
使用说明 (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,包含完整的天气简报图片。

安全使用建议
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.
功能分析
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.
能力标签
requires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install weather-reporter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /weather-reporter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug weather-reporter
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Weather Reporter 是什么?

Generate detailed weather report images for any city worldwide with temperature, precipitation, humidity, wind, sunrise/sunset, moon phase, UV index, and war... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 Weather Reporter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install weather-reporter」即可一键安装,无需额外配置。

Weather Reporter 是免费的吗?

是的,Weather Reporter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Weather Reporter 支持哪些平台?

Weather Reporter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Weather Reporter?

由 ZYT64(@zyt64)开发并维护,当前版本 v1.0.0。

💬 留言讨论