From ce33d37c566423d955a59b7701400c89886c0448 Mon Sep 17 00:00:00 2001 From: Jason Hildebrand Date: Wed, 3 Feb 2021 20:57:50 -0600 Subject: [PATCH 1/2] Clarify which port rhasspy uses by default for MQTT. --- docs/usage.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index 09f9570..2786daa 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -35,6 +35,23 @@ You can pass all the settings as keyword arguments inside the constructor as wel ``rhasspyhermes_app.HermesApp("ExampleApp", host="192.168.178.123", port=12183)``. Note that arguments passed on the command line have precedence over arguments passed to the constructor. +********************* +Connecting to Rhasspy +********************* + +In its default configuration, Rhasspy's internal MQTT broker listens on port 12183, so this is what you need to connect to. + +If you are using docker, you will need to add to add this port to your `docker-compose.yml` file: + +.. code-block:: + + services: + rhasspy: + ports: + - "12101:12101" # this is the port used for the web interface + - "12183:12183" # you need this to access Rhasspy's MQTT port + + ******* Asyncio ******* From 67028770d454f97d019b65d939ff542d1132590d Mon Sep 17 00:00:00 2001 From: Jason Hildebrand Date: Fri, 5 Feb 2021 09:00:33 -0600 Subject: [PATCH 2/2] Further doc update re: MQTT ports. --- docs/usage.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 2786daa..1b5b329 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -39,7 +39,7 @@ command line have precedence over arguments passed to the constructor. Connecting to Rhasspy ********************* -In its default configuration, Rhasspy's internal MQTT broker listens on port 12183, so this is what you need to connect to. +In its default configuration, Rhasspy's internal MQTT broker listens on port 12183, so this is what you need to connect to, using command-line or constructor arguments - see previous section for details. If you are using docker, you will need to add to add this port to your `docker-compose.yml` file: @@ -51,6 +51,8 @@ If you are using docker, you will need to add to add this port to your `docker-c - "12101:12101" # this is the port used for the web interface - "12183:12183" # you need this to access Rhasspy's MQTT port +If you're using an external MQTT broker, you probably want port 1883. This is what most MQTT brokers use, and is Rhasspy Hermes App's default port. + ******* Asyncio