diff --git a/helpers/DATA/libmateweather/0cc07f7e5163870bcc2fb7281c28e8e39c9cbc54.patch b/helpers/DATA/libmateweather/patch_changes/001-0cc07f7e5163870bcc2fb7281c28e8e39c9cbc54.patch similarity index 100% rename from helpers/DATA/libmateweather/0cc07f7e5163870bcc2fb7281c28e8e39c9cbc54.patch rename to helpers/DATA/libmateweather/patch_changes/001-0cc07f7e5163870bcc2fb7281c28e8e39c9cbc54.patch diff --git a/helpers/DATA/libmateweather/a61542ffc2d3807dbc3163d1727cc5d8c2118838.patch b/helpers/DATA/libmateweather/patch_changes/002-a61542ffc2d3807dbc3163d1727cc5d8c2118838.patch similarity index 100% rename from helpers/DATA/libmateweather/a61542ffc2d3807dbc3163d1727cc5d8c2118838.patch rename to helpers/DATA/libmateweather/patch_changes/002-a61542ffc2d3807dbc3163d1727cc5d8c2118838.patch diff --git a/helpers/DATA/libmateweather/patch_changes/003-weather_server_uri_update_138.patch b/helpers/DATA/libmateweather/patch_changes/003-weather_server_uri_update_138.patch new file mode 100644 index 0000000..f23ec31 --- /dev/null +++ b/helpers/DATA/libmateweather/patch_changes/003-weather_server_uri_update_138.patch @@ -0,0 +1,38 @@ +From 4e54f44dab4efa8c216b26ea7188b99c94882ba4 Mon Sep 17 00:00:00 2001 +From: Victor Kareh +Date: Thu, 18 Sep 2025 11:40:55 -0400 +Subject: [PATCH] metar: Update AviationWeather URL + +According to their website: "The AviationWeather Data API has been +redeveloped in 2025." + +Also they put 'METAR' (or 'SPECI') onto the beginning of data to make it +ICAO compliant, so we add code to parse that. + +Fixes #135 +--- + libmateweather/weather-metar.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libmateweather/weather-metar.c b/libmateweather/weather-metar.c +index 7bc24fc9..4698a077 100644 +--- a/libmateweather/weather-metar.c ++++ b/libmateweather/weather-metar.c +@@ -510,7 +510,7 @@ metar_finish (SoupSession *session, SoupMessage *msg, gpointer data) + + loc = info->location; + +- searchkey = g_strdup_printf ("%s", loc->code); ++ searchkey = g_strdup_printf ("METAR %s", loc->code); + p = strstr (msg->response_body->data, searchkey); + g_free (searchkey); + if (p) { +@@ -550,7 +550,7 @@ metar_start_open (WeatherInfo *info) + } + + msg = soup_form_request_new ( +- "GET", "https://aviationweather.gov/cgi-bin/data/dataserver.php", ++ "GET", "https://aviationweather.gov/api/data/dataserver", + "dataSource", "metars", + "requestType", "retrieve", + "format", "xml", diff --git a/helpers/make-libmateweather b/helpers/make-libmateweather index 7274cf7..3b5951f 100644 --- a/helpers/make-libmateweather +++ b/helpers/make-libmateweather @@ -17,17 +17,12 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=2 BUILD_UNTIL=11.0 . ./config -# Apply patches from upstream for URL weather change and FTBFS on current -# aramo release. -for i in $DATA/*.patch; do - echo Applying patch $i -patch --no-backup-if-mismatch -p1 < $i -done +apply_patch_changes changelog "Fix dataserver weather url change."