From 7b77e0796f184b388b59c8dd00bcfe2169eeadd0 Mon Sep 17 00:00:00 2001 From: 21geem1bif <21geem1bif@hft-stuttgart.de> Date: Fri, 16 May 2025 00:34:10 +0200 Subject: [PATCH] added mqttx for debugging --- README.md | 5 +++++ docker-compose.yaml | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 910a2e4..321b70b 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,11 @@ docker compose up // Startet des docker-compose.yaml in dem aktuellen Verzeichni dieses projekt anschauen: https://github.com/influxdata/iot-api-python +Added MQTTX to Docker compose for debuging (http://localhost:8081/) +make a new Connection to Localhost (localhost) port should be 1883 for mqtt not entcrypted +than subscribe to the co2/# topic +and debug + Json Format für die Nachrichten { "metadata":{ diff --git a/docker-compose.yaml b/docker-compose.yaml index 1200587..eac4c3c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -53,6 +53,13 @@ services: - "9001:9001" stdin_open: true tty: true + + mqttx-web: + image: emqx/mqttx-web + container_name: mqttx-web + ports: + - "8081:80" # Port 80 im Container auf 8081 lokal mappen + restart: unless-stopped influxdb2: image: influxdb:2 @@ -85,4 +92,4 @@ secrets: file: ./services/influxdb/influxdb2-admin-token volumes: influxdb2-data: - influxdb2-config: \ No newline at end of file + influxdb2-config: -- GitLab