| name | weather |
| description | Get current weather conditions and forecasts for any location using Open-Meteo API with KMA (Korea Meteorological Administration) data. No API key required. High-resolution 1.5km model for Korea. Use when the user asks about weather, temperature, rain, snow, humidity, wind, or forecasts. Do NOT use for historical weather data or climate analysis. |
| metadata | {"model":"local","tools":["exec","web_fetch"],"triggers":["๋ ์จ","๊ธฐ์จ","weather","forecast","๋น","๋","๊ธฐ์","์ต๋","๋ฐ๋"],"aliases":["๋ ์จ"],"homepage":"https://open-meteo.com/en/docs/kma-api"} |
Weather
Quick Reference
| Task | Command |
|---|
| ์์ธ ํ์ฌ ๋ ์จ | web_fetch(url="https://api.open-meteo.com/v1/kma?latitude=37.57&longitude=126.98¤t=temperature_2m,relative_humidity_2m,apparent_temperature,weather_code,wind_speed_10m,wind_direction_10m&timezone=Asia/Seoul") |
| ์์ธ 7์ผ ์๋ณด | web_fetch(url="https://api.open-meteo.com/v1/kma?latitude=37.57&longitude=126.98&daily=weather_code,temperature_2m_max,temperature_2m_min,precipitation_sum,wind_speed_10m_max&timezone=Asia/Seoul") |
| ๋์ ์ขํ ๊ฒ์ | web_fetch(url="https://geocoding-api.open-meteo.com/v1/search?name=๋ถ์ฐ&count=1&language=ko") |
API ํค ๋ถํ์. ํ๊ตญ ๊ธฐ์์ฒญ(KMA) ๊ณ ํด์๋ 1.5km ๋ชจ๋ธ ์ฌ์ฉ.
API: Open-Meteo KMA
Base URL: https://api.open-meteo.com/v1/kma
ํ์ ํ๋ผ๋ฏธํฐ
latitude, longitude: ์ขํ (์์์ )
timezone: Asia/Seoul (ํ๊ตญ)
ํ์ฌ ๋ ์จ (current=)
temperature_2m, relative_humidity_2m, apparent_temperature, weather_code, wind_speed_10m, wind_direction_10m, precipitation
์๊ฐ๋ณ ์๋ณด (hourly=)
temperature_2m, precipitation, weather_code, wind_speed_10m, cloud_cover
์ผ๋ณ ์๋ณด (daily=)
weather_code, temperature_2m_max, temperature_2m_min, precipitation_sum, wind_speed_10m_max, sunrise, sunset
์ฃผ์ ๋์ ์ขํ
| ๋์ | ์๋ | ๊ฒฝ๋ |
|---|
| ์์ธ | 37.57 | 126.98 |
| ๋ถ์ฐ | 35.18 | 129.08 |
| ์ธ์ฒ | 37.46 | 126.71 |
| ๋๊ตฌ | 35.87 | 128.60 |
| ๋์ | 36.35 | 127.39 |
| ๊ด์ฃผ | 35.16 | 126.85 |
| ์ ์ฃผ | 33.50 | 126.53 |
| ๋์ฟ | 35.68 | 139.69 |
| ๋ด์ | 40.71 | -74.01 |
| ๋ฐ๋ | 51.51 | -0.13 |
Weather Code โ ํ๊ตญ์ด
| ์ฝ๋ | ์ํ |
|---|
| 0 | โ๏ธ ๋ง์ |
| 1-3 | ๐ค๏ธ ๋์ฒด๋ก ๋ง์ / โ
๊ตฌ๋ฆ ์กฐ๊ธ / โ๏ธ ํ๋ฆผ |
| 45, 48 | ๐ซ๏ธ ์๊ฐ |
| 51-55 | ๐ฆ๏ธ ์ด์ฌ๋น |
| 61-65 | ๐ง๏ธ ๋น (์ฝ/๋ณดํต/๊ฐ) |
| 66-67 | ๐จ๏ธ ์ง๋๊นจ๋น |
| 71-75 | โ๏ธ ๋ (์ฝ/๋ณดํต/๊ฐ) |
| 77 | ๐จ๏ธ ์ธ๋ฝ๋ |
| 80-82 | ๐ง๏ธ ์๋๊ธฐ |
| 85-86 | โ๏ธ ๋์๋๊ธฐ |
| 95 | โ๏ธ ๋์ฐ |
| 96-99 | โ๏ธ ์ฐ๋ฐ ๋๋ฐ ๋์ฐ |
Workflow
- ๋์๋ช
โ ์ขํ ๋ณํ: ์ ํ
์ด๋ธ์ ์์ผ๋ฉด Geocoding API๋ก ๊ฒ์.
web_fetch๋ก Open-Meteo KMA API ํธ์ถ.
- JSON ์๋ต์์ weather_code๋ฅผ ํ๊ตญ์ด๋ก ๋ณํํ์ฌ ๋ณด๊ณ .
Geocoding (๋์ ์ขํ ๊ฒ์)
์๋ ค์ง์ง ์์ ๋์๋ Open-Meteo Geocoding API๋ก ์ขํ๋ฅผ ์กฐํ:
https://geocoding-api.open-meteo.com/v1/search?name=๋์๋ช
&count=1&language=ko
์๋ต์ results[0].latitude, results[0].longitude ์ฌ์ฉ.