Use a Raspberry Pi and Weewx with the latest version and the Belchertown skin. After restarting weewx, I receive the following error messages. After 2 report cycles the error messages have disappeared. Is there a solution to combat these errors?
Linux Raspberry 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04 -22) aarch64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Jun 9 17:48:45 2024 from 192.168.178.128 **@Raspberry:~ $ sudo systemctl restart weewx **@Raspberry:~ $ sudo journalctl -u weewx -f jun 09 17:57:15 Raspberry weewxd[58338]: INFO weewx.restx: AWEKAS: Posting not enabled. jun 09 17:57:15 Raspberry weewxd[58338]: INFO user.wcloud: service version is 0.13 jun 09 17:57:15 Raspberry weewxd[58338]: INFO user.wcloud: Data will be uploaded for id=110ae4fad479e3b3 jun 09 17:57:15 Raspberry weewxd[58338]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available jun 09 17:57:15 Raspberry weewxd[58338]: INFO __main__: Starting up weewx version 5.0.2 jun 09 17:57:15 Raspberry weewxd[58338]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb' jun 09 17:57:15 Raspberry weewxd[58338]: INFO weewx.manager: Starting backfill of daily summaries jun 09 17:57:15 Raspberry weewxd[58338]: INFO weewx.manager: Daily summaries up to date jun 09 17:57:15 Raspberry weewxd[58338]: INFO weewx.engine: Starting main packet loop. jun 09 17:57:15 Raspberry weewxd.py[58338]: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 50222, with timeout 90 and share_socket False... jun 09 17:59:37 Raspberry weewxd[58338]: INFO weewx.manager: Added record 2024-06-09 18:00:00 CEST (1717948800) to database 'weewx.sdb' jun 09 17:59:37 Raspberry weewxd[58338]: INFO weewx.manager: Added record 2024-06-09 18:00:00 CEST (1717948800) to daily summary in 'weewx.sdb' jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: StationRegistry: Unexpected exception of type <class 'TypeError'> jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** Traceback (most recent call last): jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/share/weewx/weewx/restx.py", line 384, in run_loop jun 09 17:59:37 Raspberry weewxd[58338]: Exception in thread StationRegistry: jun 09 17:59:37 Raspberry weewxd[58338]: Traceback (most recent call last): jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** self.process_record(_record, dbmanager) jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/share/weewx/weewx/restx.py", line 438, in process_record jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** _payload = self.get_post_body(_full_record) jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/share/weewx/weewx/restx.py", line 1560, in get_post_body jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** json_body = json.dumps(body) jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** ^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/lib/python3.11/json/__init__.py", line 231, in dumps jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** return _default_encoder.encode(obj) jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/lib/python3.11/json/encoder.py", line 200, in encode jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** chunks = self.iterencode(o, _one_shot=True) jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** return _iterencode(o, 0) jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** ^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** File "/usr/lib/python3.11/json/encoder.py", line 180, in default jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** raise TypeError(f'Object of type {o.__class__.__name__} ' jun 09 17:59:37 Raspberry weewxd[58338]: ERROR weewx.restx: *** TypeError: Object of type method is not JSON serializable jun 09 17:59:37 Raspberry weewxd[58338]: CRITICAL weewx.restx: StationRegistry: Thread terminating. Reason: Object of type method is not JSON serializable jun 09 17:59:37 Raspberry weewxd[58338]: self.run() jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/share/weewx/weewx/restx.py", line 359, in run jun 09 17:59:37 Raspberry weewxd[58338]: self.run_loop() jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/share/weewx/weewx/restx.py", line 384, in run_loop jun 09 17:59:37 Raspberry weewxd[58338]: self.process_record(_record, dbmanager) jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/share/weewx/weewx/restx.py", line 438, in process_record jun 09 17:59:37 Raspberry weewxd[58338]: _payload = self.get_post_body(_full_record) jun 09 17:59:37 Raspberry weewxd[58338]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/share/weewx/weewx/restx.py", line 1560, in get_post_body jun 09 17:59:37 Raspberry weewxd[58338]: json_body = json.dumps(body) jun 09 17:59:37 Raspberry weewxd[58338]: ^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/lib/python3.11/json/__init__.py", line 231, in dumps jun 09 17:59:37 Raspberry weewxd.py[58338]: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 50222, with timeout 90 and share_socket False... jun 09 17:59:37 Raspberry weewxd[58338]: return _default_encoder.encode(obj) jun 09 17:59:37 Raspberry weewxd[58338]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/lib/python3.11/json/encoder.py", line 200, in encode jun 09 17:59:37 Raspberry weewxd[58338]: chunks = self.iterencode(o, _one_shot=True) jun 09 17:59:37 Raspberry weewxd[58338]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode jun 09 17:59:37 Raspberry weewxd[58338]: return _iterencode(o, 0) jun 09 17:59:37 Raspberry weewxd[58338]: ^^^^^^^^^^^^^^^^^ jun 09 17:59:37 Raspberry weewxd[58338]: File "/usr/lib/python3.11/json/encoder.py", line 180, in default jun 09 17:59:37 Raspberry weewxd[58338]: raise TypeError(f'Object of type {o.__class__.__name__} ' jun 09 17:59:37 Raspberry weewxd[58338]: TypeError: Object of type method is not JSON serializable jun 09 17:59:37 Raspberry weewxd[58338]: INFO user.belchertown: version 1.3.1 jun 09 17:59:37 Raspberry weewxd[58338]: INFO weewx.restx: PWSWeather: Published record 2024-06-09 18:00:00 CEST (1717948800) jun 09 17:59:37 Raspberry weewxd[58338]: INFO weewx.restx: Wunderground-PWS: Published record 2024-06-09 18:00:00 CEST (1717948800) jun 09 17:59:45 Raspberry weewxd[58338]: INFO weewx.restx: WOW: Published record 2024-06-09 18:00:00 CEST (1717948800) jun 09 17:59:46 Raspberry weewxd[58338]: INFO weewx.cheetahgenerator: Generated 12 files for report Belchertown in 9.36 seconds jun 09 17:59:47 Raspberry weewxd[58338]: INFO weewx.reportengine: Copied 40 files to /var/www/html jun 09 17:59:53 Raspberry weewxd[58338]: INFO weewx.restx: WeatherCloud: Published record 2024-06-09 18:00:00 CEST (1717948800) jun 09 18:04:36 Raspberry weewxd[58338]: INFO weewx.manager: Added record 2024-06-09 18:05:00 CEST (1717949100) to database 'weewx.sdb' jun 09 18:04:37 Raspberry weewxd[58338]: INFO weewx.manager: Added record 2024-06-09 18:05:00 CEST (1717949100) to daily summary in 'weewx.sdb' jun 09 18:04:37 Raspberry weewxd.py[58338]: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 50222, with timeout 90 and share_socket False... jun 09 18:04:37 Raspberry weewxd[58338]: INFO weewx.restx: Wunderground-PWS: Published record 2024-06-09 18:05:00 CEST (1717949100) jun 09 18:04:37 Raspberry weewxd[58338]: INFO weewx.restx: WOW: Published record 2024-06-09 18:05:00 CEST (1717949100) jun 09 18:04:38 Raspberry weewxd[58338]: INFO weewx.restx: PWSWeather: Published record 2024-06-09 18:05:00 CEST (1717949100) jun 09 18:04:41 Raspberry weewxd[58338]: INFO user.belchertown: New forecast file downloaded to /var/www/html/json/forecast.json jun 09 18:04:46 Raspberry weewxd[58338]: INFO weewx.cheetahgenerator: Generated 12 files for report Belchertown in 9.41 seconds jun 09 18:04:46 Raspberry weewxd[58338]: INFO weewx.reportengine: Copied 3 files to /var/www/html -- 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/05325e9a-fb25-4c6c-9272-64ae8ace8eeen%40googlegroups.com.