OK
Rating:
0.00
Thread Listing » AWN Applets
Weather applet stop working
#26990 by vagrale13 (0.1910) posted on 2:06am Sunday, November 06th, 2011
( no avatar )
For two days the weather applet has stopped working.
Same problem on Ubuntu Lucid 10.04 and Ubuntu oneiric 11.10
[Q]

Score: 0 points
Any particular reason?
#26991 by rm06 (0.1910) posted on 7:05pm Sunday, November 06th, 2011
( no avatar )
Same thing has happened to me after a recent update. I am running Ubuntu 10.10 and AWN 0.4.0. Happy to provide any add'l info
[Q]

Score: 0 points
Any particular reason?
#26992 by vagrale13 (0.1910) posted on 12:23am Monday, November 07th, 2011
( no avatar )
The problem i think is that something changed to wheather.com
because some users have the same problem with conky wheather http://ubuntuforums.org/showthread.php?t=869328&page=348
[Q]

Score: 0.00 points
Any particular reason?
#26993 by bobby (0.1881) posted on 12:51am Monday, November 07th, 2011
( no avatar )
to temporarily disable the "Error in Weather" pop-up until this problem is fixed, open this file:
[Q]



 
/usr/share/avant-window-navigator/applets/weather/weather.py
[Q]
 



scroll down to line 240 or 245 (depending on your awn version) and put a # at the beginning, to comment out the line:
[Q]



 
self.notification.show()
[Q]
 



so that block of code should now look like this:
[Q]



 
def network_error_cb(self, e, tb):
if type(e) is NetworkException:
print "Error in Weather:", e
# self.notification.show()
[Q]
 



restart awn, or log out/in
[Q]



*Edited at 12:53am, 11/07/11
Score: 0.22 points (Informative)
Any particular reason?
#26994 by vagrale13 (0.1910) posted on 5:05am Monday, November 07th, 2011
( no avatar )
This is solution to stop notification alert, but we must find the solution to work again the applet.
[Q]

Score: 0 points
Any particular reason?
#26995 by scotty (0.1991) posted on 8:05am Monday, November 07th, 2011
( no avatar )
Using the URL that get_conditions uses
[Q]






I receive this xml back
[Q]




Invalid License Key.
[Q]



Seems like the key is invalid or incorrectly formatted?
[Q]



Scott
[Q]

Score: 0.22 points (Informative)
Any particular reason?
#26996 by bobby (0.1881) posted on 8:19pm Monday, November 07th, 2011
( no avatar )



Check out that link. The license the applet was using is expired. So I created a new one I have no idea how long it will last.
[Q]



Change line 606 (or 616, depending on awn version) from
[Q]



 
__ws_key = "&prod=xoap&par=1048871467&key=12daac2f3a67cb39&link=xoap"
[Q]
 



to
[Q]



 
__ws_key = "&prod=xoap&par=1287722164&key=e11ec82daa20d876"
[Q]
 



in /usr/share/avant-window-navigator/applets/weather/weather.py and restart avant.
[Q]



Hope this works for everyone.
[Q]





original post:
[Q]




Score: 0.41 points (Informative)
Any particular reason?
#26997 by vagrale13 (0.1910) posted on 5:23am Tuesday, November 08th, 2011
( no avatar )
For me works applet again!
Thanks bobby! smile
[Q]

Score: 0 points
Any particular reason?
#26998 by scotty (0.1991) posted on 8:17am Tuesday, November 08th, 2011
( no avatar )
Excellent...
[Q]



Is there a time frame for re-applying for a license that can be automated?
[Q]

Score: 0 points
Any particular reason?
#26999 by rm06 (0.1910) posted on 5:21pm Tuesday, November 08th, 2011
( no avatar )
Thank you for the repair. Curious as to the license expiration question posted above also...
[Q]

Score: 0 points
Any particular reason?
#27000 by awnforumerror (0.2157) posted on 6:25pm Wednesday, November 09th, 2011
( no avatar )
Changing the key will fix the forecast/conditions. Thanks for that!
[Q]



If you come across this thread, but are also/instead having issues with the map/radar...
In the get_map_weather function change the map_url (~line 663) to:
map_url = "http://www.weather.com/weather/map/%s"; % location_code
[Q]



[Exclude the semicolon (;) after the double-quote (") - forum added it in there erroneously...yet another awn forum error ;)]
[Q]



*Edited at 10:53am, 12/01/11
Score: 0 points
Any particular reason?
#27071 by fermulator (0.1899) posted on 8:55am Monday, December 26th, 2011
( no avatar )
NOTE: Submitted https://bugs.launchpad.net/awn-extras/+bug/908820 for the maintainer of awn-extras to update the key for all to get the fix auto-magically.
[Q]

Score: 0 points
Any particular reason?
#27139 by rm06 (0.1910) posted on 7:11pm Thursday, January 12th, 2012
( no avatar )
Hmmm... it seems to be down again. How does one get a new license for this?
[Q]

Score: 0 points
Any particular reason?
#27188 by scotty (0.1991) posted on 9:53am Monday, January 16th, 2012
( no avatar )
It appears TWC has gone to a subscription based service.
[Q]



This applet is dead dead dead!
[Q]

Score: 0 points
Any particular reason?
#27190 by rm06 (0.1910) posted on 8:08pm Monday, January 16th, 2012
( no avatar )
That is too bad - another user suggested using Google weather on the bug report. I'm not sure if it is a viable option or not but it would be nice to have similar functionality again.
[Q]



If I had coding skills greater than that of an illiterate three year old, I would be happy to help. Unfortunately I do not:(
[Q]

Score: 0 points
Any particular reason?
#27197 by Dodgers123 (0.1893) posted on 12:12pm Thursday, January 19th, 2012
( no avatar )
In my weather.py I changed line 636, line 650 and line 682 where it reads "xoap" to "xml" and this works without problems for me. I ran this on the last update to weather applet and the latest update to weather applet as well. If it's legal or not I don't know (in regard to subscriptions) but it works.
[Q]



Best regards,
[Q]



Johnny.
[Q]



*Edited at 12:16pm, 01/19/12
Score: 0.41 points (Informative)
Any particular reason?
#27198 by rm06 (0.1910) posted on 6:13pm Thursday, January 19th, 2012
( no avatar )
Nice work, mine is functioning again. Thanks!
[Q]

Score: 0 points
Any particular reason?
#27204 by scotty (0.1991) posted on 6:52am Friday, January 20th, 2012
( no avatar )
Excellent! Works like a charm!
[Q]

Score: 0 points
Any particular reason?
#27205 by Dodgers123 (0.1893) posted on 9:00am Friday, January 20th, 2012
( no avatar )
You are very welcome, glad I could help out.
[Q]

Score: 0 points
Any particular reason?
#27207 by awnforumerror (0.2157) posted on 2:12pm Friday, January 20th, 2012
( no avatar )
In my installation, "xoap" was found 4x in weather.py:
[Q]



The first was on line 606 for __ws_key. This should NOT be changed to "xml".
[Q]



The 2nd-4th were all subdomain name's in URLs: lines 626 (get_locations()), 640 (get_conditions()), and 671 (get_forecast()).
[Q]



The subdomain used in the map_url variable for the get_weather_map() function should remain as "www".
[Q]

Score: 0 points
Any particular reason?
#27208 by vagrale13 (0.1910) posted on 3:27pm Saturday, January 21st, 2012
( no avatar )
Works for me too!
For me are other lines (593 - 607 - 638).
[Q]



Easy way to find the lines, just hit Ctlr+H
search for http://xoap.weather.com/
and change to http://xml.weather.com/
[Q]

Score: 0 points
Any particular reason?
#27239 by pilzgrow (0.1877) posted on 2:26pm Tuesday, January 31st, 2012
( no avatar )
@Dodger123-
great trick - now I don't need to go out anymore to experience, how cold it is.
Just like to mention, that I needed to change the license key and to exchange the 3 'Xoap' to 'xml'.
[Q]



greets from frozen Germany pilzgrow
[Q]

Score: 0 points
Any particular reason?
Thread Listing » AWN Applets » Weather applet stop working

Post A Reply:

Powered by Metaforum ©2004-2012
Get your own Free AJAX Forum Messageboard by visiting the offical site.
.