diff options
author | monsta <[email protected]> | 2016-08-24 21:58:00 +0300 |
---|---|---|
committer | Martin Wimpress <[email protected]> | 2016-09-08 13:06:25 +0100 |
commit | 5fe927e6ec83d471683aa5d5d0b54aefe9162fba (patch) | |
tree | e3645adb1f91d39b5953288783ecb0c7c858dfe3 | |
parent | b0f69fae6dff7b6972ef1fef1d409e2aed44be47 (diff) | |
download | libmateweather-5fe927e6ec83d471683aa5d5d0b54aefe9162fba.tar.bz2 libmateweather-5fe927e6ec83d471683aa5d5d0b54aefe9162fba.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); |