Commit 97601ab2 authored by OlivierDuchateau's avatar OlivierDuchateau

Switch to the 2.0 API

parent af009015
Pipeline #1136 passed with stages
in 1 minute and 17 seconds
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment