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

Accessing Mosquitto on IOTstack #48

Closed
xelectro opened this issue Nov 7, 2019 · 4 comments
Closed

Accessing Mosquitto on IOTstack #48

xelectro opened this issue Nov 7, 2019 · 4 comments

Comments

@xelectro
Copy link

xelectro commented Nov 7, 2019

Hi I have installed and configured the stack with excellent results. All items seem to work I even set the password for mosquitto but I can’t seem to gain access to the interface.
Tried localhost:1883 and several other ports.
What am I missing to get into mosquitto
Thanks

@gcgarner
Copy link
Owner

gcgarner commented Nov 7, 2019

Hello, as far as i am aware mosquitto doesn't have a web interface. port 1883 is for the mqtt traffic itself. You can access the mosquitto terminal via the script ./services/mosquitto/terminal.sh (if run from the IOTstack folder). However you will only be able to run command line tools.

Typically you just need to run mosquitto and you will interface to it via Node-RED. The topics that you send from any mqtt client will be created in mosquitto automatically

https://www.youtube.com/watch?v=AsDHEDbyLfg here is a video where he shows the mosquiito_pu and mosquitto_sub commands. the only difference is the they would need to be run inside the mosquitto terminal not in the regular terminal

side note, remember that if you are trying to talk to mosquitto from nodered that if you use the default config the address would be "mosquitto" but it you activate the network_mode=host then it will be "127.0.0.1"

@xelectro
Copy link
Author

xelectro commented Nov 7, 2019 via email

@xelectro xelectro closed this as completed Nov 7, 2019
@laenan8466
Copy link

Hey Graham,
thanks for your awesome IOT stack.
I got stuck with the config address of the mosquitto server locally for two days now, finally finding this very helpful issue.
Suggestion: Please add the information about network_mode to the Wiki entries of MQTT and/or node-red. This information was really hard to find, as a newbie to Docker and IOTstack. I guess changes in the Wiki aren't possible for every github user?
Cheers, Laenan

@gcgarner
Copy link
Owner

gcgarner commented Jan 25, 2020 via email

Willem-Dekker pushed a commit to robertcsakany/IOTstack that referenced this issue Jun 14, 2020
added deconz device config menu and amended wiki accordingly
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

3 participants