ecowitt2mqtt
ecowitt2mqtt copied to clipboard
Cannot push data to Mosquitto MQTT?
Hello, first of all, thanks for your effort on this task. I installed on a Docker host ecowitt2mqtt as container along with eclipse-mosquitto broker. The container log shows me some issues, in fact I cannot push data to Mosquitto broker:
2022-09-02 12:04:34,486 | ecowitt2mqtt | DEBUG | Received data from the Ecowitt device: {'PASSKEY': 'this_was_deleted', 'stationtype': 'GW1100A_V2.1.8', 'runtime': '9264', 'dateutc': '2022-09-02 12:04:33', 'tempinf': '82.94', 'humidityin': '35', 'baromrelin': '26.356', 'baromabsin': '26.356', 'temp1f': '73.04', 'humidity1': '56', 'temp2f': '72.86', 'humidity2': '52', 'batt1': '0', 'batt2': '0', 'freq': '868M', 'model': 'GW1100A'}
INFO: ecowitt_IP:port - "POST /data/report HTTP/1.1" 204 No Content
then I also get this log:
2022-09-02 12:06:40,175 | ecowitt2mqtt | ERROR | There was an MQTT error: timed out
File "/venv/lib/python3.10/site-packages/asyncio_mqtt/client.py", line 565, in __aenter__
File "/venv/lib/python3.10/site-packages/asyncio_mqtt/client.py", line 233, in connect
2022-09-02 12:06:40,176 | ecowitt2mqtt | DEBUG | File "/venv/lib/python3.10/site-packages/ecowitt2mqtt/runtime.py", line 78, in _async_create_mqtt_loop
async with Client(
await self.connect()
raise MqttError(str(error))
2022-09-02 12:06:40,176 | ecowitt2mqtt | INFO | Attempting MQTT reconnection in 60 seconds (attempt 21)
I don’t have the any clue where is the issue with the installation and how to fix it. Thank you.
Your logs indicate that your ecowitt2mqtt
container can't reach your Mosquitto container. Can you share your container configuration (e.g., docker-compose.yml
) for both containers?
Please also share your ecowitt2mqtt
configuration.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.