i’ve been getting some crashes recently that shuts down weewx.
Jul 27 07:59:39 weewx weewx[4992] INFO weewx.engine: Main loop exiting. Shutting engine down.
Jul 27 07:59:39 weewx weewx[4992] INFO weewx.engine: Shutting down StdReport thread
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.engine: StdReport thread has been terminated
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down CWOP thread.
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down PWSWeather thread.
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down Wunderground-PWS thread.
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down StationRegistry thread.
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: Caught unrecoverable exception:
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** a bytes-like object is required, not ‘str’
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** Traceback (most recent call last):
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** File “/usr/share/weewx/user/weatherflowudp.py”, line 310, in genLoopPackets
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** m0 = str(m[0],‘utf-8’).replace(",null",",None") # Python 3
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xaa in position 2: invalid start byte
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: ****
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** During handling of the above exception, another exception occurred:
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: ****
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** Traceback (most recent call last):
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** File “/usr/share/weewx/weewxd”, line 154, in main
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** engine.run()
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** File “/usr/share/weewx/weewx/engine.py”, line 188, in run
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** for packet in self.console.genLoopPackets():
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** File “/usr/share/weewx/user/weatherflowudp.py”, line 312, in genLoopPackets
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** m0 = m[0].replace(",null",",None") # Python 2
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** TypeError: a bytes-like object is required, not ‘str’
Jul 27 07:59:39 weewx weewx[4992] CRITICAL main: **** Exiting.
Jul 27 08:09:44 weewx systemd[1]: Starting Message of the Day…
Jul 27 08:09:46 weewx 50-motd-news[6237]: * “If you’ve been waiting for the perfect Kubernetes dev solution for
Jul 27 08:09:46 weewx 50-motd-news[6237]: macOS, the wait is over. Learn how to install Microk8s on macOS.”
Jul 27 08:09:46 weewx 50-motd-news[6237]: https://www.techrepublic.com/article/how-to-install-microk8s-on-macos/
Jul 27 08:09:46 weewx systemd[1]: motd-news.service: Succeeded.
Jul 27 08:09:46 weewx systemd[1]: Finished Message of the Day.
Jamie Stephens’s profile photo
Jamie Stephens
Jul 27, 2020, 9:49:32 AM (yesterday)
to weewx...@googlegroups.com
[WeatherFlowUDP]
driver = user.weatherflowudp
log_raw_packets = False
udp_address =
# udp_address = 0.0.0.0
# udp_address = 255.255.255.255
udp_port = 50222
udp_timeout = 90
share_socket = False
[[sensor_map]]
outTemp = air_temperature.ST-00015203.obs_st
outHumidity = relative_humidity.ST-00015203.obs_st
pressure = station_pressure.ST-00015203.obs_st
#lightning_strikes = lightning_strike_count.ST-00015203.obs_st
#avg_distance = lightning_strike_avg_distance.ST-00015203.obs_st
outTempBatteryStatus = battery.ST-00015203.obs_st
windSpeed = wind_speed.ST-00015203.rapid_wind
windDir = wind_direction.ST-00015203.rapid_wind
#luxXXX = illuminance.ST-00015203.obs_st
UV = uv.ST-00015203.obs_st
rain = rain_accumulated.ST-00015203.obs_st
windBatteryStatus = battery.ST-00015203.obs_st
radiation = solar_radiation.ST-00015203.obs_st
#lightningXXX = distance.ST-00015203.evt_strike
#lightningYYY = energy.ST-00015203.evt_strike
##############################################################################
Jul 28 08:20:26 weewx weewx[6505] DEBUG weewx.restx: CWOP: Connected to server cwop.aprs.net:14580
GNU nano 4.8 syslog Modified
Jul 28 17:58:23 weewx weewx[6505] CRITICAL main: **** File “/usr/share/weewx/user/weatherflowudp.py”, line 312, in genLoopPackets
Jul 28 17:58:23 weewx weewx[6505] CRITICAL main: **** m0 = m[0].replace(",null",",None") # Python 2
Jul 28 17:58:23 weewx weewx[6505] CRITICAL main: **** TypeError: a bytes-like object is required, not ‘str’
Jul 28 17:58:23 weewx weewx[6505] CRITICAL main: **** Exiting.