Fedora Linux Support Community & Resources Center
  #1  
Old 2nd December 2011, 11:29 PM
kbs1 Offline
Registered User
 
Join Date: Oct 2008
Posts: 91
linuxopera
Unhappy Fedora 16 weather applet

Can somebody please point me to a WORKING weather applet for fedora 16? NONE of which I have tried (total 4) worked, and that included already 5 hours of metadata.json hacking [gnome allowed version changing], extension.js changing*[addind "missing" init, enable and disable functions], JSON or YQL query debugging (nothing, still just errors from JSON parser) so what weather applet do you use?

Thanks!
Reply With Quote
  #2  
Old 3rd December 2011, 12:27 AM
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,436
linuxfirefox
Re: Fedora 16 weather applet

I used to use the one included with AWN, but the weather provider changed the API. I read that a number of weather applets were affected.

dd_wizard
Reply With Quote
  #3  
Old 3rd December 2011, 12:34 AM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 49
Posts: 3,864
linuxfirefox
Re: Fedora 16 weather applet

F16 uses gnome 3.2 so you need this one, it works for me, remove the old extension first
https://github.com/simon04/gnome-she.../tree/gnome3.2
https://github.com/simon04/gnome-she...pball/gnome3.2
Reply With Quote
  #4  
Old 3rd December 2011, 12:52 PM
kbs1 Offline
Registered User
 
Join Date: Oct 2008
Posts: 91
linuxopera
Thumbs up Re: Fedora 16 weather applet

This one does not work for me. I live in Bratislava, Slovakia, so my WOEID is 818717. I have actually debugged the YQL query used and it does not expect a WOEID, but it expects a string, in my case "AUXX0010". Never the less, I also tried "Bratislava, Slovakia", and also changing the query to use weather.search table, but it still crashes on json.get_object_member("query").get_object_member( "results") is null. It is NOT null (at least in YQL query console), but I am unable to check actual downloaded content in load_json_async() in extension.js (global.log does not work there for some reason?)

load_json_async: function(url, fun) {
global.log("Downloading weather"); ///////////////////////// will not log into looking glass?
let here = this;
let session = new Soup.SessionAsync();

if (Soup.Session.prototype.add_feature != null)
Soup.Session.prototype.add_feature.call(session, new Soup.ProxyResolverDefault());

let message = Soup.Message.new('GET', url);
session.queue_message(message, function(session, message) {
let jp = new Json.Parser();
jp.load_from_data(message.response_body.data, -1);
fun.call(here, jp.get_root().get_object());
});
},

