
Clear Weather Screenlet
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
12 years ago
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)
12 years ago
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)
Meteorrock
8 years ago
Report
obriens65
8 years ago
Report
ichbinwamphyri
9 years ago
Report
Dem
10 years ago
Thanks
Report
italiahill77
11 years ago
Report
lrenjifo
11 years ago
hasta donde se es "Truj 01", pero no cambia, se queda en New York :S
alguna solucion ??
Report
afterstep13
11 years ago
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
Report
weberkai
11 years ago
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
Report
weberkai
11 years ago
added also
import calendar
Thanks!!
Report
mrjcarter
12 years ago
Report
gfurg
12 years ago
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!
Report
Jayrome
12 years ago
Report
cypherpunk
12 years ago
Report
KingCreole
12 years ago
Report
Covi
12 years ago
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
Report
KingCreole
12 years ago
Report
KingCreole
12 years ago
Report
KingCreole
12 years ago
Report
mgmiller
12 years ago
Report
thebigkevdogg
12 years ago
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.
Report
cypherpunk
12 years ago
Report
TeddyPicker
12 years ago
Report
TeddyPicker
12 years ago
Report
klines
12 years ago
Report
Whise
12 years ago
Report