Image 01
profile-image

stezz

Stefano Stefano Helsinki, Finland
Clear Weather Screenlet

Conky by Whise 50 comments

Sorry the other way around... the patch is this :D

Quote:--- ClearWt.py 2007-09-20 20:23:00.000000000 +0300
+++ ClearWeatherScreenlet.py 2007-11-02 14:22:25.000000000 +0200
@@ -44,7 +44,7 @@
use_metric = True
show_daytemp = True
mini = False
-
+ proxies = 'http://nokes.nokia.com:8080'
latest = [] ## the most recent settings we could get...
latestHourly = []

@@ -68,6 +68,7 @@
'The weather widget settings')
self.add_option(StringOption('Weather', 'ZIP',
str(self.ZIP), 'ZIP', 'The ZIP code to be monitored taken from Weather.com'), realtime=False)
+ self.add_option(StringOption('Weather', 'Proxy', str(self.proxies), 'Proxy','Network proxy to be used'), realtime=False)
self.add_option(BoolOption('Weather', 'show_error_message',
bool(self.show_error_message), 'Show error messages',
'Show an error message on invalid location code'))
@@ -129,7 +130,7 @@
unit = 'm'
else:
unit = 's'
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit, proxies={'http': self.proxies}).read()
forecast = []

dcstart = data.find('<loc ')
@@ -151,7 +152,7 @@
unit = 'm'
else:
unit = 's'
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12').read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12', proxies={'http': self.proxies}).read()
hforecast = []

for x in range(8):
- Nov 02 2007
Clear Weather Screenlet

Conky by Whise 50 comments

Hi, I'm sorry I wanted to vote good but I clicked on "bad" :( (is there a way to change the vote?)

I'm behind a proxy and the gnome default proxy setting are not taken in consideration (maybe because I have an automatic proxy config file?)

So I made this small patch for who has the same problem. Unfortunately you have to set the "proxies" value before starting the screenlets otherwise it hangs forever.

Quote:--- ClearWeatherScreenlet.py 2007-11-02 14:22:25.000000000 +0200
+++ ClearWeatherScreenlet.py 2007-11-02 14:29:32.000000000 +0200
@@ -44,7 +44,7 @@
use_metric = True
show_daytemp = True
mini = False
- proxies = '' # Put your proxy here
+
latest = [] ## the most recent settings we could get...
latestHourly = []

@@ -68,7 +68,6 @@
'The weather widget settings')
self.add_option(StringOption('Weather', 'ZIP',
str(self.ZIP), 'ZIP', 'The ZIP code to be monitored taken from Weather.com'), realtime=False)
- self.add_option(StringOption('Weather', 'Proxy', str(self.proxies), 'Proxy','Network proxy to be used'), realtime=False)
self.add_option(BoolOption('Weather', 'show_error_message',
bool(self.show_error_message), 'Show error messages',
'Show an error message on invalid location code'))
@@ -130,7 +129,7 @@
unit = 'm'
else:
unit = 's'
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit, proxies={'http': self.proxies}).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit).read()
forecast = []

dcstart = data.find('<loc ')
@@ -152,7 +151,7 @@
unit = 'm'
else:
unit = 's'
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12', proxies={'http': self.proxies}).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12').read()
hforecast = []

for x in range(8):


apply it with patch -p0
Stezz - Nov 02 2007
Hard Disk Temperature Monitor

Karamba & Superkaramba by juandme 10 comments

hddtemp -n /dev/sda
WARNING: Drive /dev/sda doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sda: WDC WD800JD-75MSA1: 46°C or °F

but I don't see anything in the widget... ? - Apr 11 2006