| name | weather-report-pipeline |
| description | Operate a daily weather reporting pipeline with data fetch fallback, dry-run preview mode, and optional Discord delivery. Use when generating location-based weather reports, troubleshooting weather message delivery, or validating forecast content before sending. |
Weather Report Pipeline
Overview
Run weather reports with safe defaults and fallback data lookup.
Use preview mode first, then send when output quality is acceptable.
Quick Start
- Health check:
./scripts/weather_pipeline_health_check.sh
- Fetch weather data (no send):
./scripts/weather_pipeline_fetch.sh
- Preview final message (dry-run):
./scripts/weather_pipeline_run.sh
- Send to Discord target:
./scripts/weather_pipeline_run.sh --send --target "channel:<YOUR_WEATHER_CHANNEL_ID>"
Workflow
Step 1: Validate dependencies
- Ensure
curl and openclaw are available.
- Verify source script path and log path.
Step 2: Fetch weather with fallback
- Query primary location first.
- Use fallback location when primary response is empty or invalid.
Step 3: Render and verify output
- Preview message body in dry-run.
- Check timestamp and forecast section before sending.
Step 4: Deliver and confirm
- Send via
openclaw message send only with explicit --send.
- Verify delivery command result.
Guardrails
- Do not auto-send in unknown channels.
- Keep target explicit for manual sends.
- Treat empty weather response as failure and retry with fallback.
Resources
scripts/weather_pipeline_health_check.sh: readiness checks.
scripts/weather_pipeline_fetch.sh: primary/fallback weather fetch.
scripts/weather_pipeline_run.sh: dry-run or send report.
scripts/weather_pipeline_log_triage.sh: inspect weather cron history.
references/weather-pipeline-playbook.md: failure matrix and practices.
Example Requests
- "Dùng weather-report-pipeline preview báo cáo thời tiết hôm nay cho Thủ Đức."
- "Dùng weather-report-pipeline gửi report vào Discord weather channel."
- "Dùng weather-report-pipeline kiểm tra run history job weather-report-daily."
Load references/weather-pipeline-playbook.md for fallback and delivery triage.