diff options
author | monsta <[email protected]> | 2016-08-24 21:58:00 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-24 22:28:56 +0300 |
commit | 84b1c00a75ce22eefdfceeb07a8bbae817328286 (patch) | |
tree | 2fdf437a429f86a1a1218996653cd2a206705784 | |
parent | 7022ba1ab33dd4e4539a9b131853d6c69a34766e (diff) | |
download | libmateweather-84b1c00a75ce22eefdfceeb07a8bbae817328286.tar.bz2 libmateweather-84b1c00a75ce22eefdfceeb07a8bbae817328286.tar.xz |
metar: switch to aviationweather.gov (weather.noaa.gov is discontinued)
-rw-r--r-- | libmateweather/weather-metar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmateweather/weather-metar.c b/libmateweather/weather-metar.c index da71db5..0787546 100644 --- a/libmateweather/weather-metar.c +++ b/libmateweather/weather-metar.c @@ -522,7 +522,7 @@ metar_finish (SoupSession *session, SoupMessage *msg, gpointer data) metar = g_strdup (p); success = metar_parse (metar, info); g_free (metar); - } else if (!strstr (msg->response_body->data, "National Weather Service")) { + } else if (!strstr (msg->response_body->data, "AVIATION WEATHER CENTER")) { /* The response doesn't even seem to have come from NWS... * most likely it is a wifi hotspot login page. Call that a * network error. @@ -550,8 +550,8 @@ metar_start_open (WeatherInfo *info) } msg = soup_form_request_new ( - "GET", "http://weather.noaa.gov/mgetmetar.php", - "cccc", loc->code, + "GET", "http://aviationweather.gov/metar/data", + "ids", loc->code, NULL); soup_session_queue_message (info->session, msg, metar_finish, info); |