On Monday, January 22, 2018 at 6:48:27 AM UTC-5, Ruben Navarro Huedo wrote: > > Hello: > > Testing last WMR300 driver: > > Jan 22 12:45:42 MeteoElche weewx[1500]: wmr300: dump history > Jan 22 12:45:42 MeteoElche weewx[1500]: wmr300: reading records since > 2018-01-22 12:45:42 CET (1516621542) (last_index=21345 latest_index=21346) > Jan 22 12:45:47 MeteoElche weewx[1500]: engine: Caught unrecoverable > exception in engine: > Jan 22 12:45:47 MeteoElche weewx[1500]: **** list index out of range > Jan 22 12:45:47 MeteoElche weewx[1500]: **** Traceback (most recent > call last): > Jan 22 12:45:47 MeteoElche weewx[1500]: **** File > "/usr/share/weewx/weewx/engine.py", line 871, in main > Jan 22 12:45:47 MeteoElche weewx[1500]: **** engine.run() > Jan 22 12:45:47 MeteoElche weewx[1500]: **** File > "/usr/share/weewx/weewx/engine.py", line 187, in run > Jan 22 12:45:47 MeteoElche weewx[1500]: **** for packet in > self.console.genLoopPackets(): > Jan 22 12:45:47 MeteoElche weewx[1500]: **** File > "/usr/share/weewx/weewx/drivers/wmr300.py", line 1263, in genLoopPackets > Jan 22 12:45:47 MeteoElche weewx[1500]: **** self.dump_history() > Jan 22 12:45:47 MeteoElche weewx[1500]: **** File > "/usr/share/weewx/weewx/drivers/wmr300.py", line 1147, in dump_history > Jan 22 12:45:47 MeteoElche weewx[1500]: **** for rec in > self.get_history(time.time(), clear_logger=True): > Jan 22 12:45:47 MeteoElche weewx[1500]: **** File > "/usr/share/weewx/weewx/drivers/wmr300.py", line 1160, in get_history > Jan 22 12:45:47 MeteoElche weewx[1500]: **** > self.init_history(clear_logger) > Jan 22 12:45:47 MeteoElche weewx[1500]: **** File > "/usr/share/weewx/weewx/drivers/wmr300.py", line 1089, in init_history > Jan 22 12:45:47 MeteoElche weewx[1500]: **** if buf is None or > buf[0] != 0x41: > Jan 22 12:45:47 MeteoElche weewx[1500]: **** IndexError: list index > out of range > Jan 22 12:45:47 MeteoElche weewx[1500]: **** Exiting. >
ruben, thank you for continuing to help with the wmr300 driver! please install version 0.19rc4: https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/drivers/wmr300.py this version fixes the corner case you discovered, as well as two similar conditions when waiting for ACK from the hardware. m -- 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.
