Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Adapter net-tools v0.1.x

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Adapter net-tools v0.1.x

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

      @Jey-Cee sagte in Adapter net-tools v0.1.x:

      Wer eine Idee wie das mit Linux/Windows Boardmitteln geht immer her damit.

      Steht in /proc/net/wireless drin

      pi@raspberrypi:~ $ cat /proc/net/wireless
      Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
       face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
       wlan0: 0000   70.  -25.  -256        0      0      0      0      0        0
      pi@raspberrypi:~ $
      
      Jey Cee 1 Reply Last reply Reply Quote 0
      • Jey Cee
        Jey Cee Developer @Thomas Braun last edited by

        @Thomas-Braun ich Glaube @sigi234 bezog sich auf die Geräte nicht auf das eigene Interface. Das macht auch wenig Sinn da der ioBroker host in den meisten Fällen per LAN angeschlossen ist (oder sein sollte).

        @Dolomiti hab den Fix auf Github hoch geladen.

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

          @Jey-Cee Dann sowas:

          sudo iw dev wlan0 scan
          

          Die RSSI -Werte der clients in Relation zum WLAN-Router wirst du auch nur dort auslesen können.

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

            @Jey-Cee
            Funktioniert jetzt. Hat alle Geräte gefunden und die DP angelegt. 👍

            1 Reply Last reply Reply Quote 0
            • sigi234
              sigi234 Forum Testing Most Active @Jey Cee last edited by sigi234

              @Jey-Cee
              Adapter bleibt Rot.

              net-tools.0	2020-09-26 00:17:43.064	info	(1196) Terminated (NO_ERROR): Without reason
              net-tools.0	2020-09-26 00:17:43.064	info	(1196) terminating
              net-tools.0	2020-09-26 00:17:42.546	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
              net-tools.0	2020-09-26 00:17:42.546	error	at portScan (C:\Program Files\iobroker\Test\node_modules\iobroker.net-tools\main.js:132:15)
              net-tools.0	2020-09-26 00:17:42.546	error	(1196) TypeError: Cannot read property 'val' of null
              net-tools.0	2020-09-26 00:17:42.546	error	(1196) unhandled promise rejection: Cannot read property 'val' of null
              net-tools.0	2020-09-26 00:17:42.508	info	(1196) starting. Version 0.1.0 in C:/Program Files/iobroker/Test/node_modules/iobroker.net-tools, node: v12.18.0, js-controller: 3.1.6
              
              Negalein 1 Reply Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @sigi234 last edited by

                @sigi234 sagte in Adapter net-tools v0.1.x:

                Adapter bleibt Rot.

                @Jey-Cee

                bei mir auch

                net-tools.0	2020-09-26 17:28:29.182	info	(780) Terminated (NO_ERROR): Without reason
                net-tools.0	2020-09-26 17:28:29.181	info	(780) terminating
                net-tools.0	2020-09-26 17:28:28.672	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
                net-tools.0	2020-09-26 17:28:28.672	error	at portScan (/opt/iobroker/node_modules/iobroker.net-tools/main.js:132:15)
                net-tools.0	2020-09-26 17:28:28.672	error	(780) TypeError: Cannot read property 'val' of null
                net-tools.0	2020-09-26 17:28:28.671	error	(780) unhandled promise rejection: Cannot read property 'val' of null
                net-tools.0	2020-09-26 17:28:28.573	info	(780) starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.net-tools, node: v12.18.3, js-controller: 3.1.6
                

                Geräte lassen sich auch keine anlegen.

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

                  @sigi234 @Negalein danke für die Meldung.

                  EDIT: Fix ist auf Github.

                  Negalein 1 Reply Last reply Reply Quote 2
                  • Negalein
                    Negalein Global Moderator @Jey Cee last edited by

                    @Jey-Cee sagte in Adapter net-tools v0.1.x:

                    EDIT: Fix ist auf Github.

                    Danke, funktioniert!

                    Wäre es noch möglich, statt der MAC die IP oder besser noch den Namen als ID in den Objekten zu verwenden?

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

                      @Negalein sagte in Adapter net-tools v0.1.x:

                      Wäre es noch möglich, statt der MAC die IP oder besser noch den Namen als ID in den Objekten zu verwenden?

                      Möglich wäre das schon, aber ich habe ganz bewusst darauf verzichtet. Die MAC ist eindeutig und verändert sich nicht, sowohl IP wie auch Name können sich ändern. Die ID sollte immer eindeutig und unveränderlich sein, das sollte bei allen Adaptern Standard sein, das wurde vor einiger Zeit auch so besprochen.
                      Es gibt halt noch alt bestand wo das nicht so ist und manche neuen Entwickler sind sich dessen nicht bewusst oder es geht manchmal einfach nicht anders.

                      Klar kann man das Problem mit einem Alias umgehen, für mich ist das aber ein Workaround der das ganze System nur Aufbläht.
                      Für den Benutzer und die Übersichtlichkeit gibt es die Möglichkeit Objekten einen Namen zu geben, davon sollte man auch Gebrauch machen.

                      Negalein 1 Reply Last reply Reply Quote 1
                      • Negalein
                        Negalein Global Moderator @Jey Cee last edited by

                        @Jey-Cee sagte in Adapter net-tools v0.1.x:

                        Möglich wäre das schon, aber ich habe ganz bewusst darauf verzichtet. Die MAC ist eindeutig und verändert sich nicht, sowohl IP wie auch Name können sich ändern. Die ID sollte immer eindeutig und unveränderlich sein, das sollte bei allen Adaptern Standard sein, das wurde vor einiger Zeit auch so besprochen.

                        Danke für die Info.
                        Versteh ich.

                        1 Reply Last reply Reply Quote 0
                        • S
                          swordfisch last edited by

                          Wollte den Adapter auch mal testen leider bekomme ich ihn nicht installiert

                          install https://github.com/Jey-Cee/ioBroker.net-tools/tarball/37a817a9f18edaf343a20fa0709172f0b725fbf2
                          NPM version: 6.8.0
                          npm install https://github.com/Jey-Cee/ioBroker.net-tools/tarball/37a817a9f18edaf343a20fa0709172f0b725fbf2 --loglevel error --prefix "/opt/iobroker" (System call)
                          npm ERR! cb.apply is not a function
                          
                          npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-09-26T19_21_25_087Z-debug.log
                          ERROR: host.iOBroker Cannot install https://github.com/Jey-Cee/ioBroker.net-tools/tarball/37a817a9f18edaf343a20fa0709172f0b725fbf2: 1
                          ERROR: process exited with code 25
                          

                          Glasfaser 1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky last edited by

                            hi @Jey-Cee

                            leider beim starten des adapters

                            net-tools.0	2020-09-26 21:56:48.303	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
                            net-tools.0	2020-09-26 21:56:48.303	error	at portScan (/opt/iobroker/node_modules/iobroker.net-tools/main.js:132:15)
                            net-tools.0	2020-09-26 21:56:48.303	error	(6673) TypeError: Cannot read property 'val' of null
                            net-tools.0	2020-09-26 21:56:48.302	error	(6673) unhandled promise rejection: Cannot read property 'val' of null
                            Unhandled	2020-09-26 21:56:48.301	error	promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                            

                            1 Reply Last reply Reply Quote 0
                            • Glasfaser
                              Glasfaser @swordfisch last edited by

                              @swordfisch sagte in Adapter net-tools v0.1.x:

                              NPM version: 6.8.0

                              Dein System scheint recht alt zu sein !

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

                                @swordfisch ich würde sagen erstmal npm (und damit auch nodejs) Aktualisieren.

                                @liv-in-sky selbes Problem wie Negalein und sigi234, das habe ich behoben. Einmal Adapter löschen und nochmal neu von Github installieren.

                                liv-in-sky S 2 Replies Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @Jey Cee last edited by

                                  @Jey-Cee

                                  erstmal danke - flutscht jetzt

                                  2 fragen:

                                  • ist das normal, dass keine ip in den datenpunkten angezeigt wird

                                  • echo geräte werden nicht gefunden - ich hatte mal ein script gemacht, dass auch das netzwerk scannt und eine html tabelle erstellt - das script arbeitet mit nmap tool, welches unter linux und windows installiert werden muss (damit werden die echo's gefunden) - sowas kann man nicht in deinen adapter einbauen ? https://forum.iobroker.net/topic/30057/ip-devices-im-netzwerk-html-tabelle-vis-iqontrol

                                  Negalein 1 Reply Last reply Reply Quote 0
                                  • S
                                    swordfisch @Jey Cee last edited by

                                    @Jey-Cee Node.js läuft auf version v12.18.4

                                    Thomas Braun Jey Cee 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @swordfisch last edited by

                                      @swordfisch Insgesamt sauber?

                                      which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • Negalein
                                        Negalein Global Moderator @liv-in-sky last edited by

                                        @liv-in-sky sagte in Adapter net-tools v0.1.x:

                                        sowas kann man nicht in deinen adapter einbauen ?

                                        @Jey-Cee

                                        wäre toll, wenn das ginge

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

                                          @swordfisch Ok aber warum dann die alte npm version?

                                          @liv-in-sky sagte in Adapter net-tools v0.1.x:

                                          ist das normal, dass keine ip in den datenpunkten angezeigt wird

                                          Ja -> Erklärung

                                          @liv-in-sky sagte in Adapter net-tools v0.1.x:

                                          nmap

                                          Hab ich mir angeschaut, bin nicht begeistert das man es extra installieren muss und es dann auch noch als root Ausführen muss. Aber grundsätzlich ist es so das die Discover Funktion vom discovery Adapter kommt und dadurch müsste nmap dort verwendet werden. Falls ich mal die Muse habe mich an den discovery Adapter ran zu machen wird das wohl kommen.
                                          Für die Ping Funktion 🤷‍♂️ Auf jeden Fall müsste sie dann neu geschrieben werden, da hab ich jetzt gerade keine Lust drauf. Viellleicht in der Zukunft.

                                          1 Reply Last reply Reply Quote 1
                                          • S
                                            swordfisch @Thomas Braun last edited by Negalein

                                            @Thomas-Braun

                                            root@iOBroker:~# which nodejs && nodejs -v && which node && node -v && which npm                                          && npm -v && apt policy nodejs
                                            /usr/bin/nodejs
                                            v12.18.4
                                            /usr/local/bin/node
                                            v12.18.4
                                            /usr/local/bin/npm
                                            6.8.0
                                            nodejs:
                                              Installiert:           12.18.4-1nodesource1
                                              Installationskandidat: 12.18.4-1nodesource1
                                              Versionstabelle:
                                             *** 12.18.4-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_12.x stretch/main amd64 Packages
                                                    100 /var/lib/dpkg/status
                                                 10.21.0~dfsg-1~deb10u1 500
                                                    500 http://ftp.de.debian.org/debian buster/main amd64 Packages
                                                    500 http://security.debian.org/debian-security buster/updates/main amd64                               Packages
                                            

                                            @Jey-Cee Ja das weiß ich auch noch nicht habs gerade alles deinstalliert und neu installiert aber die 6.8.0 kommt immer wieder

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            732
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            net-tools net-tools adapter ping ping adpter
                                            13
                                            50
                                            6508
                                            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