Giter Site home page Giter Site logo

balena-enviro-plus's Issues

Connection dropped out to influx.

2020-04-06 12:45:13.183 INFO Luftdaten response: OK
2020-04-06 12:45:47.382 INFO Luftdaten response: OK
2020-04-06 12:46:27.460 WARNING Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c8490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2020-04-06 12:47:07.593 WARNING Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2020-04-06 12:47:40.751 INFO Luftdaten response: OK
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.7/http/client.py", line 1336, in getresponse
response.begin()
File "/usr/local/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.7/ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.7/ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "enviroplus_exporter.py", line 169, in post_to_influxdb
influxdb_api.write(bucket=INFLUXDB_BUCKET, record=data_points)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/client/write_api.py", line 218, in write
return self._post_write(_async_req, bucket, org, final_string, write_precision)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/client/write_api.py", line 295, in _post_write
content_type="text/plain; charset=utf-8")
File "/usr/local/lib/python3.7/site-packages/influxdb_client/service/write_service.py", line 62, in post_write
(data) = self.post_write_with_http_info(org, bucket, body, **kwargs) # noqa: E501
File "/usr/local/lib/python3.7/site-packages/influxdb_client/service/write_service.py", line 175, in post_write_with_http_info
collection_formats=collection_formats)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/api_client.py", line 339, in call_api
_preload_content, _request_timeout)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/api_client.py", line 170, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/api_client.py", line 382, in request
body=body)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/rest.py", line 278, in POST
body=body)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/rest.py", line 201, in request
headers=headers)
File "/usr/local/lib/python3.7/site-packages/urllib3/request.py", line 80, in request
method, url, fields=fields, headers=headers, **urlopen_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/request.py", line 171, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/usr/local/lib/python3.7/site-packages/urllib3/poolmanager.py", line 330, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 400, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.7/http/client.py", line 1336, in getresponse
response.begin()
File "/usr/local/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.7/ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.7/ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-06 12:48:13.813 INFO Luftdaten response: OK
2020-04-06 12:48:47.007 INFO Luftdaten response: OK
2020-04-06 12:49:20.275 INFO Luftdaten response: OK
2020-04-06 12:49:53.380 INFO Luftdaten response: OK
2020-04-06 12:50:26.445 INFO Luftdaten response: OK

Unable to get the Docker Image to run

Hi,
I'm very much a beginner to programming and running a headless Pi Zero, so please forgive me if there is something obvious that I have missed, but I've been having a few problems getting this project to run and wondered if anyone could help.

The first problem (which I think I found a workaround for) is that after following the first couple of steps, when I try to build the Docker image using docker build -t sighmon/enviroplus_exporter:v1 ., I get the following error:

Sending build context to Docker daemon  2.146MB
Step 1/25 : FROM sighmon/balena-enviro-plus:v1
 ---> 6c1b56c59a84
Step 2/25 : WORKDIR /usr/src
 ---> Using cache
 ---> 32084b60b331
Step 3/25 : RUN sudo pip3 install --upgrade setuptools && sudo pip3 install     adafruit-circuitpython-lc709203f     influxdb-client     prometheus_client     python-periphery     SafecastPy
 ---> Using cache
 ---> 3fe3ddf2c904
Step 4/25 : COPY enviroplus_exporter/enviroplus_exporter.py enviroplus_exporter.py
 ---> b35f73bf4d03
Step 5/25 : COPY enviroplus_exporter/notecard/notecard/notecard.py notecard/notecard/notecard.py
COPY failed: file not found in build context or excluded by .dockerignore: stat enviroplus_exporter/notecard/notecard/notecard.py: file does not exist

To get around this, I have cloned the directory from the original repo as follows (having navigated to pi@raspberrypi:~/balena-enviro-plus/enviroplus_exporter/notecard first):
git clone https://github.com/blues/note-python.git

And then moving the files up into the correct filepath.

This seems to allow the Docker Image to build successfully:

Sending build context to Docker daemon   2.82MB
Step 1/25 : FROM sighmon/balena-enviro-plus:v1
 ---> 6c1b56c59a84
Step 2/25 : WORKDIR /usr/src
 ---> Using cache
 ---> 32084b60b331
Step 3/25 : RUN sudo pip3 install --upgrade setuptools && sudo pip3 install     adafruit-circuitpython-lc709203f     influxdb-client     prometheus_client     python-periphery     SafecastPy
 ---> Using cache
 ---> 3fe3ddf2c904
Step 4/25 : COPY enviroplus_exporter/enviroplus_exporter.py enviroplus_exporter.py
 ---> Using cache
 ---> b35f73bf4d03
Step 5/25 : COPY enviroplus_exporter/notecard/notecard/notecard.py notecard/notecard/notecard.py
 ---> 22276a85dde1
Step 6/25 : ENV INFLUXDB_URL="https://location.gcp.cloud2.influxdata.com"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 574418c8438a
Removing intermediate container 574418c8438a
 ---> 7834ae3ed782
Step 7/25 : ENV INFLUXDB_TOKEN="your_token"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in f498816d855b
Removing intermediate container f498816d855b
 ---> 0c4e417fcf81
Step 8/25 : ENV INFLUXDB_ORG_ID="your_organisation_id"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 329a770aa92c
Removing intermediate container 329a770aa92c
 ---> a4c520326567
Step 9/25 : ENV INFLUXDB_BUCKET="your_bucket_name"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 2ed1f62919d0
Removing intermediate container 2ed1f62919d0
 ---> 30080e1f0819
Step 10/25 : ENV INFLUXDB_SENSOR_LOCATION="your_sensor_location"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 08593262b803
Removing intermediate container 08593262b803
 ---> b909a26388d6
Step 11/25 : ENV INFLUXDB_TIME_BETWEEN_POSTS="number_of_seconds_between_posts"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in d2731fa9bae5
Removing intermediate container d2731fa9bae5
 ---> caf56ea83701
Step 12/25 : ENV LUFTDATEN_TIME_BETWEEN_POSTS="30"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in eea90f08d7af
Removing intermediate container eea90f08d7af
 ---> 4681a6eb4059
Step 13/25 : ENV SAFECAST_TIME_BETWEEN_POSTS="300"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in b6b7beeab5d1
Removing intermediate container b6b7beeab5d1
 ---> f3e11b8b916a
Step 14/25 : ENV SAFECAST_DEV_MODE="false"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in f5dc91b63f1f
Removing intermediate container f5dc91b63f1f
 ---> b0487fa12e2d
Step 15/25 : ENV SAFECAST_API_KEY="your_api_key"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in a6ba486508e5
Removing intermediate container a6ba486508e5
 ---> fd79042a4cb6
Step 16/25 : ENV SAFECAST_API_KEY_DEV="your_dev_api_key"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 6b900181bb49
Removing intermediate container 6b900181bb49
 ---> 1491fdde2c83
Step 17/25 : ENV SAFECAST_LATITUDE="your_sensor_latitude"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 05c5862c3cf8
Removing intermediate container 05c5862c3cf8
 ---> efe6fb684e2e
Step 18/25 : ENV SAFECAST_LONGITUDE="your_sensor_longitude"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 44a3c975f12a
Removing intermediate container 44a3c975f12a
 ---> 9985f3619869
Step 19/25 : ENV SAFECAST_DEVICE_ID="226"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in d3c306fc9324
Removing intermediate container d3c306fc9324
 ---> 6332f13ed15d
Step 20/25 : ENV SAFECAST_LOCATION_NAME="your_sensor_location"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in ecfcd7ecf999
Removing intermediate container ecfcd7ecf999
 ---> fd1f6a8dfa24
Step 21/25 : ENV NOTECARD_TIME_BETWEEN_POSTS="600"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 12e005c432f9
Removing intermediate container 12e005c432f9
 ---> 111c7bb4a9dd
Step 22/25 : ENV DEBUG="true"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 7f5ab055b6f4
Removing intermediate container 7f5ab055b6f4
 ---> 096c344fabd7
Step 23/25 : ENV TEMPERATURE_COMPENSATION="6.6"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 40f5057ae344
Removing intermediate container 40f5057ae344
 ---> 698b2f782462
Step 24/25 : ENV HUMIDITY_COMPENSATION="24.7"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 967ae9546d8e
Removing intermediate container 967ae9546d8e
 ---> ce34733c15d3
Step 25/25 : CMD ["sh", "-c", "modprobe i2c-dev && python3 enviroplus_exporter.py --temp $TEMPERATURE_COMPENSATION --humid $HUMIDITY_COMPENSATION --influxdb true --luftdaten true"]
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in caa549ea13ea
Removing intermediate container caa549ea13ea
 ---> 7a91668b51fa
