mrgmarsh / wfrog

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

Parsing error on WMR928nx #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The indoor temperature/humidity/pressure sensor is not logged whenever indoor 
temperature is below 8ºC, approx. Whenever indoor temperature is higher, the 
sensor works fine.

I'm seeing this error on wflogger.log:

2013-02-15 10:22:05,375 ERROR [station.wmr928nx] WMR928NX reader exception
Traceback (most recent call last):
  File "/usr/lib/wfrog/wfdriver/station/wmr928nx.py", line 102, in run
    self._run(ser)
  File "/usr/lib/wfrog/wfdriver/station/wmr928nx.py", line 182, in _run
    self.parse_record(input_buffer[startSep + 2 : endSep])
  File "/usr/lib/wfrog/wfdriver/station/wmr928nx.py", line 210, in parse_record
    record_parser(record)
  File "/usr/lib/wfrog/wfdriver/station/wmr928nx.py", line 297, in _parse_console_record
    #           dewPoint = self._decode_bcd(record[45])
IndexError: list index out of range

This problem affects only the indoor temperature/humidity/pressure sensor. The 
outdoor temperature/humidity sensor works OK.

As a temporary workaround, I've commented out the following 2 lines on 
wmr928nx.py (lines 296-297)
#        if record[1] & 0x10 == 0x10:
#            dewPoint = self._decode_bcd(record[45])

Now, I get readings from the sensor, albeit with no dew point.

I'm using wfrog version 0.8.2 on x86 hardware, connected to a wmr928nx via a 
usb to serial adapter.
I'm Running Linux 3.7.1, and Python 2.6.6.

Original issue reported on code.google.com by ja...@worldsensing.com on 15 Feb 2013 at 9:31

GoogleCodeExporter commented 9 years ago
Without seeing this issue I (hopefully) corrected wmr928nx.py in rev.941

Original comment by pk2...@gmail.com on 3 Mar 2013 at 5:27

GoogleCodeExporter commented 9 years ago
Good work! I originally wrote this driver, but now I no longer have a working 
WMR928NX because it broke down and cannot test anything

Original comment by jordi.pu...@gmail.com on 6 Mar 2013 at 9:33

GoogleCodeExporter commented 9 years ago
I have updated the station where I found the problem, and it's now working 
fine, so I can confirm the issue has been solved.

Keep up the good work!

Original comment by ja...@worldsensing.com on 8 Mar 2013 at 1:00