Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      assid last edited by

      Hallo,
      kann man mit diesem tollen Skript auch "neue" / "Unbekannte" WLAN / LAN Geräte in der VIS anzeigen lassen?

      Quasi, ein neues Handy oder Tablet im WLAN wird automatisch dann auch in der ioBroker VIS angezeigt... Wenn NEIN, kennt jemand eine Alternative für mich? Damit ich das so realisieren kann?

      Ich hoffe ich habe meine Frage diesbezüglich im richtigen Unterforum gepostet... Es kommt nach dem schreiben und senden ständig "Fehler - Forbitten"
      Grüße

      Homoran liv-in-sky 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @assid last edited by

        @assid Warum doppelpost?

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

          @assid

          das script findet alles, was sich im netz befindet - es scannt den ganzen netzwerk bereich - also sollte neue handy zu sehen sein, wenn sie im netz eingeloggt sind

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

            @Homoran

            neues script auf github - settings können wieder kopiert werden - was sonst noch ist im chat

            und noch:

            neuer dp für neu entdeckte geräte - ist eine extra tabele und wird hier mit inventwo-json angezeigt

            Animation (2).gif

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @liv-in-sky last edited by

              @liv-in-sky sagte in IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol:

              neuer dp für neu entdeckte geräte - ist eine extra tabele und wird hier mit inventwo-json angezeigt

              SUPER!

              Das wollte ich dir noch sagen ;-).
              Gerade wenn User viel mit Shellies oder ESPs arbeiten, wäre es doch sinnvoll, das (zuletzt) neu hinzugekommene Gerät irgendwie zu tracen.
              ggf. sogar bis zum nächsten einlesen (oder bis zum nächsten neuen Gerät) anders markiert

              Hatte mich nur nicht getraut, weil ich befürchte, dass das zuviel des guten ist

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

                @homoran

                teste mal in ruhe - morgen machen wir weiter

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

                  @homoran

                  fast vergessen - lösche den dp mit den devices - der sollte neu aufgebaut werden

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @liv-in-sky last edited by

                    @liv-in-sky sagte in IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol:

                    fast vergessen - lösche den dp mit den devices - der sollte neu aufgebaut werden

                    ok, läuft aber schon, nachdem ich den nmap Befehl wieder angepasst habe 🙂
                    kann ich auch noch nachträglich löschen?

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

                      @homoran

                      script stoppen - löschen - script starten

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @liv-in-sky last edited by

                        @liv-in-sky sagte in IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol:

                        @homoran

                        script stoppen - löschen - script starten

                        OK - da isser wieder

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

                          @homoran ein fehler ?

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

                            @homoran

                            wie schaut den eigentlich der befehl bei dir aus?

                            1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

                              @liv-in-sky hatte ich dir gestern im Chat geschrieben.
                              mit dem nmap Befehl im Skript läuft es bei mir nicht.

                              muss bei mir so heißen:
                              exec("sudo -u root nmap -sP --dns-servers "+dnsServer+" "+ipbereich , async function (error, result, stderr)

                              überschnitten die posts sich haben

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

                                @homoran

                                ok ich verstehe - den mußte ich ändern, da ich nmap ja anders installieren mußte und der pfad ein anderer ist. das muss ich irgendwie am template ändern - vergessen hatte das ich

                                1 Reply Last reply Reply Quote 1
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                                  @liv-in-sky

                                  Habe nun erstmal auch dein Script ausprobiert.
                                  von git kopiert und in js eingefügt.
                                  Exec hatte ich schon drin.
                                  Daten im js angepasst.
                                  nmap in meiner proxmox vm "iobroker" als root installiert.
                                  Datei /etc/sudoers.d/iobroker angepasst

                                  Es kommt nur "no data" im log.

                                  Ich dachte, da kann man eigentlich gar nicht so viel falsch machen.
                                  Hast du eine Idee ?
                                  Soll ich mein eingefügtes script in js mal anhängen?

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

                                    @bahnuhr

                                    schau mal https://forum.iobroker.net/post/761180

                                    du wirst den pfad zu nmap angleichen müssen

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

                                      @bahnuhr

                                      der im script im exec teil steht

                                      bahnuhr 2 Replies Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                                        @liv-in-sky

                                        hab ich nun geändert auf:
                                        exec("sudo -u root /usr/bin/nmap -sP --dns-servers "+dnsServer+" "+ipbereich , async function (error, result, stderr) {

                                        Es kommt aber immer noch "no data"
                                        (in usr/bin/ liegt auch die Datei nmap. Pfad müsste also jetzt stimmen)

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

                                          @bahnuhr

                                          nach dem exec kommt eine zeile mit

                                             //  console.log(result);
                                          

                                          kommentiere das aus und schau mal, was dann im log steht - das sollte die rohdaten vom nmap befehl sein

                                          bahnuhr 1 Reply Last reply Reply Quote 0
                                          • bahnuhr
                                            bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                                            @liv-in-sky
                                            Wenn ich den Befehl mal per putty eingebe, kommt:

                                            dieter@VM-iobroker:~$ sudo -u root /usr/bin/nmap -sP --dns-servers 192.168.243.1 192.168.243.0/24
                                            >>> /etc/sudoers.d/iobroker: Syntax-Fehler near line 24 <<<
                                            sudo: Syntax-Fehler in /etc/sudoers.d/iobroker bei der Zeile 24
                                            sudo: Keine gültige sudoers-Quelle gefunden, Programmende
                                            sudo: Regelwerks-Plugin konnte nicht initialisiert werden
                                            
                                            Thomas Braun bahnuhr 3 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            615
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript template
                                            26
                                            493
                                            78046
                                            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