NEWS
Fritzbox mit Grafana visualisieren [Version 2022]
-
cat fritzinfluxdb.py
-
-
@thomas-braun sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
python --version
pi@homebridge:/opt/fritzinfluxdb $ python --version Python 2.7.18
-
Hatte ich mir fast gedacht.
sudo apt update sudo apt install python-is-python3 python --version
Vermutlich funktioniert es danach.
-
@thomas-braun sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
python --version
pi@homebridge:~ $ sudo apt update Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB] Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 https://repos.influxdata.com/debian bullseye InRelease Hit:4 https://packages.grafana.com/enterprise/deb stable InRelease Hit:5 https://packages.grafana.com/oss/deb stable InRelease Hit:6 https://deb.nodesource.com/node_14.x bullseye InRelease Hit:7 https://archive.raspbian.org/raspbian buster InRelease Get:8 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [279 kB] Hit:9 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease Fetched 302 kB in 7s (42.6 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them. W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:3 W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:4 W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/grafana.list:2 and /etc/apt/sources.list.d/grafana.list:5 pi@homebridge:~ $ sudo apt install python-is-python3 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: 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 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: python-dev-is-python2 python-is-python2 The following NEW packages will be installed: python-is-python3 0 upgraded, 1 newly installed, 2 to remove and 5 not upgraded. Need to get 2,800 B of archives. After this operation, 15.4 kB disk space will be freed. Do you want to continue? [Y/n] y Get:1 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf python-is-python3 all 3.9.2-1 [2,800 B] Fetched 2,800 B in 1s (5,450 B/s) (Reading database ... 68564 files and directories currently installed.) Removing python-dev-is-python2 (2.7.18-9) ... Removing python-is-python2 (2.7.18-9) ... Selecting previously unselected package python-is-python3. (Reading database ... 68552 files and directories currently installed.) Preparing to unpack .../python-is-python3_3.9.2-1_all.deb ... Unpacking python-is-python3 (3.9.2-1) ... Setting up python-is-python3 (3.9.2-1) ... Processing triggers for man-db (2.9.4-2) ... pi@homebridge:~ $ python --version Python 3.9.2 pi@homebridge:~ $ ./fritzinfluxdb.py -bash: ./fritzinfluxdb.py: No such file or directory pi@homebridge:~ $ cd /opt/influxdb -bash: cd: /opt/influxdb: No such file or directory pi@homebridge:~ $ cd /opt/fritzinfluxdb 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 $
Das Update hat funktionier, aber der Befehl laut Anleitung nicht (Zeile 79)
-
@damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:
/etc/apt/sources.list.d/grafana.list
Räum die mal auf.
Da sind Doubletten drin. -
@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