Issue 66 in wfrog: WH-3080 driver problem

10 views
Skip to first unread message

wf...@googlecode.com

unread,
Feb 14, 2011, 12:04:26 PM2/14/11
to wfrog-a...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 66 by lulek2...@gmail.com: WH-3080 driver problem
http://code.google.com/p/wfrog/issues/detail?id=66

What steps will reproduce the problem?
1.software: debian squueze 6.0, pywws-10.12_r323.tar.gz or svn source,wfrog
0.7 compiled from source, hardware WH3080, Asus P5W64 WS Pro 975

What is the expected output? What do you see instead?
If I use wfrog with -d parametr (simulation) everything work fine, but if I
try use pywws drivers the program crash.

root@flyingbytes:/usr/bin# ./wfrog -v
2011-02-14 18:01:07,628 ERROR [station.wh1080] tuple indices must be
integers, not str
2011-02-14 18:01:51,756 ERROR [station.wh1080] tuple indices must be
integers, not str
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/wfrog/wfdriver/wfdriver.py", line 117, in run
self.station.run(gen, self.enqueue_event)
File "/usr/lib/wfrog/wfdriver/station/wh1080.py", line 46, in run
for data in station.live_data():
File "/usr/lib/wfrog/wfdriver/station/pywws/WeatherStation.py", line 261,
in live_data
new_data = self.get_data(old_ptr, unbuffered=True)
File "/usr/lib/wfrog/wfdriver/station/pywws/WeatherStation.py", line 342,
in get_data
return _decode(self.get_raw_data(ptr, unbuffered), self.reading_format)
File "/usr/lib/wfrog/wfdriver/station/pywws/WeatherStation.py", line 137,
in _decode
result[key] = _decode(raw, value)
File "/usr/lib/wfrog/wfdriver/station/pywws/WeatherStation.py", line 156,
in _decode
result = raw[pos]
IndexError: tuple index out of range

It is possible or You planing use http://meteolinger.lowlevel.cz/tracker
wwsr driver writen in C++ and it working perfectly with wh3080 water
station ?

mkow...@flyingbytes.pl

wf...@googlecode.com

unread,
Feb 14, 2011, 1:32:01 PM2/14/11
to wfrog-a...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 40

Comment #1 on issue 66 by laurent....@gmail.com: WH-3080 driver problem
http://code.google.com/p/wfrog/issues/detail?id=66

Seems the same as Issue 40. Please try the version from the trunk. Re-open
the issue if it does not help.

wf...@googlecode.com

unread,
Feb 15, 2011, 2:34:06 PM2/15/11
to wfrog-a...@googlegroups.com

Comment #2 on issue 66 by lulek2...@gmail.com: WH-3080 driver problem
http://code.google.com/p/wfrog/issues/detail?id=66

Hi,

I try
http://wfrog.googlecode.com/svn-history/r636/trunk/wfdriver/station/wh1080.py
file but without correct my problem. I think is a driver interrupt problem
in pywws python modules (if I connect my station without other usb devices
seems to work correct). I add in pyyws project issue now without answer
http://code.google.com/p/pywws/issues/detail?id=49

So I repeat a question, it is planned in wfrog use stable driver write i
C++ http://meteolinger.lowlevel.cz/tracker who work correct with other usb
devices?


wf...@googlecode.com

unread,
Feb 15, 2011, 3:01:31 PM2/15/11
to wfrog-a...@googlegroups.com

Comment #3 on issue 66 by laurent....@gmail.com: WH-3080 driver problem
http://code.google.com/p/wfrog/issues/detail?id=66

You're right, the issue is not the same and is due to pywws probably not
tested against WH3080 (the doc does not mention this station). Filing an
issue at pywws was the right move, indeed.

About integration with meteolinger, the best way would be to write a
meteolinger-based adapter issuing WESTEP events (http://www.westep.org).
WESTEP aims at being a common language between station drivers and weather
softwares. It is quite straightforward to implement, as you can see in the
doc. It would even be a good idea to adapt wwrs.c directly to be able to
work as a WESTEP stdout driver.

As we (wfrog team) don't own a WHxx station, it is difficult for us to
write this adapter but I can give some support answering questions about
WESTEP.

wf...@googlecode.com

unread,
Aug 3, 2011, 6:19:52 AM8/3/11
to wfrog-a...@googlegroups.com

Comment #4 on issue 66 by lulek2...@gmail.com: WH-3080 driver problem
http://code.google.com/p/wfrog/issues/detail?id=66

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

Marcin Kowalik
mkowalik@flyingbytes(dot)pl

Attachments:
wfrog_uv_ill.tar.gz 330 KB

wf...@googlecode.com

unread,
Nov 21, 2013, 5:16:32 AM11/21/13
to wfrog-a...@googlegroups.com

Comment #5 on issue 66 by beijy1...@gmail.com: WH-3080 driver problem
http://code.google.com/p/wfrog/issues/detail?id=66

Hi!
I install the wfrog Software and then i copy the wfrog_uv_ill.tar.gz Data
in the /etc and /usr Directory.

I have at the http://flyingbytes:7680 only UV Chart and no Illuminance
Chart at the Random Test Generator??

What is wrong?? Chmod?? I don´t know

Many Many Thx
Chris


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages