From 97601ab2ad1f9810516be6d3d91c5c9b16d6397a Mon Sep 17 00:00:00 2001 From: Olivier Duchateau Date: Sun, 28 Jun 2020 18:23:29 +0200 Subject: [PATCH] Switch to the 2.0 API --- panel-plugin/weather.c | 2 +- panel-plugin/weather.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c index 8780c0ef..d4dd8de5 100644 --- a/panel-plugin/weather.c +++ b/panel-plugin/weather.c @@ -656,7 +656,7 @@ update_handler(plugin_data *data) /* build url */ url = g_strdup_printf("https://api.met.no" "/weatherapi/locationforecast/%s/" - "?lat=%s&lon=%s&msl=%d", + "classic?lat=%s&lon=%s&altitude=%d", api_version, data->lat, data->lon, data->msl); diff --git a/panel-plugin/weather.h b/panel-plugin/weather.h index 2723fc4c..921434f1 100644 --- a/panel-plugin/weather.h +++ b/panel-plugin/weather.h @@ -31,7 +31,7 @@ #define MAX_FORECAST_DAYS 10 #define DEFAULT_FORECAST_DAYS 5 #define MAX_SCROLLBOX_LINES 10 -#define FORECAST_API "1.9" +#define FORECAST_API "2.0" G_BEGIN_DECLS -- GitLab