Clear Weather Screenlet

Conky

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.4

Description:
A Weather Screenlet modified from the original to look more clear and to enable the use of icon pack , you can use any icon pack compatible with weather.com , you can find many packs on deviantart.com or http://liquidweather.net/icons.php#iconsets.

by Helder Fraga aka Whise based on Weather Screenlet by robgig1088
Last changelog:

updated to be allignnable with the sidebar screenlet and to use with the manager


v3 little bigger high low temp's , so you can scale it down and still be readable

v2 , shows high low on 6 daqy forecast(optional)


Ratings & Comments

50 Comments

Meteorrock

Please update this app for myself and others. Thanks.

obriens65

Quite simply it doesn't work

ichbinwamphyri

So, I'm running Ubuntu 11.10 installed this using screenlets and when i click on start nothing happens. i click start and auto run at start up, restart and still doesn't show up. going back to screenlets it shows that the start box remains unchecked whenever i close out. Any Ideas?

Dem

I want to know if there exist any other theme for this screenlet. Thanks

italiahill77

How do you get this running? I am very very new to programing and ubuntu 9.10, so can you explain it very simply?

lrenjifo

El codigo postal para Trujillo - Peru ?? hasta donde se es "Truj 01", pero no cambia, se queda en New York :S alguna solucion ??

afterstep13

I modified the code silghtly, to give a different output design In case someone is interested here it is http://www.cmi.ac.in/~pranabendu/static/ClearWeatherScreenlet-0.5.tar.gz

weberkai

Added: def on_draw(self, ctx): calendar.setfirstweekday(calendar.MONDAY) localweekday = {"Monday":calendar.day_abbr[0],"Tuesday":calendar.day_abbr[1],"Wednesday":calendar.day_abbr[2],"Thursday":calendar.day_abbr[3],"Friday":calendar.day_abbr[4],"Saturday":calendar.day_abbr[5],"Sunday":calendar.day_abbr[6]} And changed each: self.draw_text(ctx,'<b>' +localweekday[weather[1]["day"]] + '</b>', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT) Can you modify the repos? Thanks!! Greetz from Brazil!! Weber Kai

weberkai

Forgot to mention: added also import calendar Thanks!!

mrjcarter

Any ideas on how to stretch the screenlet horizontally so that my city "Harrisonburg" is not cut off? All I see is "Harrisonbu". Thanks for the help.

gfurg

I had the same problem with my town not displaying the full name that it pulled from weather.com. I was able to fix it by editing the ClearWeatherScreenlet.py file. Search for the following line: self.draw_text(ctx,'<b>' + weather[0]["where"][:weather[0]["where"].find(',')][:10] +'</b>', -5,50, self.font.split(' ')[0], 6, self.width,pango.ALIGN_RIGHT) You will want to edit the [:10] to the number of letters in your town name, so for Harrisonburg change it [:12] After I edited it, I deleted the ClearWeatherScreenlet.pyc file and launched the screenlet again and I was in business with my full town name. Good Luck!

Jayrome

It shows only five days, and some kind of a commercial icon instead of the sixth.

cypherpunk

Seems to mostly work now. The forcast wont show the highs or lows. other than that it works now. thanks.

KingCreole

I found by googling you have to remove &prod=xoap from the URL open call in the python source. Did this, worked again :-) Obviously wheather.com changed their XML API.

KingCreole

BTW I forgot to mention: I also deleted the byte-compiled original .pyc file after changing the source. I guess without doing so the change does not take effect.

Covi

You don't need delete all "prod" var, just "d" will be enough: pro=xoap But... the terms of use of weather.com have changed, in example: the logo must be included in the output of application :S

KingCreole

I found by googling you have to remove &prod=xoap from the URL open call in the python source. Did this, worked again :-) Obviously wheather.com changed their XML API.

KingCreole

I found by googling you have to remove &prod=xoap from the URL open call in the python source. Did this, worked again :-) Obviously wheather.com changed their XML API.

mgmiller

Same problem here. Suddenly stopped working a day or so ago. It says "No Weather Information Available". I tried using the code from weather.com instead of my zip code, but this had no effect. Googling the problem reveals there is something that changed at weather.com in how they transmit the data and this version of the screenlet no longer works. Will an update be available?

thebigkevdogg

You have to change a couple lines to get it to work, the 2 urlopen(... commands. Line 135 for me (I have patched it previously though, so might not be the same line): data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&link=xoap').read() and Line 161: data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12'+'&link=xoap').read() restart the screenlet, and your golden. You can also just add +'&link=xoap' to the end of the URL's manually.

cypherpunk

Worked great for a few months...but now it cant get any forecasts for any location. I think weather.com broke the screenlet. Any fixes coming?

TeddyPicker

thanks, helped out

TeddyPicker

i input my zipcode and the screenlet shows the right town, but the forecast is off by a mile! it may be about 60 degrees outside and it says it is 9 degrees. is it using Celsius? i cant find a place to change it to Fahrenheit.

klines

On the properties page, uncheck "use metric over imperial"

Whise

i want to remind all that this package is included in the screenlets package since 0.0.12 and its improved there

Pling
0 Affiliates
Details
license
version 0.4
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Conky from Whise:

AmarokStats
Whise
last update date: 13 years ago

Score 5.3

8 Skins for today calendar Screenlet
Whise
last update date: 13 years ago

Score 5.0

Digital Clock Screenlet
Whise
last update date: 13 years ago

Score 5.0

Folderview Screenlet
Whise
last update date: 15 years ago

Score 7.7

Vnstat screenlet
Whise
last update date: 15 years ago

Score 5.0

Wiki of the day
Whise
last update date: 16 years ago

Score 5.0

Other Conky:

BCCRScreenlet
gartuz
last update date: 17 years ago

Score 5.0

Clear-enGlish Theme pack (Picframe Theme
ClearenGlish
last update date: 17 years ago

Score 4.7

EveTime
forevertheuni
last update date: 17 years ago

Score 5.0

Pikachu Theme for TuxaGoshi screenlet
someguy1
last update date: 17 years ago

Score 5.0

CurvedUbuntu theme for sidebar
LLL
last update date: 17 years ago

Score 5.0

Oblique Strategies
nickca
last update date: 17 years ago

Score 5.7