Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Grafana
    5. Fritzbox mit Grafana visualisieren [Version 2022]

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Fritzbox mit Grafana visualisieren [Version 2022]

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Damrak2022 last edited by

      @damrak2022

      export PATH=/home/pi/.local/lib:$PATH
      
      Damrak2022 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Damrak2022 last edited by

        @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

        Damrak2022 1 Reply Last reply Reply Quote 0
        • Damrak2022
          Damrak2022 @crunchip last edited by

          @crunchip Genau so habe ich das der Reihe nach installiert

          Thomas Braun crunchip 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Damrak2022 last edited by

            @damrak2022

            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
            
            1 Reply Last reply Reply Quote 0
            • Damrak2022
              Damrak2022 @Thomas Braun last edited by

              @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:~ $
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Damrak2022 last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active @Damrak2022 last edited by

                  @damrak2022 les mal nochmal deinen ersten Beitrag, zwecks warnmeldung

                  Damrak2022 I 2 Replies Last reply Reply Quote 0
                  • Damrak2022
                    Damrak2022 @crunchip last edited by

                    @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

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Damrak2022 last edited by

                      @damrak2022 @crunchip

                      Ich merk gerade, das mit dem export in den $PATH war unnötig. Wird ja über die venv gemacht.
                      Naja, egal, ist beim nächsten Neustart eh weg.

                      Damrak2022 1 Reply Last reply Reply Quote 0
                      • Damrak2022
                        Damrak2022 @Thomas Braun last edited by Damrak2022

                        @thomas-braun Es hat bei mir wahrscheinlich was mit der Warnmeldung nach dem Befehl der frzconnection installation zu tun:

                        pi@homebridge:~ $ pip install fritzconnection
                        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                        Collecting fritzconnection
                          Using cached https://www.piwheels.org/simple/fritzconnection/fritzconnection-1.9.1-py3-none-any.whl (50 kB)
                        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: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.22.0->fritzconnection) (3.0.4)
                        Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.22.0->fritzconnection) (2020.6.20)
                        Installing collected packages: fritzconnection
                          WARNING: The scripts fritzcall, fritzconnection, fritzhomeauto, fritzhosts, fritzmonitor, fritzphonebook, fritzstatus and fritzwlan are installed in '/home/pi/.local/bin' which is not on PATH.
                          Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
                        Successfully installed fritzconnection-1.9.1
                        

                        Anscheinen muss ich hier was korrigieren, obwohl es seit die Installation sei erfolgreich

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Damrak2022 last edited by

                          @damrak2022

                          Nee, das ist okay.

                          Damrak2022 1 Reply Last reply Reply Quote 0
                          • Damrak2022
                            Damrak2022 @Thomas Braun last edited by Damrak2022

                            @thomas-braun Jetzt scheint es zu gehen,, sind aber noch viele errors drin:

                            (.venv) pi@homebridge:/opt/fritzinfluxdb $ ./fritzinfluxdb.py
                            2022-04-23 00:14:07,252 - INFO: Done parsing config file
                            2022-04-23 00:14:07,265 - INFO: Database <db> not found, trying to create it
                            2022-04-23 00:14:07,276 - INFO: Connection to InfluxDB established and database present
                            2022-04-23 00:14:08,899 - INFO: Successfully connected to FritzBox
                            2022-04-23 00:14:08,900 - INFO: Starting main loop
                            2022-04-23 00:14:09,201 - ERROR: Requested invalid action 'GetInfo' for service: WANDSLInterfaceConfig
                            2022-04-23 00:14:09,212 - ERROR: Requested invalid action 'GetStatisticsTotal' for service: WANDSLInterfaceConfig
                            2022-04-23 00:14:09,313 - ERROR: Requested invalid action 'GetInfo' for service: WANPPPConnection:1
                            2022-04-23 00:14:09,314 - ERROR: Encountered problems while requesting data. Data might be incomplete.
                            2022-04-23 00:14:18,832 - ERROR: Requested invalid action 'GetInfo' for service: WANDSLInterfaceConfig
                            2022-04-23 00:14:18,844 - ERROR: Requested invalid action 'GetStatisticsTotal' for service: WANDSLInterfaceConfig
                            2022-04-23 00:14:18,943 - ERROR: Requested invalid action 'GetInfo' for service: WANPPPConnection:1
                            2022-04-23 00:14:18,943 - ERROR: Encountered problems while requesting data. Data might be incomplete.
                            2022-04-23 00:14:28,634 - ERROR: Requested invalid action 'GetInfo' for service: WANDSLInterfaceConfig
                            2022-04-23 00:14:28,679 - ERROR: Requested invalid action 'GetStatisticsTotal' for service: WANDSLInterfaceConfig
                            2022-04-23 00:14:28,777 - ERROR: Requested invalid action 'GetInfo' for service: WANPPPConnection:1
                            2022-04-23 00:14:28,777 - ERROR: Encountered problems while requesting data. Data might be incomplete.
                            
                            

                            Ich habe in der .ini noch keinen Datenbanknamen vergeben.

                            Thomas Braun ? 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Damrak2022 last edited by

                              @damrak2022 sagte in Fritzbox mit Grafana visualisieren [Version 2022]:

                              Ich denke da muss jetzt der user und dessen Passwort auf der Fritzbox angegeben werden. Sonst kann der Kram nicht von dort ausgelesen werden.

                              Damrak2022 1 Reply Last reply Reply Quote 0
                              • Damrak2022
                                Damrak2022 @Thomas Braun last edited by Damrak2022

                                @thomas-braun Der ist drin. Ich schaue mal was ich noch hinbekomme. Ansonsten frage ich heute nochmal bei Dir ich.
                                Bis dann und Danke

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Damrak2022 last edited by

                                  @damrak2022

                                  Ist das ein Kabelanschluss?
                                  WANDSLInterfaceConfig hört sich nach DSL an. Das dürfte auf einer FritzCable-Box nicht vorhanden sein.

                                  Damrak2022 1 Reply Last reply Reply Quote 0
                                  • Damrak2022
                                    Damrak2022 @Thomas Braun last edited by

                                    @thomas-braun Jepp, da gibt es auch schon einiges bei Github, weil die Anleitung sich wohl mehr auf eine DSL Box bezieht, aber viele eine 6591 Cable, so wie ich haben.
                                    Ich habe da auch schon gepostet und hoffe, das sich irgendwann auch eine Cable Box vollständig abfragen lässt. Jetzt werde ich mal versuchen das Grafana Dashboard zu realisieren.

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @Damrak2022 last edited by

                                      @damrak2022 said in Fritzbox mit Grafana visualisieren [Version 2022]:

                                      2022-04-23 00:14:07,265 - INFO: Database <db> not found, trying to create it 2022-04-23 00:14:07,276 - INFO: Connection to InfluxDB established and database present

                                      Hi,
                                      doch Du hattest den Standard in der "fritzinfluxdb.ini", daher heißt Deine Datenbank in "influxdb" jetzt "db".

                                      VG
                                      Bernd

                                      Damrak2022 1 Reply Last reply Reply Quote 0
                                      • Damrak2022
                                        Damrak2022 @Guest last edited by

                                        @dp20eic Ich danke Dir, das klappt jetzt glücklicherweise alles

                                        Rene R 1 Reply Last reply Reply Quote 0
                                        • Rene R
                                          Rene R @Damrak2022 last edited by Rene R

                                          @damrak2022

                                          Kannst du mir vielleicht helfen ich bekomme es nicht am laufen was hast du bei dir in der .ini alles drin???

                                          Habe ne fritzbox 6490
                                          So läuft aber bekomme keine daten..

                                          (.venv) pi@raspberrypi:/opt/fritzinfluxdb $ python3 ./fritzinfluxdb.py
                                          2022-09-02 23:07:51,955 - INFO: Starting fritzinfluxdb v1.0.1 (2022-08-22)
                                          2022-09-02 23:07:51,957 - INFO: Done reading config files
                                          2022-09-02 23:07:52,011 - INFO: Successfully parsed config
                                          2022-09-02 23:07:52,024 - INFO: Connection to InfluxDB 1.8.10 established and database present
                                          2022-09-02 23:07:53,656 - INFO: Successfully established FritzBox TR-069 session
                                          2022-09-02 23:07:54,735 - INFO: Successfully established FritzBox Lua session
                                          2022-09-02 23:07:54,735 - INFO: Successfully connected to FritzBox '192.168.178.1' (fritzbox) Model: FRITZ!Box 6490 Cable - FW: 7.29
                                          2022-09-02 23:07:54,741 - INFO: Starting main loop
                                          2022-09-02 23:07:55,460 - INFO: Requested invalid action 'GetInfo' for service: WANDSLInterfaceConfig
                                          2022-09-02 23:07:55,460 - INFO: Querying action 'GetInfo' will be disabled
                                          2022-09-02 23:07:55,474 - INFO: Requested invalid action 'GetStatisticsTotal' for service: WANDSLInterfaceConfig
                                          2022-09-02 23:07:55,475 - INFO: Querying action 'GetStatisticsTotal' will be disabled
                                          2022-09-02 23:07:55,488 - INFO: Requested invalid action 'X_AVM-DE_GetDSLInfo' for service: WANDSLInterfaceConfig
                                          2022-09-02 23:07:55,488 - INFO: Querying action 'X_AVM-DE_GetDSLInfo' will be disabled
                                          2022-09-02 23:07:55,488 - INFO: All actions for service 'WANDSLInterfaceConfig' are unavailable. Disabling service.
                                          2022-09-02 23:07:55,544 - INFO: Requested invalid action 'GetInfo' for service: WANPPPConnection:1
                                          2022-09-02 23:07:55,544 - INFO: Querying action 'GetInfo' will be disabled
                                          2022-09-02 23:07:55,545 - INFO: All actions for service 'WANPPPConnection:1' are unavailable. Disabling service.
                                          2022-09-02 23:08:19,603 - INFO: Unable to request FritzBox Lua service 'DSL Info'
                                          2022-09-02 23:08:19,603 - INFO: FritzBox Lua service 'DSL Info' will be disabled.
                                          
                                          

                                          Gruß
                                          Rene

                                          1 Reply Last reply Reply Quote 0
                                          • framp
                                            framp @crunchip last edited by framp

                                            Unhandled python exception in init callback: OSError: fritzcollectd: Failed to connect to fritz.box", was mir sagt das mein FritzOS wohl zu neu ist.

                                            Ich hatte das Problem auch. Allerdings liegt es nicht an einer zu neuen FB sondern daran, dass der Connect etwas laenger dauert und fritzcollectd keinen Connect Retry hat. Den habe ich eingebaut und schon ist die Fehlermeldung weg :-). Der Fix steht ich hier in meinem Fork zur allgemeinen Verfuegung.

                                            Jan 28 23:53:22 raspberrypi-bullseye-docker-64 collectd[547]: fritzcollectd: Connecting to FRITZ Box ...
                                            Jan 28 23:53:22 raspberrypi-bullseye-docker-64 collectd[547]: fritzcollectd: Retrying in 3 seconds ...
                                            Jan 28 23:53:25 raspberrypi-bullseye-docker-64 collectd[547]: fritzcollectd: Connecting to FRITZ Box ...
                                            Jan 28 23:53:25 raspberrypi-bullseye-docker-64 collectd[547]: fritzcollectd: Retrying in 3 seconds ...
                                            Jan 28 23:53:28 raspberrypi-bullseye-docker-64 collectd[547]: fritzcollectd: Connecting to FRITZ Box ...
                                            Jan 28 23:53:33 raspberrypi-bullseye-docker-64 collectd[547]: Initialization complete, entering read-loop.
                                            
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            642
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            143
                                            13061
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo