Git Product home page Git Product logo

docker-plantgateway's People

Contributors

pschmitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

beosro

docker-plantgateway's Issues

Can't read sensors

So im trying to run this on a PI 3 running ´HypriotOS` (old version).

But when i run the docker container with the following command: docker run --rm --cap-add NET_ADMIN --net=host --device /dev/ttyAMA0 -v /data/plantgateway:/root:ro pschmitt/plantgateway

i get the following output:

Mon, 14 May 2018 17:37:48 INFO     PlantGateway version 0.5.0
Mon, 14 May 2018 17:37:48 INFO     loaded config file from /root/.plantgw.yaml
Mon, 14 May 2018 17:37:48 INFO     Getting data from sensor plant1
Mon, 14 May 2018 17:37:48 ERROR    could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:48 INFO     Getting data from sensor plant2
Mon, 14 May 2018 17:37:48 ERROR    could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:48 INFO     Getting data from sensor plant3
Mon, 14 May 2018 17:37:48 ERROR    could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:48 INFO     Getting data from sensor plant4
Mon, 14 May 2018 17:37:48 ERROR    could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:48 INFO     Getting data from sensor plant5
Mon, 14 May 2018 17:37:48 ERROR    could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:48 INFO     Getting data from sensor plant6
Mon, 14 May 2018 17:37:48 ERROR    could not read data from C4:7C:8D:63:7C:15 (plant6) with reason: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:48 WARNING  fail_silent is set for sensor plant6, so not raising an exception.
Mon, 14 May 2018 17:37:48 INFO     try 1 of 6: could not process sensor(s) plant1, plant2, plant3, plant4, plant5, plant6 (fail silent). Waiting 1 sec for next try
Mon, 14 May 2018 17:37:49 INFO     Getting data from sensor plant1
Mon, 14 May 2018 17:37:49 ERROR    could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:49 INFO     Getting data from sensor plant2
Mon, 14 May 2018 17:37:49 ERROR    could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:49 INFO     Getting data from sensor plant3
Mon, 14 May 2018 17:37:49 ERROR    could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:49 INFO     Getting data from sensor plant4
Mon, 14 May 2018 17:37:49 ERROR    could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:49 INFO     Getting data from sensor plant5
Mon, 14 May 2018 17:37:49 ERROR    could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:49 INFO     Getting data from sensor plant6
Mon, 14 May 2018 17:37:49 ERROR    could not read data from C4:7C:8D:63:7C:15 (plant6) with reason: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:49 WARNING  fail_silent is set for sensor plant6, so not raising an exception.
Mon, 14 May 2018 17:37:49 INFO     try 2 of 6: could not process sensor(s) plant1, plant2, plant3, plant4, plant5, plant6 (fail silent). Waiting 2 sec for next try
Mon, 14 May 2018 17:37:51 INFO     Getting data from sensor plant1
Mon, 14 May 2018 17:37:51 ERROR    could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:51 INFO     Getting data from sensor plant2
Mon, 14 May 2018 17:37:51 ERROR    could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:51 INFO     Getting data from sensor plant3
Mon, 14 May 2018 17:37:51 ERROR    could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:51 INFO     Getting data from sensor plant4
Mon, 14 May 2018 17:37:51 ERROR    could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:51 INFO     Getting data from sensor plant5
Mon, 14 May 2018 17:37:51 ERROR    could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:51 INFO     Getting data from sensor plant6
Mon, 14 May 2018 17:37:51 ERROR    could not read data from C4:7C:8D:63:7C:15 (plant6) with reason: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:51 WARNING  fail_silent is set for sensor plant6, so not raising an exception.
Mon, 14 May 2018 17:37:51 INFO     try 3 of 6: could not process sensor(s) plant1, plant2, plant3, plant4, plant5, plant6 (fail silent). Waiting 4 sec for next try
Mon, 14 May 2018 17:37:55 INFO     Getting data from sensor plant1
Mon, 14 May 2018 17:37:55 ERROR    could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:55 INFO     Getting data from sensor plant2
Mon, 14 May 2018 17:37:56 ERROR    could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:56 INFO     Getting data from sensor plant3
Mon, 14 May 2018 17:37:56 ERROR    could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:56 INFO     Getting data from sensor plant4
Mon, 14 May 2018 17:37:56 ERROR    could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:56 INFO     Getting data from sensor plant5
Mon, 14 May 2018 17:37:56 ERROR    could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:56 INFO     Getting data from sensor plant6
Mon, 14 May 2018 17:37:56 ERROR    could not read data from C4:7C:8D:63:7C:15 (plant6) with reason: [Errno 111] Connection refused
Mon, 14 May 2018 17:37:56 WARNING  fail_silent is set for sensor plant6, so not raising an exception.
Mon, 14 May 2018 17:37:56 INFO     try 4 of 6: could not process sensor(s) plant1, plant2, plant3, plant4, plant5, plant6 (fail silent). Waiting 8 sec for next try
Mon, 14 May 2018 17:38:04 INFO     Getting data from sensor plant1
Mon, 14 May 2018 17:38:04 ERROR    could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:04 INFO     Getting data from sensor plant2
Mon, 14 May 2018 17:38:04 ERROR    could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:04 INFO     Getting data from sensor plant3
Mon, 14 May 2018 17:38:04 ERROR    could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:04 INFO     Getting data from sensor plant4
Mon, 14 May 2018 17:38:04 ERROR    could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:04 INFO     Getting data from sensor plant5
Mon, 14 May 2018 17:38:04 ERROR    could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:04 INFO     Getting data from sensor plant6
Mon, 14 May 2018 17:38:04 ERROR    could not read data from C4:7C:8D:63:7C:15 (plant6) with reason: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:04 WARNING  fail_silent is set for sensor plant6, so not raising an exception.
Mon, 14 May 2018 17:38:04 INFO     try 5 of 6: could not process sensor(s) plant1, plant2, plant3, plant4, plant5, plant6 (fail silent). Waiting 16 sec for next try
Mon, 14 May 2018 17:38:20 INFO     Getting data from sensor plant1
Mon, 14 May 2018 17:38:20 ERROR    could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:20 INFO     Getting data from sensor plant2
Mon, 14 May 2018 17:38:20 ERROR    could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:20 INFO     Getting data from sensor plant3
Mon, 14 May 2018 17:38:20 ERROR    could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:20 INFO     Getting data from sensor plant4
Mon, 14 May 2018 17:38:20 ERROR    could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:20 INFO     Getting data from sensor plant5
Mon, 14 May 2018 17:38:20 ERROR    could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 212, in process_all
    self.process_mac(sensor)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 190, in process_mac
    self._publish(sensor_config, poller)
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 163, in _publish
    self.start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 137, in start_client
    self._start_client()
  File "/usr/local/lib/python3.6/site-packages/plantgw/plantgw.py", line 159, in _start_client
    self.mqtt_client.connect(self.config.mqtt_server, self.config.mqtt_port, 60)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:20 INFO     Getting data from sensor plant6
Mon, 14 May 2018 17:38:20 ERROR    could not read data from C4:7C:8D:63:7C:15 (plant6) with reason: [Errno 111] Connection refused
Mon, 14 May 2018 17:38:20 WARNING  fail_silent is set for sensor plant6, so not raising an exception.
could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:62:D3:19 (plant1) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:7D:BE (plant2) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:40:8A (plant3) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:BE (plant4) with reason: [Errno 111] Connection refused
could not read data from C4:7C:8D:63:81:C5 (plant5) with reason: [Errno 111] Connection refused
Could not get data from 6sensor(s): plant1, plant2, plant3, plant4, plant5, plant6 (fail silent).
Mon, 14 May 2018 17:38:20 INFO     Disconnected MQTT connection

And i have the following configuration file:

mqtt:
    server: 192.168.0.7
    prefix: plants/
    client_id: PlantGateway
sensors:
    # bluetooth mac of the sensor, mandatory
    - mac: C4:7C:8D:62:D3:19
      alias: plant1
    - mac: C4:7C:8D:63:7D:BE
      alias: plant2
    - mac: C4:7C:8D:63:40:8A
      alias: plant3
    - mac: C4:7C:8D:63:81:BE
      alias: plant4
    - mac: C4:7C:8D:63:81:C5
      alias: plant5
    - mac: C4:7C:8D:63:7C:15
      alias: plant6
      fail_silent:

I have verified my MAC addresses by using sudo hcitool lescan and even tried to read some data with sudo gatttool --device=C4:7C:8D:63:7C:15 --char-read -a 0x35 and it worked!!

What am i doing wrong?

Additional question will this run once or repeat every hour?

Thank you!

Thank you for this! I was going to do the same but found your project.
No problem at all using it with Hass.io ;-) Just had to google around for docker hub image.

Thank you @pschmitt !

Error connection refused

Hi i am getting Connection Refused.

Fri, 03 Aug 2018 22:52:36 INFO     PlantGateway version 0.5.0
Fri, 03 Aug 2018 22:52:36 INFO     loaded config file from /root/.plantgw.yaml
Fri, 03 Aug 2018 22:52:36 INFO     Getting data from sensor Achtertuin
Fri, 03 Aug 2018 22:52:36 ERROR    could not read data from C4:7C:8D:66:E8:89 (Achtertuin) with reason: [Errno 111] Connection refused
Fri, 03 Aug 2018 22:52:36 WARNING  fail_silent is set for sensor Achtertuin, so not raising an exception.

plantgw:

    - mac: C4:7C:8D:66:E8:89
      alias: Achtertuin
      fail_silent:

using latest version in Docker. Docker config:

  plantgateway:
    image: this_image:latest
    container_name: PlantGateway
    restart: always
    network_mode: host
    volumes:
      - /home/docker/plantgateway/config:/config
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro

Can not start plantgateway docker, can't initialize device: invalid argument

After downloading the docker image https://hub.docker.com/r/pschmitt/plantgateway/, edited the .plantgw.yaml in the home folder of the RPi3, the docker image can not start:

pi@raspberrypi:~ $ sudo docker run pschmitt/plantgateway
Initializing hci0
Can't open serial port: No such file or directory
Can't initialize device: Invalid argument
Retrying initialization
Can't open serial port: No such file or directory
Can't initialize device: Invalid argument

Because the bluetooth interface seems to be on hci0, I did not change that part in the .plantgw.yaml.

Here is a prinscreen where I scan for bluetooth devices, list the bluetooth interfaces and then start the docker: https://i.imgur.com/US433nV.png

Can you point me in the right direction?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.