Potentially. The station registry is being passed some bad information.
It's possible that information is needed elsewhere in the program.

Set debug=1, then restart weewxd. Post the log from startup through the
first reporting cycle.

Also, please note which version of the driver you ended up using.

-tk


On Thu, Feb 15, 2024 at 7:55 AM Ton Karsten <mothe...@gmail.com> wrote:

> When I restart weexw with the WeatherFlowUDP driver in use, I get the
> following error messages once:
> feb 15 16:00:17 raspberrypi weewxd.py[8060]: weatherflowudp: MainThread:
> Listening for UDP broadcasts to IP address <broadcast> on port 50222, with
> timeout 90 and share_socket False...
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: *** Traceback
> (most recent call last):
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/share/weewx/weewx/restx.py", line 384, in run_loop
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> self.process_record(_record, dbmanager)
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/share/weewx/weewx/restx.py", line 438, in process_record
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> _payload = self.get_post_body(_full_record)
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/share/weewx/weewx/restx.py", line 1560, in get_post_body
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> json_body = json.dumps(body)
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
>       ^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/lib/python3.11/json/__init__.py", line 231, in dumps
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> return _default_encoder.encode(obj)
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/lib/python3.11/json/encoder.py", line 200, in encode
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> chunks = self.iterencode(o, _one_shot=True)
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> return _iterencode(o, 0)
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
>  ^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***   File
> "/usr/lib/python3.11/json/encoder.py", line 180, in default
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***     raise
> TypeError(f'Object of type {o.__class__.__name__} '
> feb 15 16:00:17 raspberrypi weewxd[8060]: ERROR weewx.restx: ***
> TypeError: Object of type method is not JSON serializable
> feb 15 16:00:17 raspberrypi weewxd[8060]: CRITICAL weewx.restx:
> StationRegistry: Thread terminating. Reason: Object of type method is not
> JSON serializable
> feb 15 16:00:17 raspberrypi weewxd[8060]: Exception in thread
> StationRegistry:
> feb 15 16:00:17 raspberrypi weewxd[8060]: Traceback (most recent call
> last):
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
> feb 15 16:00:17 raspberrypi weewxd[8060]:     self.run()
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/share/weewx/weewx/restx.py", line 359, in run
> feb 15 16:00:17 raspberrypi weewxd[8060]:     self.run_loop()
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/share/weewx/weewx/restx.py", line 384, in run_loop
> feb 15 16:00:17 raspberrypi weewxd[8060]:     self.process_record(_record,
> dbmanager)
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/share/weewx/weewx/restx.py", line 438, in process_record
> feb 15 16:00:17 raspberrypi weewxd[8060]:     _payload =
> self.get_post_body(_full_record)
> feb 15 16:00:17 raspberrypi weewxd[8060]:
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/share/weewx/weewx/restx.py", line 1560, in get_post_body
> feb 15 16:00:17 raspberrypi weewxd[8060]:     json_body = json.dumps(body)
> feb 15 16:00:17 raspberrypi weewxd[8060]:                 ^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/lib/python3.11/json/__init__.py", line 231, in dumps
> feb 15 16:00:17 raspberrypi weewxd[8060]:     return
> _default_encoder.encode(obj)
> feb 15 16:00:17 raspberrypi weewxd[8060]:
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/lib/python3.11/json/encoder.py", line 200, in encode
> feb 15 16:00:17 raspberrypi weewxd[8060]:     chunks = self.iterencode(o,
> _one_shot=True)
> feb 15 16:00:17 raspberrypi weewxd[8060]:
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode
> feb 15 16:00:17 raspberrypi weewxd[8060]:     return _iterencode(o, 0)
> feb 15 16:00:17 raspberrypi weewxd[8060]:            ^^^^^^^^^^^^^^^^^
> feb 15 16:00:17 raspberrypi weewxd[8060]:   File
> "/usr/lib/python3.11/json/encoder.py", line 180, in default
> feb 15 16:00:17 raspberrypi weewxd[8060]:     raise TypeError(f'Object of
> type {o.__class__.__name__} '
> feb 15 16:00:17 raspberrypi weewxd[8060]: TypeError: Object of type method
> is not JSON serializable
> feb 15 16:00:17 raspberrypi weewxd[8060]: INFO user.belchertown: version
> 1.3.1
>
> Are these reports serious?
> Op woensdag 14 februari 2024 om 18:32:25 UTC+1 schreef Ton Karsten:
>
>> Okay thanks.
>>
>> Op wo 14 feb 2024 om 18:12 schreef vince <vince...@gmail.com>:
>>
>>> The weatherflow-udp driver works just fine on v5.
>>>
>>> On Wednesday, February 14, 2024 at 7:47:17 AM UTC-8 Ton Karsten wrote:
>>>
>>>> Thanks for sharing.
>>>> Which version are you using?
>>>> This: https://github.com/captain-coredump/weatherflow-udp
>>>> Or this one: https://github.com/rongrimes/weewx-tempest-pi
>>>>
>>>> Op woensdag 14 februari 2024 om 16:26:59 UTC+1 schreef Tom Hogland:
>>>>
>>>>> I'm currently using WeatherflowUDP with weewx 5.0.2 and it's working
>>>>> fine.
>>>>>
>>>>> On Wednesday, February 14, 2024 at 5:31:50 AM UTC-9 Ton Karsten wrote:
>>>>>
>>>>>> I use the WeatherFlow Tempest for my weather station.
>>>>>> I have equipped my weather station with the latest version of weewx.
>>>>>> Is the WeatherFlowUDP driver suitable for weewx 5.x and has this been
>>>>>> tested?
>>>>>> I'm not sure if the installation will go without errors.
>>>>>
>>>>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/50f83928-617b-447c-98a1-daff5f80964bn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/50f83928-617b-447c-98a1-daff5f80964bn%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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/5c7bc708-93cd-4ca6-9034-c183f00d7240n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/5c7bc708-93cd-4ca6-9034-c183f00d7240n%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBg_GRgv-5PTPZV4Cq3fUZFh5y6tYk0Y58hxxcycH-21A%40mail.gmail.com.

Reply via email to