Hi,
Driver options To configure the driver beyond the default values, set parameters in the [Interceptor] section of the weewx configuration file.
As follows, but tweaked then for the WH57:
For hardware such as the GW1000 that use the ecowitt-client protocol, use the sensor_map_extensions to add/modify sensor mappings without having to specify the entire mapping. For example, this would use the readings from the first temperature sensor as the indoor temperature, and the readings from the fourth temperature sensor as the outdoor temperature. All of the other sensors would be mapped using the default sensor mapping for ecowitt-client. [Interceptor] driver = user.interceptor device_type = ecowitt-client ... [[sensor_map_extensions]] inTemp = temperature_1 inHumidity = humidity_1 outTemp = temperature_4 outHumidity = humidity_4
But just read this...:
https://github.com/matthewwall/weewx-interceptor/issues/69
weewx[29068] DEBUG user.interceptor: raw packet: {'wind_speed': 0.0, 'humidity_in': 44.0, 'temperature_in': 69.4, 'solar_radiation': 0.0, 'wind_gust': 1.12, 'wh65_battery': 0.0, 'lightning': '', 'humidity_out': 81.0, 'uv': 0.0, 'lightning_num': 0.0, 'rain': 0.0, 'dateTime': 1592366447, 'pressure': 30.076, 'temperature_out': 68.0, 'wind_dir': 314.0, 'wh57_battery': 5.0, 'rain_total': 0.0, 'lightning_time': '', 'rain_rate': 0.0, 'usUnits': 1}
[[sensor_map_extensions]]
lightning_strike_count = lightning_num
lightning_distance = lightning
Jun 17 19:44:23 raspberrypi weewx[21398] DEBUG user.interceptor: mapped packet: {u'lightning_strike_count': 0.0, 'txBatteryStatus': 0.0, 'pressure': 30.014, 'outHumidity': 97.0, 'UV': 0.0, 'radiation': 7.7, u'lightning_distance': '', 'rain': None, 'dateTime': 1592437461, 'windDir': 130.0, 'outTemp': 71.1, 'windSpeed': 0.89, 'inHumidity': 58.0, 'inTemp': 76.3, 'windGust': 1.12, 'rainRate': 0.118, 'usUnits': 1}Jun 17 19:44:23 raspberrypi weewx[21398] INFO weewx.engine: Main loop exiting. Shutting engine down.Jun 17 19:44:23 raspberrypi weewx[21398] DEBUG weewx.restx: Shut down MQTT thread.Jun 17 19:44:23 raspberrypi weewx[21398] DEBUG weewx.restx: Shut down PWSWeather thread.Jun 17 19:44:23 raspberrypi weewx[21398] INFO user.interceptor: shutting down server threadJun 17 19:44:23 raspberrypi weewx[21398] DEBUG user.interceptor: stop tcp serverJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: Caught unrecoverable exception:Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** could not convert string to float: Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** Traceback (most recent call last):Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 154, in mainJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** engine.run()Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 191, in runJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEventJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** callback(event)Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 557, in new_loop_packetJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** self.accumulator.addRecord(event.packet, add_hilo=self.loop_hilo)Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewx/accum.py", line 429, in addRecordJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** func(self, record, obs_type, add_hilo, weight)Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewx/accum.py", line 487, in add_valueJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** self[obs_type].addHiLo(val, record['dateTime'])Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weewx/accum.py", line 163, in addHiLoJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** val = to_float(val)Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1250, in to_floatJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** return float(x) if x is not None else NoneJun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** ValueError: could not convert string to float: Jun 17 19:44:23 raspberrypi weewx[21398] CRITICAL __main__: **** Exiting.
[[sensor_map]]insteadt of [[sensor_map_extensions]]
So I have no really good answer for now. But will try also over the weekend.
What I know so far. The lightning_time is Unix time - so for now/noon something like :
1592562248 - for me without further conversion to a normal/understandable time string not usable...
Br, Matthias
$ PYTHONPATH=/usr/share/weewx python ......
Gary
weewx[18921] INFO user.interceptor: unrecognized parameter b'PASSKEY=