Code: Alles auswählen
bash ./install.sh
Code: Alles auswählen
bash ./install.sh
Code: Alles auswählen
login as: pi
pi@solaranzeige.local's password:
Linux solaranzeige 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64
Software Version 5.1.1 [32Bit] basic Juni 2023
Software Version 5.1.1d update September 2023
Software Version 5.1.3b update Februar 2024
Last login: Wed May 1 21:56:35 2024 from 192.168.0.16
pi@solaranzeige:~ $ bash ./install.sh
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
git ist schon die neueste Version (1:2.30.2-1+deb11u2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
0
Debian 11 erkannt. Führe Installationen für Debian 11 aus...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Hinweis: »python3-pip« wird an Stelle von »pip« gewählt.
python3-pip ist schon die neueste Version (20.3.4-4+rpt1+deb11u1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
python3-venv ist schon die neueste Version (3.9.2-3).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting requests
Using cached https://www.piwheels.org/simple/requests/requests-2.31.0-py3-none-any.whl (62 kB)
Collecting idna<4,>=2.5
Using cached https://www.piwheels.org/simple/idna/idna-3.7-py3-none-any.whl (66 kB)
Collecting certifi>=2017.4.17
Using cached https://www.piwheels.org/simple/certifi/certifi-2024.2.2-py3-none-any.whl (163 kB)
Collecting charset-normalizer<4,>=2
Using cached https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
Collecting urllib3<3,>=1.21.1
Using cached https://www.piwheels.org/simple/urllib3/urllib3-2.2.1-py3-none-any.whl (121 kB)
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
Successfully installed certifi-2024.2.2 charset-normalizer-3.3.2 idna-3.7 requests-2.31.0 urllib3-2.2.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ephem
Using cached https://www.piwheels.org/simple/ephem/ephem-4.1.5-cp39-cp39-linux_armv7l.whl (1.7 MB)
Installing collected packages: ephem
Successfully installed ephem-4.1.5
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting schedule
Using cached https://www.piwheels.org/simple/schedule/schedule-1.2.1-py3-none-any.whl (11 kB)
Installing collected packages: schedule
Successfully installed schedule-1.2.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting influxdb
Using cached https://www.piwheels.org/simple/influxdb/influxdb-5.3.2-py2.py3-none-any.whl (79 kB)
Collecting msgpack
Using cached https://www.piwheels.org/simple/msgpack/msgpack-1.0.8-cp39-cp39-linux_armv7l.whl (344 kB)
Requirement already satisfied: requests>=2.17.0 in ./.env/lib/python3.9/site-packages (from influxdb) (2.31.0)
Collecting six>=1.10.0
Using cached https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pytz
Using cached https://www.piwheels.org/simple/pytz/pytz-2024.1-py3-none-any.whl (505 kB)
Collecting python-dateutil>=2.6.0
Using cached https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Requirement already satisfied: idna<4,>=2.5 in ./.env/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (3.7)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.env/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (3.3.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./.env/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in ./.env/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (2024.2.2)
Installing collected packages: six, pytz, python-dateutil, msgpack, influxdb
Successfully installed influxdb-5.3.2 msgpack-1.0.8 python-dateutil-2.9.0.post0 pytz-2024.1 six-1.16.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting mysql-connector-python
Using cached mysql_connector_python-8.4.0-py2.py3-none-any.whl (565 kB)
Installing collected packages: mysql-connector-python
Successfully installed mysql-connector-python-8.4.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting psycopg2-binary
Using cached https://www.piwheels.org/simple/psycopg2-binary/psycopg2_binary-2.9.9-cp39-cp39-linux_armv7l.whl (431 kB)
Installing collected packages: psycopg2-binary
Successfully installed psycopg2-binary-2.9.9
Klone nach 'AWTRIX3-Connector' ...
remote: Enumerating objects: 291, done.
remote: Counting objects: 100% (178/178), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 291 (delta 90), reused 128 (delta 59), pack-reused 113
Empfange Objekte: 100% (291/291), 127.47 KiB | 713.00 KiB/s, fertig.
Löse Unterschiede auf: 100% (147/147), fertig.
Instanz 0 erstellen!
mv: das Verschieben von 'AWTRIX3-Connector' nach '/home/pi/scripts/AWTRIX3-Connector/AWTRIX3-Connector' ist nicht möglich: Das Verzeichnis ist nicht leer
Nach erfolgreicher Konfiguration und Test, den Dienst starten nicht vergessen!
Installation beendet ! Have Fun !
pi@solaranzeige:~ $
Code: Alles auswählen
pi@solaranzeige:~ $ awtrix3connect
Traceback (most recent call last):
File "/home/pi/scripts/AWTRIX3-Connector/./awtrix3connect.py", line 40, in <module>
from funktionen import (
File "/home/pi/scripts/AWTRIX3-Connector/funktionen.py", line 12, in <module>
import psycopg2
File "/home/pi/.env/lib/python3.9/site-packages/psycopg2/__init__.py", line 51, in <module>
from psycopg2._psycopg import ( # noqa
ImportError: libpq.so.5: cannot open shared object file: No such file or directory
pi@solaranzeige:~/scripts/AWTRIX3-Connector $
Code: Alles auswählen
#import psycopg2
Code: Alles auswählen
/home/pi/.env/bin/pip3 freeze
Code: Alles auswählen
pi@solaranzeige:~ $ /home/pi/.env/bin/pip3 freeze
certifi==2024.2.2
charset-normalizer==3.3.2
ephem==4.1.5
idna==3.7
influxdb==5.3.2
msgpack==1.0.8
mysql-connector-python==8.4.0
psycopg2-binary==2.9.9
python-dateutil==2.9.0.post0
pytz==2024.1
requests==2.31.0
schedule==1.2.1
six==1.16.0
urllib3==2.2.1
pi@solaranzeige:~ $
Code: Alles auswählen
pi@solaranzeige:~ $ awtrix3connect
Traceback (most recent call last):
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
OSError: [Errno 113] No route to host
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connectionpool.py", l ine 793, in urlopen
response = self._make_request(
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connectionpool.py", l ine 496, in _make_request
conn.request(
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/lib/python3.9/http/client.py", line 950, in send
self.connect()
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connection.py", line 238, in connect
self.sock = self._new_conn()
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connection.py", line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection objec t at 0xf60fe778>: Failed to establish a new connection: [Errno 113] No route to host
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/.env/lib/python3.9/site-packages/requests/adapters.py", line 4 86, in send
resp = conn.urlopen(
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/connectionpool.py", l ine 847, in urlopen
retries = retries.increment(
File "/home/pi/.env/lib/python3.9/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-typ e]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.0.26', port= 80): Max retries exceeded with url: /api/stats (Caused by NewConnectionError('< urllib3.connection.HTTPConnection object at 0xf60fe778>: Failed to establish a new connection: [Errno 113] No route to host'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/scripts/AWTRIX3-Connector/./awtrix3connect.py", line 166, in < module>
main()
File "/home/pi/scripts/AWTRIX3-Connector/./awtrix3connect.py", line 72, in ma in
status = get_awtrix_version(config["awtrix3"]["url"] + "/api/stats")
File "/home/pi/scripts/AWTRIX3-Connector/funktionen.py", line 502, in get_awt rix_version
response = requests.get(url, timeout=10)
File "/home/pi/.env/lib/python3.9/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/home/pi/.env/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/pi/.env/lib/python3.9/site-packages/requests/sessions.py", line 5 89, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/.env/lib/python3.9/site-packages/requests/sessions.py", line 7 03, in send
r = adapter.send(request, **kwargs)
File "/home/pi/.env/lib/python3.9/site-packages/requests/adapters.py", line 5 19, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.0.26', po rt=80): Max retries exceeded with url: /api/stats (Caused by NewConnectionError ('<urllib3.connection.HTTPConnection object at 0xf60fe778>: Failed to establish a new connection: [Errno 113] No route to host'))