mrgmarsh / wfrog

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

WH 3080 issue 66 enhancement #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
Last week I download csv version of pywws and wfrog. Newest version correctly 
and stable support my WH3080, but not read uv index and illuminace. 

Well I try add some simple support to !wh1080 driver and add after wind ave 
                   if data['uv'] is not None:
                        e = generate_event('uv')
                        e.value = (data['uv'])
                        send_event(e)

                    if data['illuminance'] is not None:
                        e = generate_event('illuminance')
                        e.value = (data['illuminance'])
                        send_event(e)

This work for UV in my station http://flyingbytes.pl:7680

I add to  wunderground.py after utctime
 'utctime' : LastFormula('utctime'),
 'uv' : LastFormula('uv_index') } }
and after windgustdir

'windgustdir' : data['gust_deg'][index],
  # <float> uv: between 1 and 14
   'UV' : int(data['uv'][index])}

This seams work too 
2011-08-03 11:17:03,120 INFO [renderer.wunderground] Initializing Wunderground 
publisher (station IMAU014210)
2011-08-03 11:17:03,125 INFO [renderer.wunderground] Publishing Wunderground 
data (normal server): {'tempf': 75.379999999999995
, 'dewpoint': 54.859999999999999, 'rainin': 0.0, 'winddir': 97.799999999999997, 
'pressure': 30.218049000000001, 'windspeed': 3.
8156499999999998, 'rainday': 0.0, 'windgust': 8.3046500000000005, 'dateutc': 
'2011-08-03 08:52:23', 'UV': 14, 'humidity': 49.0,
 'windgustdir': 180.0}
2011-08-03 11:17:03,833 INFO [renderer.wunderground] Result Wunderground 
publisher: (200, 'OK', 'success\n')

but I don't have experience to add illumination chart and numerical data to 
wfrender 

it is possible to add this chart and data to wfrog ?
in attachment is my small change to last svn wfrog, I add WH3080 class station 
and add illuminance to collector aggregator. This change don't work propely ( 
IndexError: list index out of range) but make correct wfrog.csv

evening
1312306722,2011-08-02 
19:38:42,22.3,73.0,2.0,315.0,4.4,315.0,17.2,0.0,0.0,1020.8,1,6176
1312307543,2011-08-02 
19:52:23,21.5,76.0,2.9,279.5,4.1,315.0,17.1,0.0,0.0,1020.9,0,4157
1312308163,2011-08-02 
20:02:43,20.7,79.0,2.4,315.0,3.7,315.0,16.9,0.0,0.0,1020.9,0,3362
1312308790,2011-08-02 
20:13:10,20.0,82.0,2.0,310.4,3.1,270.0,16.8,0.0,0.0,1020.9,0,1341

day
1312365286,2011-08-03 
11:54:46,24.6,47.0,2.5,76.9,5.4,45.0,12.5,0.0,0.0,1023.3,9,111134
1312365910,2011-08-03 
12:05:10,24.6,47.0,2.5,153.0,4.1,90.0,12.5,0.0,0.0,1023.3,14,115259

For enhancement it is possible add customaisation charts view for enable 
disable charts. Some station have vu index and etc some not. Chart is a box on 
grid/table so simple config look like this

<temp_dev><humidity><presure><wind_gust><wind_dir><rain><rain_rate><uv>
<enable>  <disable> <enable> <enable>   <disable> <enable> <enable>  <disable>

and when disable draw empty box

Sorry for new issue but I can't reopen issue 66
Marcin Kowalik
mkowalik@flyingbytes(dot)pl

Original issue reported on code.google.com by lulek2...@gmail.com on 3 Aug 2011 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
I have a WH 3081 Fine Offset Weather Station.
pywws successfully reads the UV and Illuminance values.
I would also like the see these values on wfrog thanks.

Original comment by warren.c...@gmail.com on 5 May 2012 at 12:57

GoogleCodeExporter commented 9 years ago
Well today I add experimental support for wh3080. You can see it on my serwer 
http://ceres.flyingbytes.pl:7680/
and export to wunderground with UV and solarradiation
2012-05-09 15:10:30,715 INFO [renderer.wunderground] Publishing Wunderground 
data (normal server): {'dateutc': '2012-05-09 12:59:52', 'solarradiation': 
117.8848, 'tempf': 72.680000000000007, 'dewpoint': 43.519999999999996, 'UV': 
14, 'humidity': 35.0, 'winddir': 44, 'pressure': 30.164895000000001, 
'windspeed': 4.4889999999999999, 'windgust': 9.8757999999999999, 'windgustdir': 
45}
2012-05-09 15:10:32,085 INFO [renderer.wunderground] Result Wunderground 
publisher: (200, 'OK', 'success\n')

If ewerything will be work  I add attach with my work

Original comment by lulek2...@gmail.com on 9 May 2012 at 1:14

GoogleCodeExporter commented 9 years ago
uv is supported. solar radiation is not yet supported but can be added easily. 
Actually I've just ordered a solar radiation sensor for my Vantage Pro and soon 
I will have the same need to add support for it.

Original comment by jordi.pu...@gmail.com on 9 May 2012 at 7:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well, I upload my modification. Modyfication keyword is illuminance, illum, 
solar_rad. I include mysql schema too.

Original comment by lulek2...@gmail.com on 10 May 2012 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
Solved in revisions 911 and 912. Based on patch submitted by lulek2007.

Original comment by jordi.pu...@gmail.com on 26 Aug 2012 at 4:45