Weather and air quality information lookup using KMA (기상청), AirKorea, and AccuWeather. Use when users ask for current weather, weather forecasts, hourly forecasts, weather conditions, sunrise/sunset times, UV index, air quality (미세먼지/초미세먼지), or past/historical weather observations.
This skill provides weather information from multiple data sources:
A Python script at scripts/weather.py is the primary tool for weather queries. Always prefer using this script.
requests and beautifulsoup4 packagesscripts/.env (KMA_API_KEY, AIRKOREA_API_KEY)# Current weather (KMA 초단기실황)
python3 scripts/weather.py now [--city CITY]
# Daily forecast (KMA 단기예보 + 중기예보, up to 10 days)
python3 scripts/weather.py daily [--city CITY]
# Hourly forecast (KMA 단기예보, up to 3 days)
python3 scripts/weather.py hourly [--city CITY] [--day DAY]
# Past observation (KMA ASOS, any past date)
python3 scripts/weather.py past [--city CITY] [--date YYYYMMDD]
# Air quality (AccuWeather AQI)
python3 scripts/weather.py air [--city CITY]
# Hourly air quality (AccuWeather 24h)
python3 scripts/weather.py air-hourly [--city CITY]
About 100 locations are registered including sub-districts. Major cities:
seoul, busan, daegu, incheon, gwangju, daejeon, ulsan, sejong, gangneung, chuncheon, jeonju, cheongju, jeju, seogwipo, gumi, suwon, changwon, pohang, gimhae, yeosu, wonju, gyeongju, andong, gimcheon, sangju, yeongju, mungyeong
Sub-districts use {city}-{district} format (e.g., seoul-gangnam, busan-haeundae, suwon-yeongtong). See references/cities.json for the full list.
# Current weather for Seoul
python3 scripts/weather.py now
# Tomorrow's hourly forecast for Seoul
python3 scripts/weather.py hourly --day 2
# Daily forecast for Busan
python3 scripts/weather.py daily --city busan
# Past observation for Seoul on specific date
python3 scripts/weather.py past --date 20260315
# Air quality for Daegu
python3 scripts/weather.py air --city daegu
scripts/weather.py (most reliable)| Command | Data Source | Coverage |
|---|---|---|
now | KMA 초단기실황 | Current conditions |
hourly | KMA 단기예보 + AirKorea | Today ~ 3 days, hourly |
daily | KMA 단기+중기예보 | Today ~ 10 days, daily |
past | KMA ASOS 관측 | Any past date, hourly |
air | AccuWeather + AirKorea | Current AQI + pollutants |
air-hourly | AccuWeather | 24-hour AQI forecast |
hourly, dailydailynowpast| Code | Korean | English |
|---|---|---|
| 1 | 맑음 | Clear |
| 3 | 구름많음 | Mostly Cloudy |
| 4 | 흐림 | Overcast |
| Code | Korean | English |
|---|---|---|
| 0 | 없음 | None |
| 1 | 비 | Rain |
| 2 | 비/눈 | Rain/Snow |
| 3 | 눈 | Snow |
| 4 | 소나기 | Shower |
| 5 | 빗방울 | Drizzle |
| 6 | 빗방울눈날림 | Drizzle/Flurry |
| 7 | 눈날림 | Snow Flurry |
Integrated into hourly output:
air, air-hourly)| AQI Range | Korean Level | Health Impact |
|---|---|---|
| 0-19 | 완벽함 | Suitable for all activities |
| 20-49 | 보통 | Acceptable for most people |
| 50-99 | 나쁨 | Sensitive groups may be affected |
| 100-149 | 건강에 해로움 | Limit outdoor activities |
| 150-249 | 건강에 매우 해로움 | Avoid outdoor activities |
| 250+ | 위험 | Avoid all outdoor exposure |
If the script fails, use WebFetch with these URL patterns:
# Air quality