Gary,

Good catch!

This error happens only when you have an additional Davis thermo/hygro 
station. That's why we didn't discover the bug ourselves.

Cheers,
Luc

On Wednesday, 5 July 2017 09:07:49 UTC-3, gjr80 wrote:
>
> Hi,
>
> I have not used the meteostick driver but assuming you are using 
> meteostick.py from the current master branch from Matthew's GitHub 
> weewx-meteostick 
> repo <https://github.com/matthewwall/weewx-meteostick>, I think lines 
> 1030 and 1031 need some attention: 
>
>                         dbg_parse(2, "humidity_raw=0x%03x value=%s" %
>                                   (humidity_raw, data['humidity']))
>
> something like this might work better:
>
>                         dbg_parse(2, "humidity_raw=0x%03x value=%s" %
>                                   (humidity_raw, humidity))
>
> Gary
>
> On Wednesday, 5 July 2017 20:49:42 UTC+10, Ruben Navarro Huedo wrote:
>>
>> Hello friends:
>>
>> We are testing meteostick with last weewx and last meteostick driver.
>> We get this error:
>>
>> Jul  5 12:37:13 raspberrypi weewx[1994]: engine: Caught unrecoverable 
>> exception in engine:
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **  'humidity'
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **  Traceback (most recent 
>> call last):
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **    File 
>> "/usr/share/weewx/weewx/engine.py", line 871, in main
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **      engine.run()
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **    File 
>> "/usr/share/weewx/weewx/engine.py", line 187, in run
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **      for packet in 
>> self.console.genLoopPackets():
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **    File 
>> "/usr/share/weewx/user/meteostick.py", line 292, in genLoopPackets
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **      data = 
>> self.station.parse_readings(readings, self.rain_per_tip)
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **    File 
>> "/usr/share/weewx/user/meteostick.py", line 656, in parse_readings
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **      rain_per_tip)
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **    File 
>> "/usr/share/weewx/user/meteostick.py", line 1031, in parse_raw
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **      (humidity_raw, 
>> data['humidity']))
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **  KeyError: 'humidity'
>> Jul  5 12:37:13 raspberrypi weewx[1994]:     **  Exiting.
>>
>> How could we solve it?
>>
>> Thank's a lot.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to