LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2014, 11:46 AM   #1
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 56
-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:
Code:
http://api.yr.no/weatherapi/locationforecastlts/1.1?lat=35;lon=-97;msl=388
Code:
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:
Code:
http://api.yr.no/weatherapi/locationforecastlts/1.2?lat=35;lon=-97;msl=388
I didn't include the successful results because it is just a lot of XML weather forecast stuff.

Perhaps my google-fu is broken the last couple of days, but the hits returned for me are for different issues and dated 2013 and before.

Anyone else having the same problem? Any suggestions?
 
Old 10-12-2014, 12:57 PM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Slackbuild maintenance rule no. 34: If in doubt, snarf the patches from Arch ;-)

Assuming that you know how to build it, here's what you need:

https://github.com/idlemoor/unoffici...gin.SlackBuild
https://github.com/idlemoor/unoffici...10916.patch.gz
https://github.com/idlemoor/unoffici...-file.patch.gz
http://slackware.org.uk/slackware/sl...gin/slack-desc
http://slackware.org.uk/slackware/sl...n-0.8.3.tar.xz

If I were you, I'd rename the resulting package to have a different tag before you install it. I've not tested it, you can have that honour
 
5 members found this post helpful.
Old 10-12-2014, 01:04 PM   #3
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236

Original Poster
Blog Entries: 1

Rep: Reputation: 56
Thanks very much! Your answer is impressively complete. I'll try building that later today or tomorrow as real-life is intruding a bit right now. ;v)

After I try it out I'll report on the results.
 
Old 10-12-2014, 02:17 PM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236

Original Poster
Blog Entries: 1

Rep: Reputation: 56
Works, thanks!
 
Old 10-16-2014, 07:07 PM   #5
J2112O
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
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
 
Old 10-26-2014, 04:04 AM   #6
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Blog Entries: 1

Rep: Reputation: 15
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!
 
Old 10-26-2014, 07:45 AM   #7
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by autophil View Post
I don't know mate.
But from what I read, a newer version is needed. Version 0.8.4
There is no such thing as Version 0.8.4 at this time. http://archive.xfce.org/src/panel-pl...er-plugin/0.8/

Quote:
Originally Posted by autophil View Post
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)

p.s. http://www.newsbiscuit.com/2014/09/0...-balsamic-law/

Last edited by 55020; 10-26-2014 at 07:51 AM.
 
1 members found this post helpful.
Old 10-27-2014, 02:47 AM   #8
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Blog Entries: 1

Rep: Reputation: 15
Thanks 55020 Im gonna try this. Learning curve.
 
Old 10-27-2014, 01:05 PM   #9
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Rep: Reputation: 44
Wow! I grew up in H'gate - small world! Left H'gate Grammar (which should be called Otley Road Comprehensive!) in '83.

Thanks 55020 for post #2 in the thread, worked like a charm for me on 14.1 32 bit.


There must be something about growing up in Yorkshire that makes the weather plugin so vital - I was lost when it died!
 
Old 10-27-2014, 01:52 PM   #10
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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.
 
Old 10-27-2014, 10:04 PM   #11
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 -current (started with 13.37(32))
Posts: 586

Rep: Reputation: 256Reputation: 256Reputation: 256
Thanks jamesf and 55020 the plugin is working again.
 
Old 10-30-2014, 05:27 PM   #12
vtel57
Senior Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64 14.2
Posts: 1,371

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.

Any thoughts? Suggestions?
 
Old 10-30-2014, 05:58 PM   #13
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,231

Rep: Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454Reputation: 1454
multilib?
 
Old 10-30-2014, 06:19 PM   #14
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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.
Code:
slackpkg reinstall mesa xorg-server
 
1 members found this post helpful.
Old 10-30-2014, 06:40 PM   #15
vtel57
Senior Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64 14.2
Posts: 1,371

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
@ Willy... no, I'm running pure 64bit.

@ 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.

Thanks, all.

Regards,

~Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] xfce4-weather-plugin is not showing data mark_alfred Linux - Software 1 10-11-2014 02:19 PM
[SOLVED] CPU performance and weather on xfce lghizoni Linux - Desktop 3 05-14-2013 03:53 PM
How do I add the XFCE weather plugin to my desktop? dsotm Slackware 4 03-25-2013 12:27 PM
xfce4 weather plugin without internet connection ut0ugh1 Linux - Software 4 03-22-2012 02:20 PM
slackware64-current : pulseaudio compilation fails, wrong version of libtool pokipoki08 Slackware 2 08-01-2009 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration