diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c index 8780c0efe5b799e7418eb50606925786694d9a12..d4dd8de51ff62a9464678c479cc54d4ea3a7f6be 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 2723fc4c8544bb8f4575980191dcfba31c1128c9..921434f1f3a99203882026d00d83f9c407300884 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