-
Notifications
You must be signed in to change notification settings - Fork 2
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
Change websocket port #1
Comments
Hi @ben-digitalhive, Exactly. With this addon, things and co will publish events to your broker. Please have a look at the README. It describes the setup process, including how to change the URL (which contains the port). The default port is btw 1883. Also, please don't forget to create a local authorization token and give it to the addon, because else it cannot interact with your things :) Fyi, I also wrote an addon which allows you to run an MQTT broker from within your gateway: mqtt-broker-extension |
Hi - Thanks for the response. Yes I understand the intent of the addon now and have successfully had it connected to my Home Assistant. Data is flowing - great work! However what tripped me up when I was playing with this initially and it wasnt working was that it seems to have a hard-coded requirement for port 8080 even though I have specified 1883. The errors in the log look like this: 2021-05-29 01:01:22.236 INFO : mqtt-bridge: Loading add-on mqtt-bridge from /home/pi/.webthings/addons/mqtt-bridge ..... Compared to an MQTT broker that has both 1883 and 8080 exposed looks like this: 2021-05-29 01:03:17.527 INFO : mqtt-bridge: Loading add-on mqtt-bridge from /home/pi/.webthings/addons/mqtt-bridge |
Hi @ben-digitalhive, you're right, there is a somewhat hardcoded dependency for port 8080. It's required because that's where the webthings gateway (by default) provides the interface to interact with its things. I do agree that the log messages you posted above don't make this really clear, and I also think that it would be better to make the webthings port a configurable option as well. Feel free to open a PR improving this behavior if you want to :) |
Hello I have installed your addon in Webthings Gateway and I am assumming I can then use this to publish events to my broker? However it seems to have a hardcoded websocket port of 8080 - is this correct? How can I change this for my particular purposes?
The text was updated successfully, but these errors were encountered: