Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly zum Netzwerktraffic tut's nicht mehr

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Blockly zum Netzwerktraffic tut's nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • Asgothian
      Asgothian Developer @Homoran last edited by Asgothian

      @homoran Ich denke die müsstest du direkt via rpi2 adapter bekommen können. Zumindest scheint das bei mir zu gehen. So wie ich den Code lese sind das rx und tx in bytes.

      Wenn du den Adapter nicht nutzen willst, kannst du statt dessen auch per exec die Werte holen:

      Für Lan (hab ich getestet, geht):

      cat /sys/class/net/e*/statistics/rx_bytes
      cat /sys/class/net/e*/statistics/tx_bytes
      

      für WLan: (hab ich nicht getestet - kein WLan am PI für mich wegen Zigbee

      cat /sys/class/net/wl*/statistics/rx_bytes
      cat /sys/class/net/wl*/statistics/tx_bytes
      
      Homoran 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Homoran last edited by

        @homoran

        Hier bei mir sind kumulierte Werte drin:

        echad@chet:~ $ ifconfig 
        eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
                inet 192.168.178.48  netmask 255.255.255.0  broadcast 192.168.178.255
                inet6 2a02:908:391:30e0:ac4d:d5f2:744b:c444  prefixlen 64  scopeid 0x0<global>
                inet6 fe80::fff5:4266:a398:7a9  prefixlen 64  scopeid 0x20<link>
                inet6 fdc4:d4d9:4610:0:b984:5303:f497:d2ab  prefixlen 64  scopeid 0x0<global>
                ether e4:5f:01:0b:f7:93  txqueuelen 1000  (Ethernet)
                RX packets 5515467  bytes 7286133763 (6.7 GiB)
                RX errors 0  dropped 29115  overruns 0  frame 0
                TX packets 2931405  bytes 440978321 (420.5 MiB)
                TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        
        
        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Asgothian last edited by

          @asgothian sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

          So wie ich den Code lese sind das rx und tx in bytes.

          ja.

          ich weiß nicht, warum ich auf das Blockly umgestellt habe.
          Mag sein, dass es nach dem Wechsel vom SBC auf Proxmox gewesen ist, und ich es nach dem Wechsel zurück auf Pi5 nicht mehr geändert hatte weilnes lief.

          ...bis heute abend

          Dann versuch ich es mal mit dem RPI2

          Danke!

          1 Reply Last reply Reply Quote 0
          • Jey Cee
            Jey Cee Developer @Homoran last edited by

            @homoran sieht so aus als wenn da gar Traffic angezeigt wird, da steht überall 0, was ziemlich unwahrscheinlich ist.
            Könnte ein Thema von ifconfig sein, außer war gerade in dem Moment wirklich kein Traffic

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Thomas Braun last edited by

              @thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

              Hier bei mir sind kumulierte Werte drin:

              ja!
              so muss es bis heute abend bei mir auch gewesen sein!

              Warum klappt es bei mir nicht mehr? 🤔
              reboot hat auch nicht geholfen.

              die letzte Zeile mit dem interrupt komnt mir auch neu vor

              1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Jey Cee last edited by

                @jey-cee sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

                sieht so aus als wenn da gar Traffic angezeigt wird, da steht überall 0, was ziemlich unwahrscheinlich ist.

                richtig! das ist der Punkt.
                Da müssten wie bei Thomas die kumulierten Werte stehen, auch wenn in der Sekunde kein traffic wäre

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

                  @homoran

                  Welche Interfaces sind denn da noch angelegt?

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Asgothian last edited by

                    @asgothian sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

                    Für Lan (hab ich getestet, geht):

                    jepp, da kommt was

                    pi@ioBrokerpi5:~ $ cat /sys/class/net/e*/statistics/rx_bytes
                    50496203
                    pi@ioBrokerpi5:~ $
                    

                    das wäre ein Ansatz
                    Danke

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Thomas Braun last edited by Homoran

                      @thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

                      @homoran

                      Welche Interfaces sind denn da noch angelegt?

                      die üblichen verdächtigen

                      pi@ioBrokerpi5:~ $ ifconfig
                      eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
                              inet 192.168.138.96  netmask 255.255.255.0  broadcast 192.168.138.255
                              inet6 2a0a:a546:44e1:0:36d3:f449:b498:bf24  prefixlen 64  scopeid 0x0<global>
                              inet6 fe80::cb9d:71e1:3c0:771b  prefixlen 64  scopeid 0x20<link>
                              ether d8:3a:dd:b1:cd:fc  txqueuelen 1000  (Ethernet)
                              RX packets 0  bytes 0 (0.0 B)
                              RX errors 0  dropped 0  overruns 0  frame 0
                              TX packets 0  bytes 0 (0.0 B)
                              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
                              device interrupt 106
                      
                      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
                              inet 127.0.0.1  netmask 255.0.0.0
                              inet6 ::1  prefixlen 128  scopeid 0x10<host>
                              loop  txqueuelen 1000  (Local Loopback)
                              RX packets 0  bytes 0 (0.0 B)
                              RX errors 0  dropped 0  overruns 0  frame 0
                              TX packets 0  bytes 0 (0.0 B)
                              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
                      
                      wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
                              ether d8:3a:dd:b1:cd:fd  txqueuelen 1000  (Ethernet)
                              RX packets 0  bytes 0 (0.0 B)
                              RX errors 0  dropped 0  overruns 0  frame 0
                              TX packets 0  bytes 0 (0.0 B)
                              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
                      
                      pi@ioBrokerpi5:~ $
                      

                      Alles 0

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

                        @homoran sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

                        Alles 0

                        Kann ich mir gerade keinen Reim drauf machen.

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @Thomas Braun last edited by

                          @thomas-braun wie gesagt passt der Wegfall der Werte zum Zeitpunkt des Upgrades.

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

                            @homoran

                            Waren denn die net-tools dabei?

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Thomas Braun last edited by Homoran

                              @thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

                              @homoran

                              Waren denn die net-tools dabei?

                              ja!
                              jetzt wo du das sagst!

                              edit
                              falls das was hilft:

                              pi@ioBrokerpi5:~ $ apt policy net-tools
                              net-tools:
                                Installed: 2.10-0.1+deb12u1
                                Candidate: 2.10-0.1+deb12u1
                                Version table:
                               *** 2.10-0.1+deb12u1 500
                                      500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages
                                      100 /var/lib/dpkg/status
                                   2.10-0.1 500
                                      500 http://deb.debian.org/debian bookworm/main arm64 Packages
                              pi@ioBrokerpi5:~ $
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators last edited by

                                Mit den snippets von @Asgothian

                                Screenshot_20250528-225255_Firefox.jpg

                                läuft es erst mal

                                Screenshot_20250528-225206_Firefox.jpg

                                Danke euch!

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

                                  @homoran

                                  Dann vermute ich dort einen Fehler im Paket.

                                  Gegentest:

                                  ip stats
                                  

                                  hat die Werte drin?

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @Thomas Braun last edited by

                                    @thomas-braun
                                    jepp

                                    2: eth0: group offload subgroup hw_stats_info
                                        l3_stats off used off
                                    2: eth0: group afstats subgroup mpls
                                    2: eth0: group link
                                        RX:  bytes packets errors dropped  missed   mcast
                                          87950320  151779      0    3717       0    4387
                                        TX:  bytes packets errors dropped carrier collsns
                                          48886205  113285      0       0       0       0
                                    2: eth0: group offload subgroup l3_stats off used off
                                    2: eth0: group offload subgroup cpu_hit
                                    
                                    2: eth0: group xstats_slave subgroup bond suite 802.3ad
                                    2: eth0: group xstats subgroup bond suite 802.3ad
                                    2: eth0: group xstats_slave subgroup bridge suite mcast
                                    2: eth0: group xstats_slave subgroup bridge suite stp
                                    2: eth0: group xstats subgroup bridge suite mcast
                                    2: eth0: group xstats subgroup bridge suite stp
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Homoran last edited by

                                      @homoran

                                      ifconfig ist ohnehin veraltet, man verwendet mittlerweile besser iproute2-Befehle wie ip.

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Thomas Braun last edited by

                                        @thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:

                                        ifconfig ist ohnehin veraltet

                                        mein Blockly auch 😂

                                        ich mzsste mich ja selber erst mal wieder einarbeiten, so alt ist das.

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

                                          @homoran

                                          Ich würde das aber wie oben von @Asgothian gezeigt auch direkt auslesen. Dann musst du da nicht so umständlich herumparsen.

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @Thomas Braun last edited by

                                            @thomas-braun
                                            ach was!?
                                            Screenshot_20250528-225255_Firefox.jpg

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            867
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            23
                                            269
                                            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