Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Exception in thread MQTT:" error #25

Open
AstroMuck opened this issue Dec 26, 2021 · 0 comments
Open

"Exception in thread MQTT:" error #25

AstroMuck opened this issue Dec 26, 2021 · 0 comments

Comments

@AstroMuck
Copy link

Hello- Ever seen these errors? I have changes the weewx.conf to use IP rather than DNS and get the same errors. Also tried different Brokers. Thanks in advance for any help you can provide.

Exception in thread MQTT:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/home/weewx/bin/weewx/restx.py", line 354, in run
self.run_loop(_manager)
File "/home/weewx/bin/weewx/restx.py", line 381, in run_loop
self.process_record(_record, dbmanager)
File "/home/weewx/bin/user/mqtt.py", line 496, in process_record
mc.connect(url.hostname, url.port)
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 912, in connect
self.connect_async(host, port, keepalive,
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 978, in connect_async
raise ValueError('Invalid host.')
ValueError: Invalid host.

The Weewx.conf settings
[[MQTT]]
server_url = mqtt://homeassistant:[email protected].###:1883/
topic = weather
unit_system = US

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant