From 51c266aab8bb24e4464cbcec42fea4721c13791e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 20 Jun 2019 08:56:00 +0200 Subject: input_gadgets.c: change location to new flat --- input_gadgets.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input_gadgets.c b/input_gadgets.c index 25eaaac..dfeb0e1 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -277,7 +277,7 @@ char *gadgets_retrieve_weather_forecast(char *output, int max_len) free(chunk.memory); return NULL; } - curl_easy_setopt(curl_handle, CURLOPT_URL, "https://api.met.no/weatherapi/locationforecast/1.9/?lat=50.8830&lon=11.6223&msl=170"); + curl_easy_setopt(curl_handle, CURLOPT_URL, "https://api.met.no/weatherapi/locationforecast/1.9/?lat=50.9336&lon=11.5621&msl=170"); curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); @@ -288,7 +288,7 @@ char *gadgets_retrieve_weather_forecast(char *output, int max_len) fprintf( stderr, "curl_easy_perform(%s) failed: %s\n", - "https://api.met.no/weatherapi/locationforecast/1.9/?lat=50.8830&lon=11.6223&msl=170", + "https://api.met.no/weatherapi/locationforecast/1.9/?lat=50.9336&lon=11.5621&msl=170", curl_easy_strerror(res) ); free(chunk.memory); @@ -829,7 +829,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len) zip_discard(za); return NULL; } - int ret = point_is_inside_polygon(50.8830, 11.6223, (char *)text); + int ret = point_is_inside_polygon(50.9336, 11.5621, (char *)text); if (ret == 1) is_relevant = 1; else if (ret != 0) { -- cgit v1.2.3-54-g00ecf