async_warning_client
Async KMA Weather Warning API client.
This module provides a client for accessing the Korea Meteorological Administration's Weather Warning (특보) API for weather alerts and warnings.
Weather warnings provide critical alerts for severe weather conditions including heavy rain, strong winds, heavy snow, and other hazards.
AsyncWarningClient
¶
Async client for KMA Weather Warning API.
The Weather Warning system provides alerts for severe weather conditions to protect life and property from meteorological hazards.
Source code in python/src/kma_mcp/forecast/async_warning_client.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
close()
async
¶
get_current_warnings(stn=0)
async
¶
Get current active weather warnings.
Parameters:
Returns:
Example
async with AsyncWarningClient('your_auth_key') ... data = await client.get_current_warnings()
Source code in python/src/kma_mcp/forecast/async_warning_client.py
get_special_weather_report(tm, stn=0)
async
¶
Get special weather report.
Parameters:
-
tm(str) –Time in 'YYYYMMDDHHmm' format
-
stn(int | str, default:0) –Station/region code (0 for all regions)
Returns:
Example
async with AsyncWarningClient('your_auth_key') ... data = await client.get_special_weather_report('202501011200')
Source code in python/src/kma_mcp/forecast/async_warning_client.py
get_warning_history(start_date, end_date, stn=0)
async
¶
Get weather warning history for a date range.
Parameters:
-
start_date(str) –Start date in 'YYYYMMDD' format
-
end_date(str) –End date in 'YYYYMMDD' format
-
stn(int | str, default:0) –Station/region code (0 for all regions)
Returns:
Example
async with AsyncWarningClient('your_auth_key') ... data = await client.get_warning_history('20250101', '20250131')