Successfully built 7a91668b51fa
Successfully tagged sighmon/enviroplus_exporter:v1

The next problem is, though, that after running docker run -d --privileged -p 8000:8000 sighmon/enviroplus_exporter:v1, I get the readout below and when I try to check the result on raspberrypi.local:8000 (and through the pi's local IP:8000), no page exists.

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
44d1d31bd9aefb9316435c75acea29864d1a00772baac729f18db0d88ee786a3

Running docker ps also only brings up the headers with no further information as below:

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

I assume that once I have been able to get the Dockerfile to run, I should be entering my influxDB credentials, etc. into it, but I'm a bit stuck on how to proceed at the moment, so any ideas as to what I can do to solve this would be greatly appreciated.
(Simple instructions that I can copy and paste into the terminal would be especially helpful!)
Thanks!

Connection dropped out again.. no idea why this time

so look at the InfluxDB logs and it dropped out again after abut a day...

I might just crontab and restart the container every 12 hours ;)

2020-04-07 12:47:54.394 INFO     Using compensating algorithm (factor=2.25) to account for heat leakage from Raspberry Pi board
2020-04-07 12:47:54.398 INFO     Sensor data will be posted to InfluxDB every 5 seconds
2020-04-07 12:47:54.406 INFO     Sensor data will be posted to Luftdaten every 30 seconds for the UID raspi-000000000808b651
2020-04-07 12:47:54.413 INFO     Listening on http://0.0.0.0:8000
2020-04-07 13:49:30.764 WARNING  Exception sending to InfluxDB: (503)
Reason: Service Unavailable
HTTP response headers: HTTPHeaderDict({'Date': 'Tue, 07 Apr 2020 13:49:30 GMT', 'Content-Type': 'text/plain', 'Content-Length': '91', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: upstream connect error or disconnect/reset before headers. reset reason: connection failure

2020-04-07 14:07:28.790 WARNING  Luftdaten response: Failed
2020-04-07 14:09:17.266 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:10:19.345 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bd90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:12:13.905 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439be70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:13:15.985 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e8f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:14:18.065 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c6410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 15:41:11.125 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 16:20:15.356 WARNING  Exception sending to InfluxDB: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 17:10:38.546 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439ba70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 17:59:47.369 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2020-04-07 18:10:32.146 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ec50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 18:34:58.391 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b730>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 19:00:55.506 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d9410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 19:02:10.386 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d95b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 19:42:33.858 WARNING  Luftdaten response: Failed
2020-04-07 19:45:53.746 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 20:10:41.752 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 20:12:05.864 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 20:17:26.871 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c1530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 21:09:43.506 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c1bf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:02:25.105 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bc70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:11:21.426 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:12:37.660 WARNING  Luftdaten response: Failed
2020-04-07 22:14:33.432 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:15:35.511 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d16d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:16:37.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:17:39.666 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1eb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:20:49.105 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439ba70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:22:05.265 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:30:01.078 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 22:37:39.921 WARNING  Luftdaten response: Failed
2020-04-07 22:40:44.275 WARNING  Luftdaten response: Failed
2020-04-07 23:01:46.711 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:07:42.551 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1270>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:08:44.626 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554efd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:13:16.890 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 23:19:59.677 WARNING  Luftdaten response: Failed
2020-04-07 23:28:06.827 WARNING  Luftdaten response: Failed
2020-04-07 23:40:40.785 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bf10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:41:42.866 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1370>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:03:07.352 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:09:19.831 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b690>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:12:12.625 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bf90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:15:59.450 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 00:21:24.306 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d19d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:25:41.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1ff0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:29:07.672 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:30:54.546 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1670>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:35:55.346 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d17f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:37:57.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:41:05.378 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 00:42:48.786 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bdd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:44:29.912 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439be10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:51:40.244 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 00:55:55.985 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1810>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:59:01.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d17f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:01:44.786 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d15f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:03:02.225 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b1b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:04:04.305 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:09:09.845 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:10:12.306 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1050>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:15:02.231 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439beb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:21:37.364 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:23:34.866 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:25:37.751 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e4f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:28:36.946 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:32:42.339 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:41:08.306 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b890>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:42:10.385 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bfb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:49:49.532 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:50:51.986 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d16f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:03:31.301 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:05:46.712 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b8b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:08:42.065 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:09:44.146 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:12:07.506 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ebf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:16:56.146 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1870>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:19:50.865 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:23:42.108 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:24:44.625 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43ca350>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:27:17.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43ca550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:28:19.666 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43cab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:31:57.265 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:34:41.106 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b950>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:40:29.612 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:41:47.346 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43cf250>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:49:40.035 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:52:59.346 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:00:49.746 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b330>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:02:00.786 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b7d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:04:40.151 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:09:33.545 WARNING  Luftdaten response: Failed
2020-04-08 03:10:35.986 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ec10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:13:32.626 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b890>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:30:51.986 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bf70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:39:47.027 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:41:08.946 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:00:51.026 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b6d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:05:44.785 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:08:36.056 WARNING  Luftdaten response: Failed
2020-04-08 04:09:38.386 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:57:22.465 WARNING  Exception sending to Luftdaten: ('Connection aborted.', OSError(0, 'Error'))
2020-04-08 05:01:32.628 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439be70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 05:11:29.105 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43ca1b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 14:05:20.146 WARNING  Exception sending to InfluxDB: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:05:20 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '380', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'x-platform-error-code': 'internal error'})
HTTP response body: {"code":"internal error","message":"unexpected error writing points to database: rpc error: code = Unauthenticated desc = transport: Get http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token?scopes=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpubsub: net/http: timeout awaiting response headers"}

