This skill fetches real-time weather data and generates weather broadcast reports using the free wttr.in API (no API key required).
Use this skill when users say things like:
Extract the target city from the user's message.
references/weather_api.md for common city name mappings).Choose the output format based on user intent:
| User Intent | Format Flag |
|---|---|
| ------------ | ------------- |
| Quick check / one-liner | --format brief |
| Detailed forecast, multiple days | --format detailed |
| Broadcast / formal report | --format broadcast (default) |
Determine forecast days:
--days 3--days 1--days 7Execute the weather fetcher script:
python "C:\Users\zghui\.workbuddy\skills\weather-broadcast\scripts\fetch_weather.py" <CityName> --days <1|3|7> --format <brief|detailed|broadcast>
Examples:
# Brief current weather
python "..." Beijing --days 1 --format brief
# 3-day detailed forecast
python "..." Shanghai --days 3 --format detailed
# Full broadcast report (default)
python "..." Guangzhou --days 3 --format broadcast
C:\Users\zghui\.workbuddy\skills\weather-broadcast\scripts\fetch_weather.py. Verify the path if errors occur.references/weather_api.md: API documentation, city name mappings, field descriptions, and fallback data sources.scripts/fetch_weather.py: Weather data fetcher script (Python 3, no external dependencies).--format broadcast) produces the most visually appealing output for display.共 3 个版本