-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
34 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
srcpkgs/libgweather/patches/0001-Fix-fallback-metric-unit-detection-logic.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
From e62b4f1790c525af6d565a2d6adf8a178e9e7153 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= <[email protected]> | ||
Date: Mon, 20 Nov 2023 12:24:45 +0200 | ||
Subject: [PATCH] metar: update dataserver URL | ||
|
||
Info about URL change: | ||
https://github.com/mate-desktop/libmateweather/pull/79#issuecomment-1765810415 | ||
|
||
https://gitlab.gnome.org/GNOME/libgweather/-/issues/232 | ||
https://gitlab.gnome.org/GNOME/libgweather/-/issues/236 | ||
--- | ||
libgweather/weather-metar.c | 8 ++++---- | ||
1 file changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/libgweather/weather-metar.c b/libgweather/weather-metar.c | ||
index c0e8a6e5..3cb5ecc5 100644 | ||
--- a/libgweather/weather-metar.c | ||
+++ b/libgweather/weather-metar.c | ||
@@ -675,7 +675,7 @@ metar_start_open (GWeatherInfo *info) | ||
if (!loc->latlon_valid) | ||
return; | ||
|
||
- g_debug ("metar_start_open, requesting: https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3&mostRecent=true&fields=raw_text&stationString=%s", loc->code); | ||
+ g_debug ("metar_start_open, requesting: https://aviationweather.gov/cgi-bin/data/dataserver.php?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3&mostRecent=true&fields=raw_text&stationString=%s", loc->code); | ||
query = soup_form_encode ( | ||
"dataSource", | ||
"metars", | ||
@@ -696,14 +696,14 @@ metar_start_open (GWeatherInfo *info) | ||
uri = g_uri_build (SOUP_HTTP_URI_FLAGS, | ||
"https", | ||
NULL, | ||
- "www.aviationweather.gov", | ||
+ "aviationweather.gov", | ||
-1, | ||
- "/adds/dataserver_current/httpparam", | ||
+ "/cgi-bin/data/dataserver.php", | ||
query, | ||
NULL); | ||
g_free (query); | ||
#else | ||
- uri = soup_uri_new ("https://www.aviationweather.gov/adds/dataserver_current/httpparam"); | ||
+ uri = soup_uri_new ("https://aviationweather.gov/cgi-bin/data/dataserver.php"); | ||
uri->query = query; | ||
#endif | ||
msg = soup_message_new_from_uri ("GET", uri); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Date: Tue, 21 Nov 2023 17:51:29 +0700 | ||
Subject: [PATCH] Locations: Siem Reap changes its international airport | ||
|
||
Old airport won't provide new METAR. | ||
--- | ||
data/Locations.xml | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/data/Locations.xml b/data/Locations.xml | ||
index f4d1e6c6..c42e9508 100644 | ||
--- a/data/Locations.xml | ||
+++ b/data/Locations.xml | ||
@@ -3081,7 +3081,7 @@ | ||
</location> | ||
<location> | ||
<name>Siem Reap</name> | ||
- <code>VDSR</code> | ||
+ <code>VDSA</code> | ||
<coordinates>13.366667 103.850000</coordinates> | ||
</location> | ||
<city> | ||
-- | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters