PDA

View Full Version : [ubuntu] GoodWeather desklet does not work



sergks
May 8th, 2008, 05:07 PM
After few updates in Hardy my GoodWeather desklet stopped working. It's always showing 'Loading' sign. Can somebody help me?
Also (it might be related), Gnome clock applet does not show weather but weather applet is working fine.

sergks
May 8th, 2008, 06:48 PM
Thanks to Kevbert post located here: http://ubuntuforums.org/showpost.php?p=4909608&postcount=2 I found the solution.

Go to: ~/.gdesklets/Sensors/GoodWeather and open the file __init__.py in gedit. Find the line
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&" \

and change it to:
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap&" \

mister_p_1998
May 8th, 2008, 07:37 PM
Thanks to Kevbert post located here: http://ubuntuforums.org/showpost.php?p=4909608&postcount=2 I found the solution.

Go to: ~/.gdesklets/Sensors/GoodWeather and open the file __init__.py in gedit. Find the line
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&" \

and change it to:
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap&" \

Works on Hardy, doesnt work on Dapper. any clue why?

sergks
May 8th, 2008, 10:44 PM
Works on Hardy, doesnt work on Dapper. any clue why?

Sorry. Do not know why, do not have Dapper installed. Dapper might have different version of gDesklets. But the idea is the same. Weather.com recently changed the access to the database and weather desklets stoped working. You have to find the file with weather source and change it.

mister_p_1998
May 12th, 2008, 10:02 AM
Sorry. Do not know why, do not have Dapper installed. Dapper might have different version of gDesklets. But the idea is the same. Weather.com recently changed the access to the database and weather desklets stoped working. You have to find the file with weather source and change it.

Working now on Dapper, I just pasted the end of the changes onto my file rather than pasting the whole entry in as new. looked like a formatting problem.

AndréPayão
May 21st, 2008, 06:09 AM
Here i edited like this, and worked :

"http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap&" \
"par=1003832479&key=bb12936706a2d601"

i found solution in this topic : http://ubuntuforums.org/showthread.php?t=784053&highlight=weather

The Nothing
June 16th, 2008, 02:04 PM
Adding link=xoap& worked like a charm .. thanks :)

Carl_Barks
July 11th, 2008, 03:33 AM
worked like a charm! Thnx guys!

MFelkins
July 13th, 2008, 12:50 AM
Thanks to Kevbert post located here: http://ubuntuforums.org/showpost.php?p=4909608&postcount=2 I found the solution.

Go to: ~/.gdesklets/Sensors/GoodWeather and open the file __init__.py in gedit. Find the line
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&" \

and change it to:
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap&" \
Worked for me. But, as I am a noob at this, it took me a while to find the file. I did not realize that it would be under my profile and hidden. I found it here:

/home/mike/.gdesklets/Sensors/GoodWeather

Your milage may very. How do I change the background on the applets?

matiasborra
November 22nd, 2008, 03:07 PM
I just installed Ubuntu 8.10 (Intrepid Ibex) and I made it work with the modification proposed:
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap&" \
Thanks.

niedxwiedx
December 29th, 2008, 01:47 PM
Does not work for me. (Ubuntu 8.04, gDesklets 0.35.4). I have obtained location code for my city (also tried different codes), and modified WEATHER_SOURCE in __init__.py file. And i still see "N/A loading". Any clues?:confused:

sdtootle
February 13th, 2009, 04:06 AM
WEATHER_SOURCE = "http://xoap.weather.com/weather/local/" \
"%(weather_code)s?cc=*&dayf=5&link=xoap&" \
"prod=xoap&par=1003832479&key=bb12936706a2d601" \

This worked for me. if you are in a US area, just put in the zip code. that worked for me.

labinnsw
June 13th, 2009, 02:34 PM
Thanks. This worked after deleting some spaces.

Change from:

"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap& " \
to

"%(weather_code)s?cc=*&dayf=5&prod=xoap&link=xoap&"\

niedxwiedx
September 19th, 2009, 09:46 PM
I confirm it's now working, i had an error in my __init__.py file:)