Hi out there. The machine is a wandboard-quad running pure Debian9 connected over USB with a froggit WH4000 station. It saves all weather data into a mariadb on a central server, transfers all the webdata to a website via sFTP and gives data to several services, also saves the logdata with rsyslog to the central server..
After upgrading weewx didn't start up again. I figured out, that the import of 'log_traceback' in the driver written by Mathew Wall is the reason. "https://github.com/matthewwall/weewx-wh23xx" I was very pleased to have that code available, thx to Mathew. As I'm not handy with python, I ask her for getting help with getting the looging content being reduced again. May 1 12:42:07 wandboard-quad systemd[1]: Reloading. May 1 12:42:07 wandboard-quad systemd[1]: Starting LSB: weewx weather system... May 1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Initializing weewx version 4.0.0 May 1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Using Python 2.7.13 (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516] May 1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Platform Linux-4.9.0-12-armmp-armv7l-with-debian-9.12 May 1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Locale is 'de_DE.UTF-8' May 1 12:42:08 wandboard-quad weewx[12910] INFO __main__: PID file is /var/run/weewx.pid May 1 12:42:08 wandboard-quad weewx[12899]: Starting weewx weather system: weewx. May 1 12:42:08 wandboard-quad systemd[1]: Started LSB: weewx weather system. May 1 12:42:08 wandboard-quad weewx[12914] INFO __main__: Using configuration file /etc/weewx/weewx.conf May 1 12:42:08 wandboard-quad weewx[12914] INFO weewx.engine: Loading station type WH23xx (user.wh23xx) May 1 12:42:08 wandboard-quad weewx[12914] CRITICAL __main__: Caught unrecoverable exception: May 1 12:42:08 wandboard-quad weewx[12914] CRITICAL __main__: **** cannot import name log_traceback May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** Traceback (most recent call last): May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 148, in main May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict) May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 69, in __init__ May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** self.setupStation(config_dict) May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 92, in setupStation May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** __import__(driver) May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** File "/usr/share/weewx/user/wh23xx.py", line 255, in <module> May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** from weeutil.weeutil import timestamp_to_string, log_traceback May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** ImportError: cannot import name log_traceback May 1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__: **** Exiting. May 1 12:42:09 wandboard-quad systemd[1]: Reloading. So I changed the code as you can see below and it works again. But now the syslog is flooded with useless content --- wh23xx.py 2017-01-29 18:22:30.000000000 +0100 +++ /usr/share/weewx/user/wh23xx.py 2020-05-01 14:50:38.367750070 +0200 @@ -252,7 +252,8 @@ import usb import weewx.drivers -from weeutil.weeutil import timestamp_to_string, log_traceback +from weeutil.weeutil import timestamp_to_string +from weeutil.logger import log_traceback from weewx.wxformulas import calculate_rain DRIVER_NAME = 'WH23xx' @@ -425,7 +426,7 @@ yield packet except IndexError, e: logerr("decode failed: %s (%s)" % (e, _fmt(raw))) - log_traceback(loglevel=syslog.LOG_DEBUG) + log_traceback(loglevel=syslog.LOG_INFO) time.sleep(self._poll_interval) def _get_current(self): Content of the logfile: May 1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: write: 02 02 04 04 (len=4) May 1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: buf: 01 3b 04 4a 01 02 7c 02 02 28 03 01 b2 04 02 28 05 02 28 06 2c 07 2d 08 26 74 09 26 91 0a 00 2d 0b 00 0e 0c 00 18 0e 00 00 00 00 10 00 00 00 03 11 00 00 00 8a 12 00 00 00 03 13 00 00 (len=61) May 1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: record_size: 74 May 1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: buf: 01 12 09 33 14 00 00 43 95 15 00 01 78 4a 16 02 1c 17 02 79 2c 07 2d 08 26 74 09 26 91 0a 00 2d 0b 00 0e 0c 00 18 0e 00 00 00 00 10 00 00 00 03 11 00 00 00 8a 12 00 00 00 03 13 00 00 (len=61) May 1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: rbuf: 01 02 7c 02 02 28 03 01 b2 04 02 28 05 02 28 06 2c 07 2d 08 26 74 09 26 91 0a 00 2d 0b 00 0e 0c 00 18 0e 00 00 00 00 10 00 00 00 03 11 00 00 00 8a 12 00 00 00 03 13 00 00 09 33 14 00 00 43 95 15 00 01 78 4a 16 02 1c 17 02 (len=74) chksum_pkt=79 chksum=0x79 May 1 17:38:43 wandboard-quad weewxd: wh23xx: raw data: [1, 2, 124, 2, 2, 40, 3, 1, 178, 4, 2, 40, 5, 2, 40, 6, 44, 7, 45, 8, 38, 116, 9, 38, 145, 10, 0, 45, 11, 0, 14, 12, 0, 24, 14, 0, 0, 0, 0, 16, 0, 0, 0, 3, 17, 0, 0, 0, 138, 18, 0, 0, 0, 3, 19, 0, 0, 9, 51, 20, 0, 0, 67, 149, 21, 0, 1, 120, 74, 22, 2, 28, 23, 2] May 1 17:38:43 wandboard-quad weewxd: wh23xx: in_temp: {'value': 23.6} (0x01 0x01) May 1 17:38:43 wandboard-quad weewxd: wh23xx: out_temp: {'value': 15.200000000000003} (0x02 0x02) May 1 17:38:43 wandboard-quad weewxd: wh23xx: dewpoint: {'value': 3.3999999999999986} (0x03 0x03) May 1 17:38:43 wandboard-quad weewxd: wh23xx: windchill: {'value': 15.200000000000003} (0x04 0x04) May 1 17:38:43 wandboard-quad weewxd: wh23xx: heatindex: {'value': 15.200000000000003} (0x05 0x05) May 1 17:38:43 wandboard-quad weewxd: wh23xx: in_humidity: {'value': 44} (0x06 0x06) May 1 17:38:43 wandboard-quad weewxd: wh23xx: out_humidity: {'value': 45} (0x07 0x07) May 1 17:38:43 wandboard-quad weewxd: wh23xx: abs_baro: {'value': 984.4} (0x08 0x08) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rel_baro: {'value': 987.3} (0x09 0x09) May 1 17:38:43 wandboard-quad weewxd: wh23xx: wind_dir: {'value': 45} (0x0a 0x0a) May 1 17:38:43 wandboard-quad weewxd: wh23xx: wind_speed: {'value': 1.4} (0x0b 0x0b) May 1 17:38:43 wandboard-quad weewxd: wh23xx: gust_speed: {'value': 2.4} (0x0c 0x0c) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rain_day: {'value': 0.3} (0x10 0x10) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rain_week: {'value': 13.8} (0x11 0x11) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rain_month: {'value': 0.3} (0x12 0x12) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rain_year: {'value': 235.5} (0x13 0x13) May 1 17:38:43 wandboard-quad weewxd: wh23xx: rain_totals: {'value': 1730.1} (0x14 0x14) May 1 17:38:43 wandboard-quad weewxd: wh23xx: light: {'value': 9633.0} (0x15 0x15) May 1 17:38:43 wandboard-quad weewxd: wh23xx: uv: {'value': 540} (0x16 0x16) May 1 17:38:43 wandboard-quad weewxd: wh23xx: uvi: {'value': 2} (0x17 0x17) May 1 17:38:43 wandboard-quad weewxd: wh23xx: decoded data: {'wind_speed': {'value': 1.4}, 'gust_speed': {'value': 2.4}, 'rain_totals': {'value': 1730.1}, 'in_temp': {'value': 23.6}, 'dewpoint': {'value': 3.3999999999999986}, 'rain_month': {'value': 0.3}, 'out_humidity': {'value': 45}, 'light': {'value': 9633.0}, 'rain_rate': {'value': 0.0}, 'heatindex': {'value': 15.200000000000003}, 'in_humidity': {'value': 44}, 'rain_day': {'value': 0.3}, 'out_temp': {'value': 15.200000000000003}, 'rel_baro': {'value': 987.3}, 'uv': {'value': 540}, 'uvi': {'value': 2}, 'rain_year': {'value': 235.5}, 'rain_week': {'value': 13.8}, 'abs_baro': {'value': 984.4}, 'wind_dir': {'value': 45}, 'windchill': {'value': 15.200000000000003}} May 1 17:38:43 wandboard-quad weewxd: wh23xx: packet: {'uv_raw': 540, 'pressure': 984.4, 'outHumidity': 45, 'luminosity': 9633.0, 'UV': 2, 'radiation': 76.1007, 'rain': 0.0, 'dateTime': 1588347523, 'windDir': 45, 'outTemp': 15.200000000000003, 'windSpeed': 1.4, 'inHumidity': 44, 'inTemp': 23.6, 'windGust': 2.4, 'usUnits': 17} -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/370a7642-c82e-42b1-9469-24a626af30ec%40googlegroups.com.