2020-04-08 14:07:26.514 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:07:25 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:09:31.813 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:09:31 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:11:37.084 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:11:36 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:13:47.831 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:13:47 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:16:04.073 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:16:03 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:18:09.365 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:18:09 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:20:20.206 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:20:20 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:22:25.474 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:22:25 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-08 14:24:42.198 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:24:41 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>


2020-04-10 15:55:53.799 INFO     enviroplus_exporter.py - Expose readings from the Enviro+ sensor by Pimoroni in Prometheus format

Press Ctrl+C to exit!


2020-04-10 15:55:54.182 INFO     Using compensating algorithm (factor=2.25) to account for heat leakage from Raspberry Pi board
2020-04-10 15:55:54.186 INFO     Sensor data will be posted to InfluxDB every 5 seconds
2020-04-10 15:55:54.195 INFO     Sensor data will be posted to Luftdaten every 30 seconds for the UID raspi-000000000808b651
2020-04-10 15:55:54.201 INFO     Listening on http://0.0.0.0:8000

Docker Build Failed

Hi, I'm quite new to Docker and Pi projects in general.
I've been trying to get this project to work for a few days now, but have kept hitting the same wall when trying to build the Docker. After typing in docker build -t sighmon/enviroplus_exporter:v1 ., I get the dialog below. (tldr: the system cannot copy enviroplus_exporter/notecard/notecard/notecard.py).
Any ideas on what to do with this error? A step by step guide for a dummy like me would be greatly appreciated!
(Using a Pi Zero with Enviro+ board and PMS5003 particulate monitor, for your reference).

Cheers!

Step 1/25 : FROM sighmon/balena-enviro-plus:v1
v1: Pulling from sighmon/balena-enviro-plus
ffe15ac77465: Pull complete 
204eda513e41: Pull complete 
bc094b29b89f: Pull complete 
76103017980a: Pull complete 
12d536eab3f1: Pull complete 
a94150a49fe5: Pull complete 
08b3da0eac65: Pull complete 
2bbc83351a7f: Pull complete 
b58c69af2882: Pull complete 
98f7b96043e5: Pull complete 
b3835cdc70cc: Pull complete 
27a421cb0afb: Pull complete 
535c781662ea: Pull complete 
555259908d66: Pull complete 
5b9cec28024c: Pull complete 
8ea8f25695ce: Pull complete 
4c93a2f4616a: Pull complete 
bae26e32d188: Pull complete 
b56961f10446: Pull complete 
1fa1d2228cdd: Pull complete 
03afa7c522c2: Pull complete 
5496b7dfb38e: Pull complete 
39371dbbef98: Pull complete 
e2179a61577e: Pull complete 
Digest: sha256:ca649f624c449fbc9d5bcfabb2403fe243473fbc01475db397bd2a369b062850
Status: Downloaded newer image for sighmon/balena-enviro-plus:v1
 ---> 6c1b56c59a84
Step 2/25 : WORKDIR /usr/src
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 6efe74c66fda
Removing intermediate container 6efe74c66fda
 ---> a3bbe38b79d1
