Dir ist ein schreibfehler bei wert2 passiert.
Code: Alles auswählen
wert2=influxdb,127.0.0.1,sol[b]s[/b]aranzeige,Batterie,SOC
Richtig ist.
Code: Alles auswählen
[app-pv]
# Werte für Anzeige PV
wert1=influxdb,127.0.0.1,solaranzeige,PV,Leistung
wert2=influxdb,127.0.0.1,solaranzeige,Batterie,SOC
wert3=influxdb,127.0.0.1,solaranzeige,Summen,Wh_Heute
So, jetzt bekomme ich neue Meldung.
Code: Alles auswählen
pi@solaranzeige:~ $ awtrix3connect
AWTRIX 3 erreichbar, Version: 0.96, Ram: 133216
!['06:43', '06:13', '20:18', '23:18']
Mond -> Mond zunehmend
Startzeit: 06:13, Stopzeit: 23:18
aktuell -> ON
{'text': ' AWTRIX 3 Connector -> Version 0.1.0', 'rainbow': True, 'rtttl': 's:d=4,o=6,b=185:c,p,c,p,c', 'repeat': 2}
Der aktuelle Modus ist Day und die Helligkeit entsprechend gesetzt.
! run_true ist: 1 Loop startet...
Traceback (most recent call last):
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/lib/python3.11/http/client.py", line 975, in send
self.connect()
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connection.py", line 238, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connection.py", line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb376f910>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/.env/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8086): Max retries exceeded with url: /query?q=SELECT+last%28%22Leistung%22%29+FROM+%22PV%22&db=solaranzeige (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb376f910>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/scripts/AWTRIX3-Connector/./awtrix3connect.py", line 120, in <module>
data = query_database(app, group, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/scripts/AWTRIX3-Connector/funktionen.py", line 77, in query_database
result = client.query(query)
^^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/influxdb/client.py", line 521, in query
response = self.request(
^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/influxdb/client.py", line 332, in request
response = self._session.request(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.env/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8086): Max retries exceeded with url: /query?q=SELECT+last%28%22Leistung%22%29+FROM+%22PV%22&db=solaranzeige (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb376f910>: Failed to establish a new connection: [Errno 111] Connection refused'))