Closed GoogleCodeExporter closed 9 years ago
Original comment by laurent....@gmail.com
on 25 Aug 2010 at 8:59
We should have a look at pyWeather implementation of weatherunderground
uploader to see if we can adapt it as a wfrog renderer.
Original comment by jordi.pu...@gmail.com
on 26 Aug 2010 at 5:11
They look quite reusable as is:
http://github.com/cmcginty/PyWeather/blob/master/weather/services/wunderground.p
y
http://github.com/cmcginty/PyWeather/blob/master/weather/services/pws.py
The base class:
http://github.com/cmcginty/PyWeather/blob/master/weather/services/_base.py
The idea is to wrap them inside a renderer as I started for the VantagePro
station driver:
http://code.google.com/p/wfrog/source/browse/trunk/wfdriver/station/vantagepro.p
y
A huge quality of PyWeather is that it comes as a python library, installable
from pypi:
sudo easy_install weather
We can thus reuse the code by instanciating classes instead of copy-paste.
PyWeather becomes a dependency of wfrog for VantagePro users and wug/pws upload.
Original comment by laurent....@gmail.com
on 26 Aug 2010 at 6:12
What about the python version? Is it compatible with Python 2.5? I haven't had
time to check it throughly, but I've seen an import __future__ ...
Original comment by jordi.pu...@gmail.com
on 27 Aug 2010 at 7:58
This import seems ok in 2.5:
http://docs.python.org/whatsnew/2.5.html#pep-328-absolute-and-relative-imports
Original comment by laurent....@gmail.com
on 27 Aug 2010 at 9:12
Original comment by jordi.pu...@gmail.com
on 11 Sep 2010 at 8:52
Wunderground support added. pws next ...
Original comment by jordi.pu...@gmail.com
on 6 Oct 2010 at 10:16
pws support added.
Original comment by jordi.pu...@gmail.com
on 19 Oct 2010 at 9:53
Original issue reported on code.google.com by
jordi.pu...@gmail.com
on 22 Aug 2010 at 7:44