So I am unable to check actual content downloaded by Soup (but the "fun.call(here, jp.get_root().get_object());" call is definitely made, because the error message in format "A error has occured" is logged in the catch block of the called function.

So, what settings do you use? Maybe I could try yours just to see if it works. Thanks.

---------- Post added at 12:21 PM ---------- Previous post was at 12:16 PM ----------

OMG. The python configurator script does not work. When I changed my "woeid" using "gsettings set org.gnome.shell.extensions.weather woeid AUXX0010" the applet immediately recognised the change (as registered by "this._settings.connect('changed::' + WEATHER_WOEID_KEY, load_settings_and_refresh_weather);"), and the weather immediately popped up! So thanks, I also tried setting woeid by command line but I was actually setting an WOEID (818717) and not expected "AUXX0010" so it did not work back then.

---------- Post added at 01:52 PM ---------- Previous post was at 12:21 PM ----------

well as it shows up Bratislava is LOXX0001 but nevermind it works correctly now
Reply With Quote
  #5  
Old 3rd December 2011, 03:29 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,682
linuxfedorafirefox
Re: Fedora 16 weather applet

I use Temperature.app, which works fine for me in WindowMaker.
__________________
OS: Fedora 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #6  
Old 19th December 2011, 08:09 PM
mswal2846 Offline
Registered User
 
Join Date: Dec 2008
Posts: 69
linuxfirefox
Re: Fedora 16 weather applet

Ok, finally got it to work! Apparently the WOEID needs to be 4 characters + 4 numbers. Bratislava, Slovakia, so WOEID is LOXX0001. You can set it by entering in a Terminal:

Code:
gsettings set org.gnome.shell.extensions.weather woeid LOXX0001


---------- Post added at 03:09 PM ---------- Previous post was at 03:08 PM ----------

By the way, I found the code by going to your favorite internet browser and entering:

Code:
http://xoap.weather.com/search/search?where=Bratislava, Slovakia
Reply With Quote
  #7  
Old 19th December 2011, 08:29 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,189
linuxfirefox
Re: Fedora 16 weather applet

Command line... for US and Canadian users:
Code:
yum install expect
Code:
BASH:~/-> weather DAB | grep -A3 Conditions
Weather Conditions at 01:53 PM EST on 19 Dec 2011 for Daytona Beach, FL.
Temp(F)    Humidity(%)    Wind(mph)    Pressure(in)    Weather
========================================================================
  72          51%         ESE at 8       30.24      Scattered Clouds
You just need to know the airport designator code for the nearest airport to you that provides this service. grep more lines to include the "forecast" info. This can be done for "International" sites as well, but you'll have to write your own expect script for that. The "weather" script is one of several example scripts that come with the expect package.
Reply With Quote
  #8  
Old 20th December 2011, 03:37 AM
zKarp Offline
Registered User
 
Join Date: Dec 2011
Location: Syracuse
Age: 22
Posts: 10
linuxchrome
Re: Fedora 16 weather applet

Try fedora utils, http://fedorautils.sourceforge.net/. Choose extensions then check the weather one. I tried the manual process but it wouldn't "make".
Hope this helps.
Reply With Quote
  #9  
Old 27th December 2011, 09:56 PM
ooseven Offline
Registered User
 
Join Date: Dec 2011
Location: Hayward, WI
Posts: 16
linuxfirefox
Re: Fedora 16 weather applet

Quote:
Originally Posted by Dangermouse View Post
F16 uses gnome 3.2 so you need this one, it works for me, remove the old extension first
https://github.com/simon04/gnome-she.../tree/gnome3.2
https://github.com/simon04/gnome-she...pball/gnome3.2
I tried to install https://github.com/simon04/gnome-she...pball/gnome3.2, but this is what the error said:
MIME type not supported /tmp/simon04-gnome-shell-extension-weather-e338715.zip
__________________
Thank You.....
ooseven
A freind never gets in your way, less
you are falling down.
Reply With Quote
  #10  
Old 27th December 2011, 10:22 PM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 49
Posts: 3,864
linuxfirefox
Re: Fedora 16 weather applet

Im afraid its not that easy, you need to build and compile it,
http://www.dnmouse.org/autoten/gnome...extension.html
Reply With Quote
  #11  
Old 15th January 2012, 07:47 PM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
linuxchrome
Re: Fedora 16 weather applet

I've tried several weather extensions without any luck.

I'l like to uninstall all of them and start fresh with the one at GIThub.

If I run autoten it indicates there is one installed. How do I uninstall?
Reply With Quote
  #12  
Old 15th January 2012, 08:13 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,062
linuxfirefox
Re: Fedora 16 weather applet

Under KDE4, you can install the kde-plasma-yawp package (yawp == yet another weather plugin),
then unlock your widgets, do an Add Widgets and select yawp and drag it to the desktop. Set up from there is pretty straightforward (right mouse click the widget, etc)
Reply With Quote
  #13  
Old 15th January 2012, 08:39 PM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 49
Posts: 3,864
linuxfirefox
Re: Fedora 16 weather applet

Quote:
Originally Posted by tmort View Post
I've tried several weather extensions without any luck.

I'l like to uninstall all of them and start fresh with the one at GIThub.

If I run autoten it indicates there is one installed. How do I uninstall?
You probably have installed the gnome3 extension and not the 3.2 version which is needed for f16,(common mistake) just rename the dir weather@gnome-shell-extensions.gnome.org it is in /usr/share/gnome-shell/extensions and then you should be able to install the correct version with autoplus but no guarantee it will work with all the alterations etc.. you have done.
Reply With Quote
  #14  
Old 4th February 2012, 10:35 PM
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 57
Posts: 304
linuxfirefox
Re: Fedora 16 weather applet

Hi,

Same problem here. I have 4 machines running f16 and i notice one machine the extentions is in in color. I wish to uninstall the B/W ones and go back with the autoten/utility plus one which is color (i think). Autoten shows them as installed but wont allow an uninstall. Any help wouls be appriceated.

Thanks!
__________________
FC 20-64 4930K, GTX 780 Teraquad
FC 20-64 Sony Vaio VGN-FW190! Vaio
FC 19-64 Dell Dimension 9100 Zoneminder
Nexus 7, Samsung 5S, De N4ZPO Ham Radio
Reply With Quote
  #15  
Old 7th February 2012, 06:48 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,078
linuxfirefox
Exclamation Re: Fedora 16 weather applet

Thanks for the information. This weather applet is great, exactly what I was looking for ;-)

Fedora 16 is at gnome-shell 3.2.1 now or 3.2.2 if you install it from updates-testing. Do not use the zip file from above or the 3.2 branch of the weather applet! You have to use the master branch, which fixed some bugs.

The new version of the applet includes a configurator. If you uncheck the "Symbolic Icons" box it will be in color, otherwise it's in black and white.

This is the zip file for the master branch: https://github.com/simon04/gnome-she...zipball/master

Another applet I would recomment is this system monitor applet: https://github.com/paradoxxxzero/gno...monitor-applet
Reply With Quote
Reply

Tags
applet, fedora, weather

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock Applet Weather michelangelo Linux Chat 2 5th November 2011 09:41 AM
GNOME clock applet can't get weather (F14) JCCyC Using Fedora 10 2nd May 2011 02:05 PM
Hong Kong Weather Applet stevenjd13 Using Fedora 0 13th June 2009 05:21 AM
Gnome Weather applet kama Using Fedora 1 10th April 2007 08:10 AM
Using the Weather report applet in Gnome Piyush Using Fedora 2 13th February 2007 01:01 PM


Current GMT-time: 08:46 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Viveiro - Arganzuela Travel Photos - Kakinada Instagram Photos