tuebingen-weather
使用 open-meteo.com 发送蒂宾根每日 08:00 天气预报。当 Master 需要本地存储并通过 Telegram 转发的自动摘要(当前状况 + 今天的最高/最低价 + 降雨机会)时使用。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~zopyx-tuebingen-weathercURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~zopyx-tuebingen-weather/file -o zopyx-tuebingen-weather.md## 概述(中文)
使用 open-meteo.com 发送蒂宾根每日 08:00 天气预报。当 Master 需要本地存储并通过 Telegram 转发的自动摘要(当前状况 + 今天的最高/最低价 + 降雨机会)时使用。
## 原文
# Tübingen Weather
## Überblick
Dieses Skill liefert eine tägliche Wetterzusammenfassung für Tübingen (Open-Meteo API, keine API-Keys). Output: kompakte Text-Zusammenfassung mit aktuellem Zustand, Tagesminimum/-maximum und Regenwahrscheinlichkeit.
## Quick Start
1. **Manuell abrufen**
```bash
python3 skills/tuebingen-weather/scripts/fetch_tuebingen_weather.py \
--output data/weather/$(date +%F)_tuebingen.txt
```
-> gibt die Zusammenfassung aus und speichert sie optional.
2. **Ohne Datei** (nur Konsole/Telegram):
```bash
python3 skills/tuebingen-weather/scripts/fetch_tuebingen_weather.py
```
## Automatisierter 08:00-Versand
1. **Cron-Job anlegen**
```bash
openclaw cron add <<'JSON'
{
"name": "tuebingen-weather-08",
"schedule": { "kind": "cron", "expr": "0 8 * * *", "tz": "Europe/Berlin" },
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"model": "default",
"message": "Run `python3 skills/tuebingen-weather/scripts/fetch_tuebingen_weather.py --output data/weather/$(date +%F)_tuebingen.txt`. Send Master the stdout summary + mention the saved file. Report errors if the command fails."
}
}
JSON
```
2. **Überblick**
- Speichert Textdateien unter `data/weather/YYYY-MM-DD_tuebingen.txt` (frei anpassbar).
- Cron-Bot postet jeden Morgen um 08:00 automatisch die Nachricht.
## Hinweise
- Script nutzt nur Stdlib (`urllib`, `json`). Kein pip install nötig.
- Wettercodes → deutsche Beschreibung in `WEATHER_CODES`.
- Zeitzone: `Europe/Berlin` – passt sich automatisch Sommer/Winter an.
- Anpassungen (weitere Felder, z. B. Böen, UV) einfach im Script ergänzen.
## Ressourcen
- `scripts/fetch_tuebingen_weather.py` – CLI-Skript für Open-Meteo.