Plugin calls the incorrect API

Bug #1895246 reported by Terrance
66
This bug affects 13 people
Affects Status Importance Assigned to Milestone
xfce4-weather-plugin (Ubuntu)
Fix Released
Undecided
Mateusz Łukasik

Bug Description

The xfce4-weather-plugin calls the incorrect api.

Old API:
https://api.met.no/weatherapi/locationforecastlts/1.3/?lat=xx.xxxxxx&lon=-xxx.xxxxxx&msl=xxxx

From the site it gives this error message:
404 Not Found

Validation error

The specified version number is end-of-lifed for this product

New API:
https://api.met.no/weatherapi/locationforecast/2.0/?lat=xx.xxxxxx&lon=-xxx.xxxxxx&altitude=xxxx

Please correct the code.

Thank you!

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: xfce4-weather-plugin 0.8.11-0ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 5.4.0-47.51~18.04.1-generic 5.4.55
Uname: Linux 5.4.0-47-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Sep 10 22:40:37 2020
InstallationDate: Installed on 2020-08-15 (27 days ago)
InstallationMedia: Xubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xfce4-weather-plugin
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Terrance (kato223) wrote :
Terrance (kato223)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfce4-weather-plugin (Ubuntu):
status: New → Confirmed
Terrance (kato223)
description: updated
Terrance (kato223)
description: updated
Revision history for this message
Terrance (kato223) wrote :

I actually did get mine working by modifying the source found here:

https://askubuntu.com/a/1274260/231142

Revision history for this message
kevinbowen (kevin-bowen) wrote :

It looks like this issue has been fixed upstream several weeks ago. https://gitlab.xfce.org/panel-plugins/xfce4-weather-plugin/-/issues/23

Revision history for this message
Terrance (kato223) wrote :

In the folder of https://archive.xfce.org/src/panel-plugins/xfce4-weather-plugin/ the latest update shows a date of 23-Feb-2020. All versions in there do not have the correct fix in them. Just wondering where the correct fix is then.

Revision history for this message
Terrance (kato223) wrote :

Never mind, I found it. You will have to pull the git, then install it that way. This would be nice if they push this to the repos.

git clone https://gitlab.xfce.org/panel-plugins/xfce4-weather-plugin

Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :
Revision history for this message
ajgreeny (ajg-charlbury) wrote :

Solved by downloading the xfce4-weather-plugin.deb file from the PPA for xfce-4.16.
I extracted the libweather.so file from that package and replaced the file /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libweather.so with this extracted newer version.

Works very well again.

Revision history for this message
C. Jeffery Small (loyhz2ay-jeff-h670zbts) wrote :

Maintainer: please update the 20.04 focal repository with a working package.

Revision history for this message
Saptarshi Roy (sroypc) wrote :

+1

Revision history for this message
Mateusz Łukasik (mati75) wrote :

I will fix it soon.

Changed in xfce4-weather-plugin (Ubuntu):
assignee: nobody → Mateusz Łukasik (mati75)
Revision history for this message
Sean Davis (bluesabre) wrote :
Changed in xfce4-weather-plugin (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.