[SOLVED] -current, XFCE weather-plugin fails because it is using old API version
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
-current, XFCE weather-plugin fails because it is using old API version
I'm using 32-bit slackware-current, xfce 4.10, with xfce4-weather-plugin-0.8.3-i486-2.
I run with slackware's -current without newer versions of slackware-included programs from other sites to keep updating easier.
Weather-plugin is using version 1.1 of the weather data API, which has been giving warnings for months about the service going away. A couple of days ago the service finally went away in favor of the 'new' version 1.2 API.
Weather-plugin displays 'No Data' and 404 errors on the logging terminal. Copying the URL and pasting it in a browser results in this:
An error occurred!
The following error messages were generated:
[Sun Oct 12 15:28:14 2014] [error] [locationforecastlts]
The specified version number is end-of-lifed for this product
Specified parameters:
version=1.1
product=locationforecastlts
See also...
LocationforecastLTS product documentation
Top-level WeatherAPI documentation
If you believe this to be a bug in the application, contact the developers. Thanks!
Changing the API version to 1.2 results in success, in the browser:
I am running Slackware 14.1 64 bit and am having the same problem with the weather plugin for xfce. I am just wondering what URL are you referring to when you copy and paste it into the browser? Also how do you change the API to version 1.2 ? Thanks
I don't know mate.
But from what I read, a newer version is needed. Version 0.8.4
But this is not available as a gslapt package yet. Nor even a Slackbuild.
I don't know how to build packages or patches so I'm gonna have to wait until one is available. Worse luck!
But this is not available as a gslapt package yet. Nor even a Slackbuild.
I don't know how to build packages or patches so I'm gonna have to wait until one is available. Worse luck!
It's dead simple.
Code:
su -
mkdir /tmp/build
cd /tmp/build
wget https://github.com/idlemoor/unofficial-updates/raw/master/xfce/xfce4-weather-plugin/xfce4-weather-plugin.SlackBuild
wget https://github.com/idlemoor/unofficial-updates/raw/master/xfce/xfce4-weather-plugin/api-bug-10916.patch.gz
wget https://github.com/idlemoor/unofficial-updates/raw/master/xfce/xfce4-weather-plugin/fix-color-parsing-when-reading-config-file.patch.gz
wget http://slackware.org.uk/slackware/slackware64-current/source/xfce/xfce4-weather-plugin/slack-desc
wget http://slackware.org.uk/slackware/slackware64-current/source/xfce/xfce4-weather-plugin/xfce4-weather-plugin-0.8.3.tar.xz
sh xfce4-weather-plugin.SlackBuild
upgradepkg /tmp/xfce4-weather-plugin-0.8.3-*-3.txz
(The thing that accomplishes the API change is api-bug-10916.patch.gz)
The traditional spelling is of course Bloody Harrogate.
Anyone remember Bill Foggitt? What a daft old git he was. Now we have Keeley. Vast improvement.
Interesting. This did not work for me. The SlackBuild would not compile...
Errors
Code:
libtool: link: warning: `/usr/lib64/libffi.la' seems to be moved
libtool: link: warning: `/usr/lib64/libffi.la' seems to be moved
/bin/grep: /usr/lib64/libEGL.la: No such file or directory
/bin/sed: can't read /usr/lib64/libEGL.la: No such file or directory
libtool: link: `/usr/lib64/libEGL.la' is not a valid libtool archive
/usr/lib64/libffi.la is present, but /usr/lib64/libEGL.la is not. I have /usr/lib64/libEGL.so.340.24 instead.
As a wild guess, you use the proprietary nvidia driver and install it with nvidia's own installer?
If so, don't. Use the SBo nvidia-driver and nvidia-kernel packages instead. The nvidia installer is deeply stupid in multiple ways, and I'm fairly sure this is one of them. You'll probably have to clean up its mess before you build and install the SBo packages and try xfce4-weather-plugin again: e.g.
@ 55020... yes, as a matter of fact, I am running proprietary Nvidia installed via their installer. However, I've built 100s of SlackBuilds on my system without a blip till this one. You could be right, though. I'm not saying you're not. However, I'm currently too lazy to bother with this.
I was just looking for a simple fix. This weather applet is not that important to me. I believe I'll just remove it and use wunderground's website instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.