Bug#970259: Weather API update
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Sun, 2021-04-18 at 19:04 +0200, Yves-Alexis Perez wrote: > Hi Pavel, thanks for the patch. I'm a bit confused though. As far as I > cantell, it updates only the “sunrise” part of the request, not the > “weather” > part. > > It might be that using the wrong sunrise API prevents the whole plugin to > work, but can you confirm that with the patch both the sunrise *and* the > weather work fine? Nevermind, please disregard this mail, I looked at a wrong file missing one hunk. Regards, - -- Yves-Alexis -BEGIN PGP SIGNATURE- iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmB8ZxgACgkQ3rYcyPpX RFtCZQf/aXja/BrGS7xA2a/3z+eI1vmwGU7EHJWmAtn11LzwhJbJVn3cfwZ5uMXl 2PNERJzqmbdBvmgT8nkfmlfjul2FYH5A0MCyzGh/kEatq/upH9YFjPhCD9lTWNcK ZCKY0wf+yKA2QB/IJn7zLnzQ+bnU1EqC/YVPoqiZqP69lIlXjbBnkQ8UmRc/UCWE Hck3gfRu3GOQVAk2RCGgttgjHkrLovfu39uj12U6sq8HwqjYKGmJ2fjnaAPM4JX3 wAqgnNq8dZ/goHiQpOnqdlaHm6y19b1GOo8Iy7j4BD0GgK89S7OtNrWhiF7jGoEd YvSlC2mh1t5l+aD4YJJbQZl5WyRVDg== =n6kR -END PGP SIGNATURE-
Bug#970259: Weather API update
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wed, 2020-09-16 at 08:20 +0300, Pavel R. wrote: > Hello, I've fixed the plugin by bumping weather API version to 2.0 > > Patch is attached Hi Pavel, thanks for the patch. I'm a bit confused though. As far as I cantell, it updates only the “sunrise” part of the request, not the “weather” part. It might be that using the wrong sunrise API prevents the whole plugin to work, but can you confirm that with the patch both the sunrise *and* the weather work fine? Regards, - -- Yves-Alexis -BEGIN PGP SIGNATURE- iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmB8ZrUACgkQ3rYcyPpX RFtPvQgAk/EVf7jzpBmJ/yDzwd2C+7WIMyGcxVY4U4XdzKR+aihMuWlHbYDoBmRI AFDSp61idAquOgM4uB1rrFWqRyQOvI0thhE9u+gDaK8NYrn29Rh8Z+pNJBJ6Udps FZakxkF780+BPscp7i+zAXspt1CWw6Y1rQM06KjrScVtYRUR3foV2gwM1J+4hPj6 lMfdDhVDiFkNRcDIqX6TPmfd+H53qrOogKxDl6nJ7mJAO1snTT4VZPmA53875BFK V/0TuY51vqMeUj1Kg2eCYgE61CRYiI8R81yRsZQK7f4XUmUNfkS1lbhV+Ui9kMcc GFg4IoS9CtEkOSl2xQYpW7Leq48L6Q== =9YzF -END PGP SIGNATURE-
Bug#970259: Weather API update
On Wed, 16 Sep 2020 08:20:59 +0300 "Pavel R." wrote: > Hello, I've fixed the plugin by bumping weather API version to 2.0 > > Patch is attached > Thanks the patch, it is working... NOT official deb package: https://deb.w3host.hu/xfce4-weather-plugin_0.8.10-1.1_amd64.deb Regards, Krisztian
Bug#970259: Weather API update
Hello, I've fixed the plugin by bumping weather API version to 2.0 Patch is attached --- xfce4-weather-plugin-0.8.10.orig/panel-plugin/weather.c +++ xfce4-weather-plugin-0.8.10/panel-plugin/weather.c @@ -619,17 +619,14 @@ update_handler(plugin_data *data) end_tm = *localtime(&end_t); /* build url */ -url = g_strdup_printf("https://api.met.no/weatherapi/sunrise/1.1/?"; +url = g_strdup_printf("https://api.met.no/weatherapi/sunrise/2.0/?"; "lat=%s;lon=%s;" - "from=%04d-%02d-%02d;" - "to=%04d-%02d-%02d", + "date=%04d-%02d-%02d;" + "offset=00:00", data->lat, data->lon, now_tm.tm_year + 1900, - now_tm.tm_mon + 1, - now_tm.tm_mday, - end_tm.tm_year + 1900, - end_tm.tm_mon + 1, - end_tm.tm_mday); + now_tm.tm_mon + 1, + now_tm.tm_mday); /* start receive thread */ g_message(_("getting %s"), url); @@ -647,8 +644,8 @@ update_handler(plugin_data *data) /* build url */ url = g_strdup_printf("https://api.met.no/weatherapi"; -"/locationforecastlts/1.3/?lat=%s;lon=%s;msl=%d", -data->lat, data->lon, data->msl); +"/locationforecast/2.0/classic?lat=%s;lon=%s", +data->lat, data->lon); /* start receive thread */ g_message(_("getting %s"), url);