Open gjr80 opened 1 year ago
Local testing of GatewayApi.discover()
appears to indicate on-line gateway devices are responding, the response is received and the response is valid.
Need to check decoding/parsing of the responses.
Strange - discovery (and the driver) works great here. Debian 11/bullseye, Py3, WeeWX 4.10.2 installed via apt, and gw1000 driver v0.5.0b6:
$ PYTHONPATH=/usr/share/weewx python -m user.gw1000 --discover
Using configuration file /etc/weewx/weewx.conf
Discovering devices on the local network. Please wait...
GW2000 discovered at IP address 192.168.28.8 on port 45000
Same problem here. Weewx 4.10.2 installed via apt on Operating System: Raspbian GNU/Linux 10 (buster), Kernel: Linux 5.10.103-v7+, Architecture: arm, gw1000 driver v. 0.6.0b2.
pi@clockpi:/etc/weewx $ PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --discover
Using configuration file /etc/weewx/weewx.conf
Discovering devices on the local network. Please wait...
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/share/weewx/user/gw1000.py", line 8229, in <module>
main()
File "/usr/share/weewx/user/gw1000.py", line 8225, in main
direct_gw.process_options()
File "/usr/share/weewx/user/gw1000.py", line 6776, in process_options
self.discover()
File "/usr/share/weewx/user/gw1000.py", line 7778, in discover
collector = GatewayCollector()
File "/usr/share/weewx/user/gw1000.py", line 2616, in __init__
log_unknown_fields=log_unknown_fields, debug=debug)
File "/usr/share/weewx/user/gw1000.py", line 6036, in __init__
debug=debug)
File "/usr/share/weewx/user/gw1000.py", line 4749, in __init__
raise GWIOError(_msg)
__main__.GWIOError: Failed to detect device IP address and/or port after 3 attempts`
Using
--discover
results in the following error:It appears that discovery is not returning any device addresses.