mrgmarsh / wfrog

Automatically exported from code.google.com/p/wfrog
GNU General Public License v3.0
0 stars 0 forks source link

www.weatherunderground.com / pws / etc renderers #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a renderer to report meteo data to www.weatherunderground.com 

Original issue reported on code.google.com by jordi.pu...@gmail.com on 22 Aug 2010 at 7:44

GoogleCodeExporter commented 9 years ago

Original comment by laurent....@gmail.com on 25 Aug 2010 at 8:59

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by jordi.pu...@gmail.com on 11 Sep 2010 at 8:52

GoogleCodeExporter commented 9 years ago
Wunderground support added. pws next ...

Original comment by jordi.pu...@gmail.com on 6 Oct 2010 at 10:16

GoogleCodeExporter commented 9 years ago
pws support added.

Original comment by jordi.pu...@gmail.com on 19 Oct 2010 at 9:53