ChristianKuehnel / plantgateway

Bluetooth to mqtt gateway for Xiaomi Mi plant sensors
Apache License 2.0
276 stars 41 forks source link

Errors on freshly installed Raspian. #9

Closed FallenLeave91 closed 7 years ago

FallenLeave91 commented 7 years ago

Can you see what went wrong?

Traceback (most recent call last):
  File "/usr/local/bin/plantgateway", line 30, in <module>
    main()
  File "/usr/local/bin/plantgateway", line 24, in main
    pg = PlantGateway()
  File "/usr/local/lib/python3.4/dist-packages/plantgw/__init__.py", line 95, in __init__
    self._start_client()
  File "/usr/local/lib/python3.4/dist-packages/plantgw/__init__.py", line 109, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.4/dist-packages/paho/mqtt/client.py", line 700, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.4/dist-packages/paho/mqtt/client.py", line 822, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/lib/python3.4/socket.py", line 509, in create_connection
    raise err
  File "/usr/lib/python3.4/socket.py", line 500, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Martinvdm commented 6 years ago

Same error, did you solve it?

nkerboute commented 5 years ago

Same error here

ChristianKuehnel commented 5 years ago

Can you try if setting a port for your mqtt server solves the issue?

Am Do., 13. Dez. 2018, 20:57 hat nkerboute notifications@github.com geschrieben:

Same error here

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ChristianKuehnel/plantgateway/issues/9#issuecomment-447100170, or mute the thread https://github.com/notifications/unsubscribe-auth/ATCWCGgK9h1XmUNi68CM6gSHeAiUbbDFks5u4rEygaJpZM4M-uXO .