Step 3/25 : RUN sudo pip3 install --upgrade setuptools && sudo pip3 install     adafruit-circuitpython-lc709203f     influxdb-client     prometheus_client     python-periphery     SafecastPy
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in 139e72c8b8e7
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/bd/25/5bdf7f1adeebd4e3fa76b2e2f045ae53ee208e40a4231ad0f0c3007e4353/setuptools-57.4.0-py3-none-any.whl (819kB)
Installing collected packages: setuptools
  Found existing installation: setuptools 41.0.1
    Uninstalling setuptools-41.0.1:
      Successfully uninstalled setuptools-41.0.1
Successfully installed setuptools-57.4.0
WARNING: You are using pip version 19.2.1, however version 21.1.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting adafruit-circuitpython-lc709203f
  Downloading https://files.pythonhosted.org/packages/c0/53/9deb2f6135a57df08beaf151d5fdebad0a17bb3626b1ce8f531837c21658/adafruit-circuitpython-lc709203f-2.1.0.tar.gz
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting influxdb-client
  Downloading https://files.pythonhosted.org/packages/25/49/3378a53dd820b1251415800990588b3dabd486ce527157056c67152cf22b/influxdb_client-1.19.0-py3-none-any.whl (503kB)
Collecting prometheus_client
  Downloading https://files.pythonhosted.org/packages/09/da/4e8471ff825769581593b5b84769d32f58e5373b59fccaf355d3529ad530/prometheus_client-0.11.0-py2.py3-none-any.whl (56kB)
Collecting python-periphery
  Downloading https://files.pythonhosted.org/packages/00/2c/39f674e6cefd3ff8f2825d37efbb4f763eb0504ccb4405d05a498026845e/python_periphery-2.3.0-py2.py3-none-any.whl
Collecting SafecastPy
  Downloading https://files.pythonhosted.org/packages/e7/38/fb4ef0ae139570781127c0b342bd521316766f1fe34994a3b2bb0906c6d1/SafecastPy-0.1.1-py2.py3-none-any.whl
