Image 01
profile-image

Senth

Matteus Magnusson
plasma_pyweather

Plasma 4 Widgets 53 comments

Score 60.9%
Jul 09 2010
in weatherInfo.py add:
import sys, urllib, urllib2, codecs

on line 32 change:
sock = urllib.urlopen(strUrl)
to
sock = urllib2.urlopen(strUrl,timeout=15)


In addition because pyWeather polled googles api too often (every 30sec) I got blocked, so I changed the polling interval to 15 minutes in main.py

main.py:
#self.timer.start(0.5*60000)
self.timer.start(15 * 60 * 1000) #min * sec * ms - Sep 10 2012
translatoid

Plasma 4 Widgets
by dridk

Score 68.0%
Aug 15 2010
Wanta

Fonts
by gluk

Score 50.0%
Aug 15 2010