Configured a GPS module within the simulation environment to reliably receive real-time Lat (Latitude) and Lon (Longitude) coordinates.
The system supports two-way conversion between coordinates and location names using the location.h library.
Mapped the standard geographic coordinates (Lat/Lon) into the specialized Grid Coordinate System required by the KMA API.
Transmitted the converted Grid coordinates to the KMA API server to fetch and display live weather information.
One of the main technical challenges was that Wokwi does not provide a built-in GPS module. As a result, the simulation environment cannot directly obtain location data. To address this limitation, we chose to retrieve location information locally using Visual Studio Code (VSC).
server.py.
This server retrieves the estimated latitude and longitude from the host machine
and transmits them to the Wokwi simulation, effectively bypassing the sandbox limitation.
By converting regional data from Excel into a location.h file, the system supports both coordinate-to-location and location-to-coordinate conversion for KMA weather API requests.
Our system retrieves weather information using the KMA (Korea Meteorological Administration) API. However, this API does not accept standard GPS coordinates (latitude and longitude) directly. The KMA API uses a unique system called KMA grid coordinates (NX, NY) for its weather data, instead of standard GPS coordinates.
After converting the location into KMA grid coordinates (NX, NY), the resulting values are directly passed to the KMA weather API. This step ensures that the API request follows the coordinate system required by the Korea Meteorological Administration.