I just got a TFA KlimaLogg Pro and decided to pair it with Weewx on a Ubuntu 15.10 Zotac Zbox server. So far so good, I followed the instructions to get the driver into weewx, made the configuration changes, but when I attempt to perform the USB sync I run into error messages related to historical data:
Feb 18 19:40:10 zbox weewx[20361]: KlimaLogg: RFComm: To pair (synchronize) and preset a logger channel, press USB button until the unit beeps; then (re)start weewx immediately
Feb 18 19:40:10 zbox weewx[20361]: KlimaLogg: RFComm: generateResponse: console not paired (synchronized), attempting to pair to 0x011c
Feb 18 19:40:10 zbox weewx[20361]: KlimaLogg: RFComm: console is paired (synchronized) to device with ID 011c and logger channel 1
Feb 18 19:40:13 zbox weewx[20361]: KlimaLogg: RFComm: ToDateTime: bogus date for HistoryData1: error status in buffer
Feb 18 19:40:13 zbox weewx[20361]: KlimaLogg: RFComm: handleHistoryData: no start date known (empty database), use number stored (0)
Feb 18 19:40:13 zbox weewx[20361]: KlimaLogg: RFComm: handleHistoryData: records cached=0, records skipped=0, next=2
Feb 18 19:40:23 zbox weewx[20361]: KlimaLogg: MainThread: Scanned 0 record sets: current=2 latest=2 remaining=0
Feb 18 19:40:23 zbox weewx[20361]: KlimaLogg: MainThread: Found -1 historical records
Feb 18 19:40:23 zbox weewx[20361]: engine: Caught unrecoverable exception in engine:
Feb 18 19:40:23 zbox weewx[20361]: **** local variable 'this_ts' referenced before assignment
Feb 18 19:40:23 zbox weewx[20361]: **** Traceback (most recent call last):
Feb 18 19:40:23 zbox weewx[20361]: **** File "/usr/share/weewx/weewx/engine.py", line 861, in main
Feb 18 19:40:23 zbox weewx[20361]: **** engine.run()
Feb 18 19:40:23 zbox weewx[20361]: **** File "/usr/share/weewx/weewx/engine.py", line 154, in run
Feb 18 19:40:23 zbox weewx[20361]: **** self.dispatchEvent(weewx.Event(weewx.STARTUP))
Feb 18 19:40:23 zbox weewx[20361]: **** File "/usr/share/weewx/weewx/engine.py", line 218, in dispatchEvent
Feb 18 19:40:23 zbox weewx[20361]: **** callback(event)
Feb 18 19:40:23 zbox weewx[20361]: **** File "/usr/share/weewx/weewx/engine.py", line 519, in startup
Feb 18 19:40:23 zbox weewx[20361]: **** self._catchup(self.engine.console.genStartupRecords)
Feb 18 19:40:23 zbox weewx[20361]: **** File "/usr/share/weewx/weewx/engine.py", line 631, in _catchup
Feb 18 19:40:23 zbox weewx[20361]: **** for record in generator(lastgood_ts):
Feb 18 19:40:23 zbox weewx[20361]: **** File "/usr/share/weewx/user/kl.py", line 1896, in genStartupRecords
Feb 18 19:40:23 zbox weewx[20361]: **** store_period = int(time.time()) - this_ts
Feb 18 19:40:23 zbox weewx[20361]: **** UnboundLocalError: local variable 'this_ts' referenced before assignment
Feb 18 19:40:23 zbox weewx[20361]: **** Exiting.
Before connecting the logger I made a factory reset to ensure there are no historical data points that could mess things up. However, there still appears to be some bogus data.
Has anyone ever seen a similar behavior? Is it me being too stupid to get the sync up or am I simply missing a specific python package perhaps?
Any help is greatly appreciated. Thanks!