NEWS
Fritzbox mit Grafana visualisieren [Version 2022]
-
@thomas-braun Sorry Thomas, da sind meine Kenntnisse noch zu gering. We räume ich das auf?
-
sudo nano /etc/apt/sources.list.d/grafana.list
Jede Quelle darf da nur einfach drin stehen.
-
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
pi@homebridge:/opt/fritzinfluxdb $ ./fritzinfluxdb.py Traceback (most recent call last): File "/opt/fritzinfluxdb/./fritzinfluxdb.py", line 18, in <module> import fritzconnection ModuleNotFoundError: No module named 'fritzconnection' pi@homebridge:/opt/fritzinfluxdb $
also bist du doch da im richtigen Verzeichnis,
pi@homebridge:/opt/fritzinfluxdb $ ./fritzinfluxdb.py
so wie ich das lese, fehlt dir fritzconnectionpip install fritzconnection
-
@thomas-braun sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
sudo apt full-upgrade
pi@homebridge:~ $ sudo nano /etc/apt/sources.list.d/grafana.list pi@homebridge:~ $ sudo apt update Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 https://packages.grafana.com/oss/deb stable InRelease Hit:4 https://repos.influxdata.com/debian bullseye InRelease Hit:5 https://deb.nodesource.com/node_14.x bullseye InRelease Hit:6 https://archive.raspbian.org/raspbian buster InRelease Hit:7 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them. pi@homebridge:~ $ sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: libpython2-dev libpython2-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python2 python2-dev python2-minimal python2.7 python2.7-dev python2.7-minimal 0 upgraded, 0 newly installed, 12 to remove and 5 not upgraded. After this operation, 27.2 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 68557 files and directories currently installed.) Removing python2-dev (2.7.18-3) ... Removing libpython2-dev:armhf (2.7.18-3) ... Removing python2 (2.7.18-3) ... Removing libpython2-stdlib:armhf (2.7.18-3) ... Removing python2.7-dev (2.7.18-8) ... Removing libpython2.7-dev:armhf (2.7.18-8) ... Removing libpython2.7:armhf (2.7.18-8) ... Removing python2.7 (2.7.18-8) ... Removing libpython2.7-stdlib:armhf (2.7.18-8) ... Removing python2-minimal (2.7.18-3) ... Removing python2.7-minimal (2.7.18-8) ... Unlinking and removing bytecode for runtime python2.7 Removing libpython2.7-minimal:armhf (2.7.18-8) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for mailcap (3.69) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... pi@homebridge:~ $ sudo apt full-upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 pi-bluetooth 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 501 kB of archives. After this operation, 5,120 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi-dev armhf 1:2+git20220324~090146+c4fd1b8-1 [177 kB] Get:2 http://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi-bin armhf 1:2+git20220324~090146+c4fd1b8-1 [149 kB] Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi0 armhf 1:2+git20220324~090146+c4fd1b8-1 [167 kB] Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi-doc all 1:2+git20220324~090146+c4fd1b8-1 [1,908 B] Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf pi-bluetooth all 0.1.19 [5,764 B] Fetched 501 kB in 0s (1,731 kB/s) Reading changelogs... Done (Reading database ... 67657 files and directories currently installed.) Preparing to unpack .../libraspberrypi-dev_1%3a2+git20220324~090146+c4fd1b8-1_armhf.deb ... Unpacking libraspberrypi-dev (1:2+git20220324~090146+c4fd1b8-1) over (1:2+git20211125~155417+14b90ff-3) ... Preparing to unpack .../libraspberrypi-bin_1%3a2+git20220324~090146+c4fd1b8-1_armhf.deb ... Unpacking libraspberrypi-bin (1:2+git20220324~090146+c4fd1b8-1) over (1:2+git20211125~155417+14b90ff-3) ... Preparing to unpack .../libraspberrypi0_1%3a2+git20220324~090146+c4fd1b8-1_armhf.deb ... Unpacking libraspberrypi0:armhf (1:2+git20220324~090146+c4fd1b8-1) over (1:2+git20211125~155417+14b90ff-3) ... Preparing to unpack .../libraspberrypi-doc_1%3a2+git20220324~090146+c4fd1b8-1_all.deb ... Unpacking libraspberrypi-doc (1:2+git20220324~090146+c4fd1b8-1) over (1:2+git20211125~155417+14b90ff-3) ... Preparing to unpack .../pi-bluetooth_0.1.19_all.deb ... Unpacking pi-bluetooth (0.1.19) over (0.1.18) ... Setting up pi-bluetooth (0.1.19) ... Setting up libraspberrypi0:armhf (1:2+git20220324~090146+c4fd1b8-1) ... Setting up libraspberrypi-bin (1:2+git20220324~090146+c4fd1b8-1) ... Setting up libraspberrypi-dev (1:2+git20220324~090146+c4fd1b8-1) ... Setting up libraspberrypi-doc (1:2+git20220324~090146+c4fd1b8-1) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... Processing triggers for man-db (2.9.4-2) ... pi@homebridge:~ $
pi@homebridge:/opt/fritzinfluxdb $ ./fritzinfluxdb.py Traceback (most recent call last): File "/opt/fritzinfluxdb/./fritzinfluxdb.py", line 18, in <module> import fritzconnection ModuleNotFoundError: No module named 'fritzconnection' pi@homebridge:/opt/fritzinfluxdb $
-
Da fehlt wie @crunchip (und die verlinkte Anleitung) schreibt
pip install fritzconnection
-
@crunchip sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
pip
pi@homebridge:/opt/fritzinfluxdb $ pip install fritzconnection Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: fritzconnection in /home/pi/.local/lib/python3.9/site-packages (1.3.3) Requirement already satisfied: requests>=2.22.0 in /usr/local/lib/python3.9/dist-packages (from fritzconnection) (2.22.0) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.22.0->fritzconnection) (1.25.11) Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.22.0->fritzconnection) (2.8) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.22.0->fritzconnection) (2020.6.20) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.22.0->fritzconnection) (3.0.4) pi@homebridge:/opt/fritzinfluxdb $ ./fritzinfluxdb.py Traceback (most recent call last): File "/opt/fritzinfluxdb/./fritzinfluxdb.py", line 18, in <module> import fritzconnection ModuleNotFoundError: No module named 'fritzconnection' pi@homebridge:/opt/fritzinfluxdb $
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
Requirement already satisfied: fritzconnection in /home/pi/.local/lib/python3.9/site-package
Ich vermute, das liegt in /home/pi/.local falsch.
Von python hab ich aber offen gesagt nicht viel Ahnung.
Weiß nicht ob das da einfach weggelöscht werden kann oder ob das perpip uninstall fritzconnection
Im Home von pi zu deinstallieren ist.
-
@thomas-braun sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
pip uninstall fritzconnection
Also da ist es jetzt raus
pi@homebridge:~ $ pip uninstall fritzconnection Found existing installation: fritzconnection 1.3.3 Uninstalling fritzconnection-1.3.3: Would remove: /home/pi/.local/lib/python3.9/site-packages/fritzconnection-1.3.3.dist-info/* Proceed (y/n)? y Successfully uninstalled fritzconnection-1.3.3 pi@homebridge:~ $
Also installiere ich es jetzt unter fritzinfluxdb direkt?
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
pi@homebridge:/opt/fritzinfluxdb
Hier zu installieren, wäre aber das falsche Verzeichnis
-
@crunchip Dann verstehe ich die gesamte Anleitung nicht. Hast Du dir die mal angeschaut?
https://blog.gwarg.de/2022/01/22/fritzbox-mit-grafana-visualisieren-version-2022/Ich habe zwar nicht viel Ahnung, kann mir aber nicht vorstellen das ich da soviel missverstanden habe.
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
Also installiere ich es jetzt unter fritzinfluxdb direkt?
Nein, das gibt es doch noch gar nicht, das verzeichnis wird doch erst später erstellt
-
export PATH=/home/pi/.local/lib:$PATH
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
Hast Du dir die mal angeschaut
Ja, da steht
Erst Fritzconnection
sudo apt install python3-pip
pip install fritzconnection -
@crunchip Genau so habe ich das der Reihe nach installiert
-
Bei mir läuft's durch:
Successfully installed fritzconnection-1.9.1 influxdb-5.3.1 msgpack-1.0.3 python-dateutil-2.8.2 pytz-2022.1
-
@thomas-braun Wenn ich den exakt so eingebe springt er sofort zum nächsten
pi@homebridge:~ $ export PATH=/home/pi/.local/lib:$PATH pi@homebridge:~ $
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
Wenn ich den exakt so eingebe springt er sofort zum nächsten
Das soll so sein.
-
@damrak2022 les mal nochmal deinen ersten Beitrag, zwecks warnmeldung
-
@crunchip Ich werde jetzt nochmal die 5 Befehle aus der Anleitung nacheinander eingeben.
Ansonsten mache ich morgen weiter# Erst Fritzconnection sudo apt install python3-pip pip install fritzconnection # Dann Fritz InfluxDB sudo apt install virtualenv python3-lxml git cd /opt sudo git clone https://github.com/yunity/fritzinfluxdb.git cd fritzinfluxdb sudo virtualenv --system-site-packages -p python3 .venv . .venv/bin/activate # ab hier im (.venv)-modus pip3 install -r requirements.txt
Vielleicht bringt es ja was
Erstmal DANKE an Euch