Collecting Adafruit-Blinka (from adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/d8/4d/bf54e6a792c7e374bd4ce36c59e87dcc9cc950b4ab1432abc5b7492d5427/Adafruit-Blinka-6.12.0.tar.gz (137kB)
Collecting adafruit-circuitpython-busdevice (from adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/09/b8/5a057c82715f22b90097a0c6fbaec75993a151f3f568664e9f9ad40d6384/adafruit-circuitpython-busdevice-5.0.6.tar.gz
Collecting adafruit-circuitpython-register (from adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/aa/b9/d8321c13d9d7661e88ac155b08f71d5ae2973aa4e127001c5ff8801aee08/adafruit-circuitpython-register-1.9.5.tar.gz
Requirement already satisfied: certifi>=14.05.14 in /usr/local/lib/python3.7/site-packages (from influxdb-client) (2019.11.28)
Collecting rx>=3.0.1 (from influxdb-client)
  Downloading https://files.pythonhosted.org/packages/e2/a9/efeaeca4928a9a56d04d609b5730994d610c82cf4d9dd7aa173e6ef4233e/Rx-3.2.0-py3-none-any.whl (199kB)
Requirement already satisfied: urllib3>=1.15.1 in /usr/local/lib/python3.7/site-packages (from influxdb-client) (1.25.8)
Requirement already satisfied: setuptools>=21.0.0 in /usr/local/lib/python3.7/site-packages (from influxdb-client) (57.4.0)
Requirement already satisfied: pytz>=2019.1 in /usr/local/lib/python3.7/site-packages (from influxdb-client) (2019.3)
Collecting six>=1.10 (from influxdb-client)
  Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.5.3 (from influxdb-client)
  Downloading https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
Requirement already satisfied: requests>=2.9.1 in /usr/local/lib/python3.7/site-packages (from SafecastPy) (2.23.0)
Collecting Adafruit-PlatformDetect>=3.13.0 (from Adafruit-Blinka->adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/58/31/a53cc50f6b3344530c3165ebd3521314b5acf07c6172f2193599ba683b41/Adafruit-PlatformDetect-3.15.3.tar.gz
Collecting Adafruit-PureIO>=1.1.7 (from Adafruit-Blinka->adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/df/ca/9162d4648669d12af16d5a66d808bdef6967eb684cbed9b1a3ebc19b361a/Adafruit_PureIO-1.1.9.tar.gz
Collecting pyftdi>=0.40.0 (from Adafruit-Blinka->adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/db/d4/2aa53587bca47757351093656b3137dbcea68349ae993a459d8d7d30fc87/pyftdi-0.53.2-py3-none-any.whl (141kB)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests>=2.9.1->SafecastPy) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests>=2.9.1->SafecastPy) (2.9)
Collecting pyusb<1.2.0,>=1.0.0 (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-lc709203f)
  Downloading https://files.pythonhosted.org/packages/12/9b/8f5be839753667c39fe522162bea7f8121f28ba49c5ad1e5681681967c79/pyusb-1.1.0.tar.gz (78kB)
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: pyserial>=3.0 in /usr/local/lib/python3.7/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-lc709203f) (3.4)
Building wheels for collected packages: adafruit-circuitpython-lc709203f, pyusb
  Building wheel for adafruit-circuitpython-lc709203f (PEP 517): started
  Building wheel for adafruit-circuitpython-lc709203f (PEP 517): finished with status 'done'
  Created wheel for adafruit-circuitpython-lc709203f: filename=adafruit_circuitpython_lc709203f-2.1.0-cp37-none-any.whl size=5891 sha256=6d7920c6d0ec0607a090d1117d2807a4111fe128ea1030baa906de210674defa
  Stored in directory: /root/.cache/pip/wheels/8a/ae/42/a816425cfe15293ec455f6cc16af0097edac1e1d6801daedaf
  Building wheel for pyusb (PEP 517): started
  Building wheel for pyusb (PEP 517): finished with status 'done'
  Created wheel for pyusb: filename=pyusb-1.1.0-cp37-none-any.whl size=58041 sha256=46e455ae50af5e301a4675cf0da4d7b37cd9737df0f2f2f45795eec093901932
  Stored in directory: /root/.cache/pip/wheels/ea/aa/e9/8796f45c3f3b836c0ca3cb86a97605f963a5139bc7cbddec9f
Successfully built adafruit-circuitpython-lc709203f pyusb
Installing collected packages: Adafruit-PlatformDetect, Adafruit-PureIO, pyusb, pyftdi, Adafruit-Blinka, adafruit-circuitpython-busdevice, adafruit-circuitpython-register, adafruit-circuitpython-lc709203f, rx, six, python-dateutil, influxdb-client, prometheus-client, python-periphery, SafecastPy
  Running setup.py install for Adafruit-PlatformDetect: started
    Running setup.py install for Adafruit-PlatformDetect: finished with status 'done'
  Running setup.py install for Adafruit-PureIO: started
    Running setup.py install for Adafruit-PureIO: finished with status 'done'
  Running setup.py install for Adafruit-Blinka: started
    Running setup.py install for Adafruit-Blinka: finished with status 'done'
  Running setup.py install for adafruit-circuitpython-busdevice: started
    Running setup.py install for adafruit-circuitpython-busdevice: finished with status 'done'
  Running setup.py install for adafruit-circuitpython-register: started
    Running setup.py install for adafruit-circuitpython-register: finished with status 'done'
Successfully installed Adafruit-Blinka-6.12.0 Adafruit-PlatformDetect-3.15.3 Adafruit-PureIO-1.1.9 SafecastPy-0.1.1 adafruit-circuitpython-busdevice-5.0.6 adafruit-circuitpython-lc709203f-2.1.0 adafruit-circuitpython-register-1.9.5 influxdb-client-1.19.0 prometheus-client-0.11.0 pyftdi-0.53.2 python-dateutil-2.8.2 python-periphery-2.3.0 pyusb-1.1.0 rx-3.2.0 six-1.16.0
WARNING: You are using pip version 19.2.1, however version 21.1.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Removing intermediate container 139e72c8b8e7
 ---> ce998cdc30cd
Step 4/25 : COPY enviroplus_exporter/enviroplus_exporter.py enviroplus_exporter.py
 ---> 8eeb58d4c62d
Step 5/25 : COPY enviroplus_exporter/notecard/notecard/notecard.py notecard/notecard/notecard.py
COPY failed: file not found in build context or excluded by .dockerignore: stat enviroplus_exporter/notecard/notecard/notecard.py: file does not exist```

Minor: DeprecationWarning

enviroplus_exporter.py:218: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
logging.warn('Luftdaten response: Failed')
2020-04-06 00:10:39.849 WARNING Luftdaten response: Failed

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.