🦀 ClawHub
Tübingen Weather Graphics
by @zopyx
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.
TERMINAL
clawhub install tuebingen-weather-graphics📖 About This Skill
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
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:
data/weather/...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
--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.💡 Examples
/tmp/tuebingen-plot/bin/python \
skills/tuebingen-weather-graphics/scripts/generate_forecast_graph.py \
--days 5 \
--output data/weather/tuebingen_forecast.png
Ausgabe:
data/weather/...📋 Tips & Best Practices
--days 7 o. Ä. möglich (die API liefert bis zu 7+ Tage im daily-Block).