微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌤️

图宾根 5 日天气,一键生成精美图表

Tübingen Weather Graphics · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 A 级 作者 zopyx 公开目录收录
1.2k 下载 0 安装 4.4k 收藏 8 浏览

简介

基于 Open-Meteo 自动生成图宾根 5 日天气预报可视化图表(PNG),含温度曲线与降雨概率,适合每日推送或存档。

原始描述

Generate and send a 5-day Tübingen weather graphic (PNG) from open-meteo.com. Use when Master wants a nicer visual forecast plus summary text for the next few days.

通过你的 Agent 添加

安装目录:t-bingen-weather-graphics/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/t-bingen-weather-graphics/
Codex CLI~/.codex/skills/t-bingen-weather-graphics/
DeepSeek Harness~/.agents/skills/t-bingen-weather-graphics/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: tuebingen-weather-graphics description: Generate and send a 5-day Tübingen weather graphic (PNG) from open-meteo.com. Use when Master wants a nicer visual forecast plus summary text for the next few days.

Tübingen Weather Graphics

Überblick

Erstellt eine ansprechende PNG-Grafik (max/min-Temperaturen + Regenwahrscheinlichkeit für 5 Tage) auf Basis von Open-Meteo. Ideal für morgendliche Forecast-Posts via Telegram oder Archivierung.

Voraussetzungen

  • Python 3.11+
  • matplotlib, numpy, pillow (am einfachsten via virtuelles Environment):
    python3 -m venv /tmp/tuebingen-plot
    source /tmp/tuebingen-plot/bin/activate
    pip install matplotlib
    

Quick Start

/tmp/tuebingen-plot/bin/python \
  skills/tuebingen-weather-graphics/scripts/generate_forecast_graph.py \
  --days 5 \
  --output data/weather/tuebingen_forecast.png

Ausgabe:

  • PNG unter data/weather/...
  • Textzusammenfassung im Terminal (z. B. „Fri 13.02: 5/10°C, Regen 85% | …“)

Automatischer Versand

  1. Cron-Job 07:30 (Beispiel):
    openclaw cron add <<'JSON'
    {
      "name": "tuebingen-forecast-graphic",
      "schedule": { "kind": "cron", "expr": "30 7 * * *", "tz": "Europe/Berlin" },
      "sessionTarget": "isolated",
      "payload": {
        "kind": "agentTurn",
        "model": "default",
        "message": "Run `/tmp/tuebingen-plot/bin/python skills/tuebingen-weather-graphics/scripts/generate_forecast_graph.py --output data/weather/tuebingen_forecast.png`. Send Master the summary text plus attach the PNG."
      }
    }
    JSON
    
  2. Telegram Versand: message.send mit media=data/weather/tuebingen_forecast.png.

Troubleshooting

  • Matplotlib ImportError: Stelle sicher, dass das oben genannte venv aktiv ist oder die Pakete systemweit installiert wurden.
  • Leere Daten: Open-Meteo liefert manchmal keine Regenwahrscheinlichkeit → Script zeigt 0%. Kann im Code angepasst werden.
  • Mehr Tage: --days 7 o. Ä. möglich (die API liefert bis zu 7+ Tage im daily-Block).

Ressourcen

  • scripts/generate_forecast_graph.py – Lädt Daily-Daten, zeichnet Linien/Flächen-Plot + Regen-Balken, speichert PNG.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

weathervisualizationautomationtelegramopen-meteogermanytuebingenmatplotlibcron

同类 Skill