Closed elevins closed 2 years ago
CONNREFUSED
would indicate a general routing/connection issue to the MQTT broker. Do you have a firewall on the machine running teslamate, and is the MQTT container exposed outside of the docker-compose network? (assuming you use docker-compose for deployment)
Yes used docker compose for deployment. Containers running on my Synology NAS on same local network as Pi running Magic Mirror. Will take a look at firewall
Also just pushed a fix from another issue, that could resolve it, but your connection URL string looked correct to me
Firewall disabled. No change. Don't think that is the issue. Using a MQTT desktop application I also get a connection refused error tho. Could my docker compose file have been incorrect. Pasting it below.
version: "3"
services: teslamate: image: teslamate/teslamate:latest restart: always environment:
all
database: image: postgres:13 restart: always environment:
teslamate-db:/var/lib/postgresql/data
grafana: image: teslamate/grafana:latest restart: always environment:
teslamate-grafana-data:/var/lib/grafana
mosquitto: image: eclipse-mosquitto:2 restart: always command: mosquitto -c /mosquitto-no-auth.conf
volumes:
volumes: teslamate-db: teslamate-grafana-data: mosquitto-conf: mosquitto-data:
Ok so I noticed that the docker container did not have ports listed in the synology ui. I removed the '#' leading the following lines to uncomment:
ports:
and the ports were now visible in Synology/docker container properties. Both MQTT.fx and Magic Mirror can now connect. However still no information on the mirror. Looking into that.
Strange that connection string showed correct port may be better to leave in uncommented in the docs.
Looks like it is pulling and is now a display issue i need to figure out. Will close this
Teslamate installed and displaying the following on the mirror with no information.
Information correctly logging in grafana. This error loops in the magicmirror log with no additional details.
0|mm | [16.05.2022 09:43.36.621] [LOG]
0|mm | MMM-Teslamate: 192.168.4.60:1883 reconnecting 0|mm | [16.05.2022 09:43.36.645] [LOG]
0|mm | MMM-Teslamate 192.168.4.60:1883: Error: Error: connect ECONNREFUSED 192.168.4.60:1883
This is my config, two cars on my account. No info shows with carID: '1' either.