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.
    • liv-in-sky
      liv-in-sky @zahnheinrich last edited by liv-in-sky

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

      wenn ich das skript neu starte...

      • da ist es normal !

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

      Kann ich das irgendwie abfangen?

      die sind in einer eigenen datenbank - die kannst du löschen - das script muss sich ja merken, welches gerät da war - um es bei nicht erreichen als "offline" zu kennzeichnen - wenn das gerät dann für immer verschwindet, kann das script das nicht herausfinden und läßt es für immer auf "offline"

      suche die javascript instanz (meistens 0) und lösche den ganzen datenpunkt (im beispiel bei mir javascript.2 - da ich 3 instanzen habe)

      Image 1.png



      DANN SCRIPT NEUSTARTEN !!



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

        @liv-in-sky
        Ja ok, die DeviceCollection hatte ich nicht mehr auf dem Schirm.
        Hatte dein skript vor längerer Zeit mal angeschaut, aber nicht fehlerfrei zum Laufen bekommen. Daher die alte Liste.
        Hatte mich echt gewundert...

        Der Fehler kommt regelmässig alle 15Min., die Tabelle wird nicht geschrieben...

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

          @zahnheinrich

          schau mal in den chat !

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

            kurze info:

            nmap in bullseye macht probleme - daher auch in diesem script und auch im neuen script

            https://forum.iobroker.net/post/702615

            lösung https://forum.iobroker.net/post/702615

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

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

              nmap in bullseye macht probleme - daher auch in diesem script und auch im neuen script

              bin gestern auf Bullseye umgezogen 😞
              Habe auch noch ne uralte Version (//@liv-in-sky Januar 2020 11.2-15:15)
              bis zum Umzug lief sie aber, jetzt gibt es

              javascript.1
              2021-12-31 19:44:17.724	error	at processTimers (internal/timers.js:500:7)
              
              javascript.1
              2021-12-31 19:44:17.723	error	at listOnTimeout (internal/timers.js:557:17)
              
              javascript.1
              2021-12-31 19:44:17.722	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2119:34)
              
              javascript.1
              2021-12-31 19:44:17.721	error	at Object.<anonymous> (script.js.Hardware.NetScan:261:11)
              
              javascript.1
              2021-12-31 19:44:17.718	error	Error in callback: TypeError: Cannot read property 'length' of null
              

              Der Link hift mir nicht wirklich weiter

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

                @homoran

                evtl dieses thema:
                https://forum.iobroker.net/post/702615

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

                  @homoran

                  oder warte mal - das kann auch was anderes sein - schau ich mir mal an

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

                    @homoran

                    kannst du das auf der console ausführen

                    sudo -u root /usr/local/bin/nmap -sP --dns-servers  192.168.178.1 192.168.178.0/24
                    
                    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:

                      kannst du das auf der console ausführen

                      ooops 😳

                      sudo: /usr/local/bin/nmap: Befehl nicht gefunden

                      das kommt von der Neuinstallation statt upgrade, Sorry

                      Ist ewig her...sudo apt install nmap?
                      und irgendetwas einstellen?

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

                        @homoran nicht das ich wußte - müßte so stimmen

                        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 nicht das ich wußte - müßte so stimmen

                          danke, bleibt bei der Meldung 😱

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

                            @homoran befehl getestet ?

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

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

                              @homoran befehl getestet ?

                              wie meinen?
                              Ja bei dem Befehl kommt nach wie vor Befehl nicht gefunden obwohl ich nmap installiert habe

                              Oder muss ich etwas anderes installieren, oder reboot, oder....

                              oder stimmt der Pfad nicht?
                              Read data files from: /usr/bin/../share/nmap

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

                                @homoran

                                which nmap
                                

                                was kommt da auf der console

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

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

                                  was kommt da auf der console

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

                                  oder stimmt der Pfad nicht?

                                  doch passt:

                                  pi@ioBroker-VM02:~$ which nmap
                                  /usr/bin/nmap
                                  

                                  EDIT /local/ rausgenommen - jetzt läuft was

                                  Starting Nmap 7.80 ( https://nmap.org ) at 2021-12-31 20:08 CET
                                  Nmap done: 256 IP addresses (0 hosts up) scanned in 29.13 seconds
                                  

                                  ich starte das Skript nochmal

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

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

                                    ich starte das Skript nochmal

                                    javascript.1
                                    2021-12-31 20:10:06.293	error	at processTimers (internal/timers.js:500:7)
                                    
                                    javascript.1
                                    2021-12-31 20:10:06.292	error	at listOnTimeout (internal/timers.js:557:17)
                                    
                                    javascript.1
                                    2021-12-31 20:10:06.291	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2119:34)
                                    
                                    javascript.1
                                    2021-12-31 20:10:06.290	error	at Object.<anonymous> (script.js.Hardware.NetScan:261:11)
                                    
                                    javascript.1
                                    2021-12-31 20:10:06.287	error	Error in callback: TypeError: Cannot read property 'length' of null
                                    

                                    Im Hirn kram....
                                    brauchte das Skript noch was

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

                                      @homoran

                                      script stop - datenpunkt löschen - starten - wäre noch ein versuch

                                      javascript.x.Tabellen@Liv.NMAPTabelleVIS.Device_Collection
                                      
                                      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:

                                        script stop - datenpunkt löschen - starten - wäre noch ein versuch

                                        und was ist mit /etc/sudoers.d/iobroker-own

                                        die ist bei mir leer

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

                                          @homoran
                                          moment - muss ich kucken

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

                                            @homoran

                                            Image 10.png

                                            du mit deinem pfad !!!

                                            Homoran 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            834
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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