async_nk_client
Async KMA North Korea Meteorological Observation API client.
This module provides a client for accessing the Korea Meteorological Administration's North Korea Meteorological Observation (북한기상관측) API.
North Korea observations provide meteorological data from weather stations in North Korea for regional weather analysis and monitoring.
AsyncNKClient
¶
Async client for KMA North Korea Meteorological Observation API.
The North Korea observation system provides meteorological data from weather stations in North Korea for regional weather analysis, forecasting, and cross-border weather monitoring.
Source code in python/src/kma_mcp/surface/async_nk_client.py
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | |
close()
async
¶
get_daily_data(tm, stn=0)
async
¶
Get daily North Korea meteorological observation data for a single day.
Parameters:
-
tm(str | datetime) –Date in 'YYYYMMDD' format or datetime object
-
stn(int | str, default:0) –Station number (0 for all stations)
Returns:
Example
async with AsyncNKClient('your_auth_key') ... data = await client.get_daily_data('20250101')
Source code in python/src/kma_mcp/surface/async_nk_client.py
get_daily_period(tm1, tm2, stn=0)
async
¶
Get daily North Korea meteorological observation data for a time period.
Parameters:
-
tm1(str | datetime) –Start date in 'YYYYMMDD' format or datetime object
-
tm2(str | datetime) –End date in 'YYYYMMDD' format or datetime object
-
stn(int | str, default:0) –Station number (0 for all stations)
Returns:
Example
async with AsyncNKClient('your_auth_key') ... data = await client.get_daily_period('20250101', '20250131')
Source code in python/src/kma_mcp/surface/async_nk_client.py
get_hourly_data(tm, stn=0)
async
¶
Get hourly North Korea meteorological observation data for a single time.
Parameters:
-
tm(str | datetime) –Time in 'YYYYMMDDHHmm' format or datetime object
-
stn(int | str, default:0) –Station number (0 for all stations)
Returns:
Example
async with AsyncNKClient('your_auth_key') ... data = await client.get_hourly_data('202501011200')
Or using datetime¶
from datetime import datetime ... data = await client.get_hourly_data(datetime(2025, 1, 1, 12, 0))
Source code in python/src/kma_mcp/surface/async_nk_client.py
get_hourly_period(tm1, tm2, stn=0)
async
¶
Get hourly North Korea meteorological observation data for a time period.
Parameters:
-
tm1(str | datetime) –Start time in 'YYYYMMDDHHmm' format or datetime object
-
tm2(str | datetime) –End time in 'YYYYMMDDHHmm' format or datetime object
-
stn(int | str, default:0) –Station number (0 for all stations)
Returns:
Example
async with AsyncNKClient('your_auth_key') ... data = await client.get_hourly_period('202501010000', '202501020000')