Thanks. Just to give the complete picture could you post a sanitised
weewx.conf, that might be easier done using the output from wee_debug
<http://weewx.com/docs/utilities.htm#wee_debug_utility>. If using wee_debug
just check the output for sensitive info before posting, wee_debug should
obfuscate such info but it’s not perfect.
Gary
On Friday, 21 May 2021 at 08:27:44 UTC+10 weerman wrote:
> Hi,
>
> Thanks for the advice, but unfortunality it didn't help. Still get the
> wx_bindings error again.
>
> May 21 00:21:54 raspberrypi weewx-klp[23811] INFO __main__: Initializing
> weewx version 4.5.1
> May 21 00:21:54 raspberrypi weewx-klp[23811] INFO __main__: Using Python
> 3.5.3 (default, Jan 19 2017, 14:11:04) #012[GCC 6.3.0 20170124]
> May 21 00:21:54 raspberrypi weewx-klp[23811] INFO __main__: Platform
> Linux-4.9.41-v7+-armv7l-with-debian-9.1
> May 21 00:21:54 raspberrypi weewx-klp[23811] INFO __main__: Locale is
> 'de_DE.UTF-8'
> May 21 00:21:54 raspberrypi weewx-klp[23811] INFO __main__: PID file is
> /var/run/weewx-klp.pid
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO __main__: Using
> configuration file /etc/weewx/klp.conf
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO __main__: Debug is 1
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG __main__: Initializing
> engine
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO weewx.engine: Loading
> station type KlimaLogg (user.kl)
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: driver version
> is 1.4.2
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: channel is 1
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: frequency is EU
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: using sensor
> map for kl schema
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: sensor map is:
> {'temp0': 'Temp0', 'temp7': 'Temp7', 'temp8': 'Temp8', 'humidity8':
> 'Humidity8', 'temp6': 'Temp6', 'batteryStatus0': 'BatteryStatus0',
> 'humidity7': 'Humidity7', 'temp3': 'Temp3', 'batteryStatus4':
> 'BatteryStatus4', 'humidity2': 'Humidity2', 'rxCheckPercent':
> 'SignalQuality', 'batteryStatus8': 'BatteryStatus8', 'batteryStatus3':
> 'BatteryStatus3', 'batteryStatus7': 'BatteryStatus7', 'temp5': 'Temp5',
> 'temp4': 'Temp4', 'humidity1': 'Humidity1', 'batteryStatus5':
> 'BatteryStatus5', 'humidity4': 'Humidity4', 'humidity5': 'Humidity5',
> 'batteryStatus2': 'BatteryStatus2', 'batteryStatus6': 'BatteryStatus6',
> 'temp2': 'Temp2', 'batteryStatus1': 'BatteryStatus1', 'humidity0':
> 'Humidity0', 'humidity6': 'Humidity6', 'temp1': 'Temp1', 'humidity3':
> 'Humidity3'}
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: catchup limited
> to 51200 records
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: timing is 300
> ms (0.300 s)
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl:
> CommunicationService.init
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: comm_interval
> is 8
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: logger_channel
> is 1
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: found
> transceiver at bus= device=
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: manufacturer:
> b'LA CROSSE TECHNOLOGY'
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: product:
> b'Weather Direct Light Wireless Device'
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: interface: 0
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: claiming USB
> interface 0
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: frequency
> standard: EU
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: base frequency:
> 868300000
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: frequency
> correction: 96416 (0x178a0)
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: adjusted
> frequency: 910574957 (0x3646456d)
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: frequency
> registers: 36 46 45 6d
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: transceiver
> identifier: 25 (0x0019)
> May 21 00:21:54 raspberrypi weewx-klp[23816] INFO user.kl: transceiver
> serial: 01010312190025
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG user.kl: startRFThread:
> spawning RF thread
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG user.kl: setting up rf
> communication
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdTimeSynch
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdTimeSynch
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdConvert
> May 21 00:21:55 raspberrypi weewx-klp[23816] INFO weewx.engine: StdConvert
> target unit is 0x1
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdConvert
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdCalibrate
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdCalibrate
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdQC
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdQC
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.wxservices.StdWXCalculate
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG user.kl: stopRFThread:
> waiting for RF thread to terminate
> May 21 00:22:55 raspberrypi weewx-klp[23816] ERROR user.kl: unable to
> terminate RF thread after 60 seconds
> May 21 00:22:55 raspberrypi weewx-klp[23816] DEBUG user.kl: releasing USB
> interface
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: Caught
> unrecoverable exception:
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> Unknown data binding ''wx_binding''
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> Traceback (most recent call last):
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewx/manager.py", line 686, in
> get_manager_dict_from_config
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> manager_dict = dict(config_dict['DataBindings'][data_binding])
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/usr/lib/python3/dist-packages/configobj.py", line 554, in
> __getitem__
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> val = dict.__getitem__(self, key)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> KeyError: 'wx_binding'
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> During handling of the above exception, another exception occurred:
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> Traceback (most recent call last):
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewxd", line 151, in main
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> engine = weewx.engine.StdEngine(config_dict)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewx/engine.py", line 93, in __init__
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> self.loadServices(config_dict)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewx/engine.py", line 161, in loadServices
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> obj = weeutil.weeutil.get_object(svc)(self, config_dict)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewx/wxservices.py", line 91, in __init__
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> self.db_manager =
> engine.db_binder.get_manager(data_binding=data_binding, initialize=True)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewx/manager.py", line 583, in get_manager
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> default_binding_dict=defaults)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> File "/home/weewx/bin/weewx/manager.py", line 688, in
> get_manager_dict_from_config
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> raise weewx.UnknownBinding("Unknown data binding '%s'" % e)
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> weewx.UnknownBinding: Unknown data binding ''wx_binding''
> May 21 00:22:55 raspberrypi weewx-klp[23816] CRITICAL __main__: ****
> Exiting.
>
>
> Here's is the debug log file
>
>
> May 20 23:57:53 raspberrypi weewx-klp[17428] DEBUG __main__: Initializing
> engine
> May 20 23:57:53 raspberrypi weewx-klp[17428] DEBUG user.kl: using sensor
> map for kl schema
> May 20 23:57:53 raspberrypi weewx-klp[17428] DEBUG user.kl:
> CommunicationService.init
> May 20 23:57:53 raspberrypi weewx-klp[17428] DEBUG user.kl: claiming USB
> interface 0
> May 20 23:57:53 raspberrypi weewx-klp[17428] DEBUG user.kl: frequency
> standard: EU
> May 20 23:57:53 raspberrypi weewx-klp[17428] DEBUG user.kl: frequency
> registers: 36 46 45 6d
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG user.kl: startRFThread:
> spawning RF thread
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG user.kl: setting up rf
> communication
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Loading
> service weewx.engine.StdTimeSynch
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdTimeSynch
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Loading
> service weewx.engine.StdConvert
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdConvert
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Loading
> service weewx.engine.StdCalibrate
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdCalibrate
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Loading
> service weewx.engine.StdQC
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdQC
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG weewx.engine: Loading
> service weewx.wxservices.StdWXCalculate
> May 20 23:57:54 raspberrypi weewx-klp[17428] DEBUG user.kl: stopRFThread:
> waiting for RF thread to terminate
> May 20 23:58:54 raspberrypi weewx-klp[17428] DEBUG user.kl: releasing USB
> interface
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG __main__: Initializing
> engine
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: using sensor
> map for kl schema
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl:
> CommunicationService.init
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: claiming USB
> interface 0
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: frequency
> standard: EU
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: frequency
> registers: 36 46 45 6d
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: startRFThread:
> spawning RF thread
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: setting up rf
> communication
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Loading
> service weewx.engine.StdTimeSynch
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdTimeSynch
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Loading
> service weewx.engine.StdConvert
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdConvert
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Loading
> service weewx.engine.StdCalibrate
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdCalibrate
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Loading
> service weewx.engine.StdQC
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdQC
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG weewx.engine: Loading
> service weewx.wxservices.StdWXCalculate
> May 21 00:07:03 raspberrypi weewx-klp[19839] DEBUG user.kl: stopRFThread:
> waiting for RF thread to terminate
> May 21 00:08:03 raspberrypi weewx-klp[19839] DEBUG user.kl: releasing USB
> interface
> May 21 00:10:41 raspberrypi weewx-klp[20807] DEBUG __main__: Initializing
> engine
> May 21 00:10:41 raspberrypi weewx-klp[20807] DEBUG user.kl: using sensor
> map for kl schema
> May 21 00:10:41 raspberrypi weewx-klp[20807] DEBUG user.kl:
> CommunicationService.init
> May 21 00:10:41 raspberrypi weewx-klp[20807] DEBUG user.kl: claiming USB
> interface 0
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG user.kl: frequency
> standard: EU
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG user.kl: frequency
> registers: 36 46 45 6d
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG user.kl: startRFThread:
> spawning RF thread
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG user.kl: setting up rf
> communication
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Loading
> service weewx.engine.StdTimeSynch
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdTimeSynch
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Loading
> service weewx.engine.StdConvert
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdConvert
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Loading
> service weewx.engine.StdCalibrate
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdCalibrate
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Loading
> service weewx.engine.StdQC
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdQC
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG weewx.engine: Loading
> service weewx.wxservices.StdWXCalculate
> May 21 00:10:42 raspberrypi weewx-klp[20807] DEBUG user.kl: stopRFThread:
> waiting for RF thread to terminate
> May 21 00:11:42 raspberrypi weewx-klp[20807] DEBUG user.kl: releasing USB
> interface
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG __main__: Initializing
> engine
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: using sensor
> map for kl schema
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl:
> CommunicationService.init
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: claiming USB
> interface 0
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: frequency
> standard: EU
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: frequency
> registers: 36 46 45 6d
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: startRFThread:
> spawning RF thread
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: setting up rf
> communication
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Loading
> service weewx.engine.StdTimeSynch
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdTimeSynch
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Loading
> service weewx.engine.StdConvert
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdConvert
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Loading
> service weewx.engine.StdCalibrate
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdCalibrate
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Loading
> service weewx.engine.StdQC
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdQC
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG weewx.engine: Loading
> service weewx.wxservices.StdWXCalculate
> May 21 00:13:32 raspberrypi weewx-klp[21592] DEBUG user.kl: stopRFThread:
> waiting for RF thread to terminate
> May 21 00:14:32 raspberrypi weewx-klp[21592] DEBUG user.kl: releasing USB
> interface
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG __main__: Initializing
> engine
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: using sensor
> map for kl schema
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl:
> CommunicationService.init
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: claiming USB
> interface 0
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: frequency
> standard: EU
> May 21 00:21:54 raspberrypi weewx-klp[23816] DEBUG user.kl: frequency
> registers: 36 46 45 6d
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG user.kl: startRFThread:
> spawning RF thread
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG user.kl: setting up rf
> communication
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdTimeSynch
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdTimeSynch
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdConvert
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdConvert
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdCalibrate
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdCalibrate
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.engine.StdQC
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Finished
> loading service weewx.engine.StdQC
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG weewx.engine: Loading
> service weewx.wxservices.StdWXCalculate
> May 21 00:21:55 raspberrypi weewx-klp[23816] DEBUG user.kl: stopRFThread:
> waiting for RF thread to terminate
> May 21 00:22:55 raspberrypi weewx-klp[23816] DEBUG user.kl: releasing USB
> interface
>
> Can someone reproduce this error?
>
> regards
>
> Georg
> [email protected] schrieb am Freitag, 21. Mai 2021 um 00:00:50
> UTC+2:
>
>> Apart from Gary's suggestions for switching on debug = 1 in weewx.conf
>> and restart ....
>>
>> the only difference I see in (those parts of weewx.conf shared) is that
>> your record_generation is set to "software" while mine is set to "hardware".
>> Not sure if this could have an impact, but it's surely worth trying
>> On 20.05.2021 23:53, weerman wrote:
>>
>> Hi,
>>
>> This is my [StdArchive] section of my klp.conf file.
>>
>>
>> ##############################################################################
>>
>> # This section is for configuring the archive service.
>>
>> [StdArchive]
>>
>> # If the station hardware supports data logging then the archive
>> interval
>> # will be downloaded from the station. Otherwise, specify it (in
>> seconds).
>> archive_interval = 300
>>
>> # If possible, new archive records are downloaded from the station
>> # hardware. If the hardware does not support this, then new archive
>> # records will be generated in software.
>> # Set the following to "software" to force software record generation.
>> record_generation = software
>>
>> # Whether to include LOOP data in hi/low statistics
>> loop_hilo = True
>>
>> # The data binding used to save archive records
>> data_binding = kl_binding
>>
>> # Whether to log successful archive operations
>> log_success = True
>>
>> # Whether to log unsuccessful archive operations
>> log_failure = True
>>
>>
>> ##############################################################################
>>
>> [email protected] schrieb am Donnerstag, 20. Mai 2021 um 23:31:07
>> UTC+2:
>>
>>> your [StdArchive] section in weewx.conf should look like this
>>>
>>> [StdArchive]
>>>
>>> # If the station hardware supports data logging then the archive
>>> interval
>>> # will be downloaded from the station. Otherwise, specify it (in
>>> seconds).
>>> archive_interval = 60
>>>
>>> # If possible, new archive records are downloaded from the station
>>> # hardware. If the hardware does not support this, then new archive
>>> # records will be generated in software.
>>> # Set the following to "software" to force software record
>>> generation.
>>> record_generation = hardware
>>>
>>> # Whether to include LOOP data in hi/low statistics
>>> loop_hilo = True
>>>
>>> # The data binding used to save archive records
>>> data_binding = kl_binding
>>>
>>> if there is still "data_binding = wx_binding", then that's the cause of
>>> the error
>>> On 20.05.2021 22:34, gjr80 wrote:
>>>
>>> Hi,
>>>
>>> What binding have you specified under [StdArchive]? You should also be
>>> looking at the startup log for the weewx-klp instance to see what bindings
>>> are being used. I am guessing this is reproducible? I would set debug = 1
>>> in the WeeWX config file used by weewx-klp and restart weewx-klp. The
>>> startup log will indicate what bindings are being used. When the error
>>> occurs we should be able to work out the context in which the binding is
>>> being used, that may give a clue. WeeWX defaults to using wx_binding if no
>>> binding is specified for some operations, so that is possibly the source of
>>> wx_binding.
>>>
>>> WeeWX should work if wx_binding is not specified (provided another
>>> binding is specified), if it doesn’t it’s a bug that should be fixed.
>>>
>>> Gary
>>> On Thursday, 20 May 2021 at 22:06:50 UTC+10 weerman wrote:
>>>
>>>> Hi all,
>>>>
>>>> I'm trying to run both klimalogg pro and Fine Offset WH 1080 on my rbp
>>>> 2. It has worked before, but four weeks ago my rp2 froze so i had to set
>>>> it
>>>> up again including weewx.
>>>>
>>>> Since then i got this error from my klp installation.
>>>>
>>>> *May 20 13:52:04 raspberrypi weewx-fineoffset[30390] INFO weewx.restx:
>>>> StationRegistry: Published record 2021-05-20 13:41:59 CEST (1621510919)*
>>>> *May 20 13:52:04 raspberrypi weewx-fineoffset[30390] INFO weewx.engine:
>>>> Starting main packet loop.*
>>>> *May 20 13:52:05 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.drivers.fousb: station status {'unknown': 0, 'rain_overflow': 0,
>>>> 'lost_connection': 0} (0)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] ERROR user.kl: unable to
>>>> terminate RF thread after 60 seconds*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__: Caught
>>>> unrecoverable exception:*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** Unknown data binding ''wx_binding''*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** Traceback (most recent call last):*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewx/manager.py", line 686, in
>>>> get_manager_dict_from_config*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** manager_dict = dict(config_dict['DataBindings'][data_binding])*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/usr/lib/python3/dist-packages/configobj.py", line 554, in
>>>> __getitem__*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** val = dict.__getitem__(self, key)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** KeyError: 'wx_binding'*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> *****
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** During handling of the above exception, another exception occurred:*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> *****
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** Traceback (most recent call last):*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewxd", line 151, in main*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** engine = weewx.engine.StdEngine(config_dict)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewx/engine.py", line 93, in __init__*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** self.loadServices(config_dict)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewx/engine.py", line 161, in loadServices*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** obj = weeutil.weeutil.get_object(svc)(self, config_dict)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewx/wxservices.py", line 91, in __init__*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** self.db_manager =
>>>> engine.db_binder.get_manager(data_binding=data_binding, initialize=True)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewx/manager.py", line 583, in get_manager*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** default_binding_dict=defaults)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** File "/home/weewx/bin/weewx/manager.py", line 688, in
>>>> get_manager_dict_from_config*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** raise weewx.UnknownBinding("Unknown data binding '%s'" % e)*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** weewx.UnknownBinding: Unknown data binding ''wx_binding''*
>>>> *May 20 13:52:53 raspberrypi weewx-klp[30429] CRITICAL __main__:
>>>> **** Exiting.*
>>>> *May 20 13:56:06 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.manager: Added record 2021-05-20 13:55:00 CEST (1621511700) to
>>>> database 'weewx.sdb'*
>>>> *May 20 13:56:06 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.manager: Added record 2021-05-20 13:55:00 CEST (1621511700) to daily
>>>> summary in 'weewx.sdb'*
>>>> *May 20 13:56:14 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 6.44
>>>> seconds*
>>>> *May 20 13:56:15 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.50
>>>> seconds*
>>>> *May 20 13:56:15 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.reportengine: Copied 5 files to /home/weewx/public_html*
>>>> *May 20 13:56:17 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.cheetahgenerator: Generated 7 files for report SmartphoneReport in
>>>> 1.79 seconds*
>>>> *May 20 13:56:17 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.imagegenerator: Generated 6 images for report SmartphoneReport in
>>>> 0.52 seconds*
>>>> *May 20 13:56:17 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.reportengine: Copied 6 files to /home/weewx/public_html/smartphone*
>>>> *May 20 13:56:18 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.cheetahgenerator: Generated 1 files for report MobileReport in 0.17
>>>> seconds*
>>>> *May 20 13:56:18 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.imagegenerator: Generated 4 images for report MobileReport in 0.38
>>>> seconds*
>>>> *May 20 13:56:18 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.reportengine: Copied 2 files to /home/weewx/public_html/mobile*
>>>> *May 20 13:56:26 raspberrypi weewx-fineoffset[30390] INFO
>>>> weewx.reportengine: ftpgenerator: Ftp'd 35 files in 8.29 seconds*
>>>>
>>>> As far as i understand the error, something seems to be wrong in the
>>>> binding section, it should be "kl_binding" for the klima logg pro and it
>>>> says so in the klp config file
>>>> as you can see here:
>>>>
>>>>
>>>> *##############################################################################*
>>>>
>>>> *# This section binds a data store to a database.*
>>>>
>>>> *[DataBindings]*
>>>>
>>>> * [[kl_binding]]*
>>>> * schema = user.kl.schema*
>>>> * table_name = archive*
>>>> * database = kl_sqlite*
>>>> * manager = weewx.wxmanager.WXDaySummaryManager*
>>>>
>>>>
>>>> *##############################################################################*
>>>>
>>>> *# This section defines various databases.*
>>>>
>>>> *[Databases]*
>>>>
>>>> * # A SQLite database is simply a single file*
>>>> * [[archive_sqlite]]*
>>>> * database_name = klp.sdb*
>>>> * database_type = SQLite*
>>>>
>>>> * # MySQL*
>>>> * [[archive_mysql]]*
>>>> * database_name = klp*
>>>> * database_type = MySQL*
>>>>
>>>>
>>>> *##############################################################################*
>>>>
>>>> *# This section defines defaults for the different types of
>>>> databases.*
>>>>
>>>> *[DatabaseTypes]*
>>>>
>>>> * # Defaults for SQLite databases*
>>>> * [[SQLite]]*
>>>> * driver = weedb.sqlite*
>>>> * # Directory in which the database files are located*
>>>> * SQLITE_ROOT = %(WEEWX_ROOT)s/archive*
>>>>
>>>> * # Defaults for MySQL databases*
>>>> * [[MySQL]]*
>>>> * driver = weedb.mysql*
>>>> * # The host where the database is located*
>>>> * host = localhost*
>>>> * # The user name for logging in to the host*
>>>> * user = weewx*
>>>> * # The password for the user name (quotes guard against parsing
>>>> errors)*
>>>> * password = weewx*
>>>>
>>>>
>>>> *##############################################################################*
>>>>
>>>> *# This section configures the internal weewx engine.*
>>>>
>>>> *[Engine]*
>>>>
>>>> * # The following section specifies which services should be run and
>>>> in what order.*
>>>> * [[Services]]*
>>>> * prep_services = weewx.engine.StdTimeSynch*
>>>> * data_services = ,*
>>>> * process_services = weewx.engine.StdConvert,
>>>> weewx.engine.StdCalibrate, weewx.engine.StdQC,
>>>> weewx.wxservices.StdWXCalculate*
>>>> * xtype_services = weewx.wxxtypes.StdWXXTypes,
>>>> weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater,
>>>> weewx.wxxtypes.StdDelta*
>>>> * archive_services = weewx.engine.StdArchive*
>>>> * restful_services = weewx.restx.StdStationRegistry,
>>>> weewx.restx.StdWunderground, weewx.restx.StdPWSweather,
>>>> weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS*
>>>> * report_services = weewx.engine.StdPrint,
>>>> weewx.engine.StdReport*
>>>>
>>>> Anyone having an idea what i could do?
>>>>
>>>> Thanks
>>>>
>>>> Georg
>>>>
>>> --
>>>
>>> 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].
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/6dc7249d-1b27-4efa-becc-a6a2225a83fan%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/weewx-user/6dc7249d-1b27-4efa-becc-a6a2225a83fan%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> --
>> 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].
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/f476836b-ef9b-44cb-8e05-c6cb047e6f34n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/f476836b-ef9b-44cb-8e05-c6cb047e6f34n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/858d06b8-e691-4860-9540-557b8c0f647fn%40googlegroups.com.