
Karamba Weather Modified
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
This is basically a modification of the karamba weather theme by Rodion.
The changes I've made are:
o Modified output so two word forcasts split onto two lines so there is no overlap
o Added time conversion so last update time appears in local time
o Added Wind speed and direction
o Enlarged display to fit everthing
o Output lines have been modified, so check output of k_weather.py
The installation instructions have not changed (much):
o Installation Instructions
- Visit http://weather.interceptvector.com/list.php to find the URL of your home city.
- Copy the full URL to k_weather.py, at the 'url =' line.
- append &celsius=true to end of url for celsius
- Place k_weather.py somewhere in your path and run it to be sure that it works.
janet
16 years ago
Report
rrichie
17 years ago
when i run it, it fails. Here is the traceback :
Traceback (most recent call last):
File "./k_weather.py", line 35, in ?
dom = parseString(xmlweather)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 1925, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: junk after document element: line 2, column 0
Can anyone help me?
Report
Rodion
17 years ago
Report
brennanmh
17 years ago
alot easier anyway.
Take what you want, discard the rest. The timezone thing is a bit of a hack. There might be a better way. I haven't used python in years so I'm a bit rusty.
-Brennan
Report