360 Secure SkillHub
360 安全技能中心

Weather TV style

输入地址与经纬度后,脚本从 Open-Meteo 拉取实时天气和 7 天预报,调用 Gemini 图像模型按当地季节生成写实背景,再把数据与背景合成为电视播报风格的天气信息图并保存为 PNG 文件。

silverkiwi
silverkiwi
热度 89.51
最近更新 2026-05-11 15:51:18
分类:生活依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:图像生成 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add weather-infographic
Metadata
name
infographic-weather
description
Generate a TV-style weather infographic with a location-specific seasonal background. Use when the user asks for a visual weather forecast or a weather infographic for a specific address.
metadata
{"clawdbot":{"emoji":"📺","requires":{"env":["GEMINI_API_KEY"]},"install":[{"id":"pip-google-ai","kind":"exec","command":"pip install -U google-generativeai requests --break-system-packages","label":"Install dependencies"}]}}

Infographic Weather

Generate a professional TV-style weather broadcast frame using Gemini 3 Pro Image (Nano Banana).

Features

  • Seasonal Backgrounds: Generates a photorealistic backdrop based on the address and current local season (hemisphere-aware).
  • Real-time Data: Pulls live weather and 7-day forecast from Open-Meteo.
  • Broadcast UI: Stitches data and background into a professional TV broadcast layout.

Usage

python3 {baseDir}/scripts/generate_infographic.py --address "10 Downing St, London" --lat 51.5033 --lon -0.1276 --output "out/london-weather.png"

Environment

  • GEMINI_API_KEY: Required for image generation.