Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IOBroker - Radar2

    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

    IOBroker - Radar2

    This topic has been deleted. Only users with topic management privileges can see it.
    • frankjoke
      frankjoke @gammler2003 last edited by

      @gammler2003

      0.0.0.0 bedeutet nur dass auf allen interfaces (kannst mit ifconfig auslisten) gehorcht werden soll, port 67 ist das wichtige, ich versuche darauf nicht exclusiv zu horchen, s.h. ich lasse andere zu auch zu horchen, aber wenn irgendwer exklusiv darauf horcht dann kann ich auch nicht 😞

      Es gibt 2 Möglichkeiten zu verhindern dass der Adapter vielleicht durchkommt:

      1. wenn du im environment (bevor iobroker startet) den im env DEBUG="testing:" stehen hast dann benutz er DHCP nicht und führt den Befehl nicht aus
      2. Wenn du erkennst dass du mehrere interfaces hast und nur auf einem horchen willst (und das wird nicht sonst belegt) dann könntest in myNetwork.js auf Zeile 956 die IP des interfaces eintragen was dann ca. so ausschaut:
        self._listener = new Dhcp("192.168.1.77"); und damit horcht er nur mehr dort.

      Ich überleg mir ob ich eine Konfig einbaue um die IP oder alle (oder keine) eintragen kann die beim nächsten Update vielleicht das flexibler macht

      G Martin Kohl 2 Replies Last reply Reply Quote 0
      • G
        gammler2003 @Thomas Braun last edited by

        @Thomas-Braun said in IOBroker - Radar2:

        sudo netstat tulpen | grep :

        Also wenn ich das in der Konsole eingebe, passiert gar nichts. Ist das gut oder schlecht?

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

          @gammler2003
          Da fehlt die 67 hinter dem :

          Aber Port 67 ist ganz sicher DHCP.

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

            @Thomas-Braun

            Habe beide Befehle probiert aber keier zeigt dass port 67 von Radar2 benutz wird.
            lsof findet aber einen Eintrag node 4792 iobroker 34u IPv4 42662 0t0 UDP *:bootps der mein radar2 sein kann da ich ja mut UDP auf port 67 horche...

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

              @Thomas-Braun said in IOBroker - Radar2:

              sudo netstat tulpen | grep :67
              -> Hier passiert leider gar nichts.

              sudo lsof -i -n
              -> Hier bekomme ich eine längere Liste. Größtenteils sind hier meine iobroker Adapter aufgeführt. Nach was muss ich genau suchen?

              1 Reply Last reply Reply Quote 0
              • G
                gammler2003 @frankjoke last edited by

                @frankjoke said in IOBroker - Radar2:

                wenn du im environment (bevor iobroker startet) den im env DEBUG="testing:" stehen hast dann benutz er DHCP nicht und führt den Befehl nicht aus

                Was genau meinst du mit "environment"? Wo muss ich was genau eingeben?

                1 Reply Last reply Reply Quote 0
                • P
                  pupsi last edited by

                  Hallo ich habe ein problem...;-)ich habe mir hier so gut wie alles durchgelesen und probiert jedoch ohne erfolg. Wo liegt mein fehler?

                  Hier ein Auszug aus dem LOG

                  host.iobrokerslave	2020-06-18 07:59:40.528	info	Restart adapter system.adapter.radar2.1 because enabled
                  host.iobrokerslave	2020-06-18 07:59:40.526	info	instance system.adapter.radar2.1 terminated with code 0 (NO_ERROR)
                  radar2.1	2020-06-18 07:59:40.087	warn	(688) Promise problem unhandledRejection of Promise Promise { <rejected> TypeError: A.C.knownBTs.toLowerCase is not a function at /opt/iobroker/node_modules/iobroker.radar2/radar2.js:464:41 at process
                  radar2.1	2020-06-18 07:59:40.080	info	(688) Adapter disconnected and stopped with dostop(false) and callback(true)
                  radar2.1	2020-06-18 07:59:40.076	error	(688) TypeError: A.C.knownBTs.toLowerCase is not a function at /opt/iobroker/node_modules/iobroker.radar2/radar2.js:464:41 at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  radar2.1	2020-06-18 07:59:40.073	error	(688) unhandled promise rejection: A.C.knownBTs.toLowerCase is not a function
                  radar2.1	2020-06-18 07:59:40.071	error	Unhandled 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().
                  radar2.1	2020-06-18 07:59:40.054	info	(688) radar2 set to flag items away if they are not seen for 3 minutes
                  radar2.1	2020-06-18 07:59:40.052	warn	(688) node-bluetooth not found!
                  radar2.1	2020-06-18 07:59:40.048	info	(688) found '@abandonware/noble'
                  radar2.1	2020-06-18 07:59:39.501	info	(688) Connected with '0.0.0.0' for DHCP Scan
                  radar2.1	2020-06-18 07:59:39.043	info	(688) radar2 initialization started...
                  radar2.1	2020-06-18 07:59:38.995	warn	(688) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!
                  radar2.1	2020-06-18 07:59:38.832	info	(688) starting. Version 1.0.9 in /opt/iobroker/node_modules/iobroker.radar2, node: v14.4.0, js-controller: 3.1.5
                  host.iobrokerslave	2020-06-18 07:59:34.062	info	instance system.adapter.radar2.1 started with pid 688
                  
                  Diginix Thomas Braun 2 Replies Last reply Reply Quote 0
                  • Diginix
                    Diginix @pupsi last edited by

                    @pupsi Du hast Version 1.0.9 installiert, nicht 2.x

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

                      @pupsi
                      Und node 14 ist vielleicht auch noch etwas früh. Ich würde an deiner Stelle die empfohlene node12 installieren.

                      1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @Homoran last edited by

                        @Homoran Ja der Fixer würde da Helfen. Der setzt mal mindestens einige setcap auf dem nodejs prozess.

                        @frankjoke Der "Fixer" ist das Skript was man bei einer ioBroker Installation nutzen kann um sicherzustellen das die Installation so ist als wenn man "frisch" installieren würde. Der Macht setcap kram, installiert fehlende Pakete, fixt rechte, legt den ioBroker user an und richtet alles so ein wie es sein muss.

                        1 Reply Last reply Reply Quote 0
                        • A
                          aldoa1 last edited by

                          ich kann den Adapter nicht starten. Bleibt rot.
                          Verwende iobroker mit synology / docker

                          Von der Konsole aus mit
                          node /opt/iobroker/node_modules/iobroker.radar2/radar2.js --force --logs --nolazy

                          startet der Adapter.
                          Dann ist radar2 sofort grün.

                          Stoppe ich die Ausführung in der Konsole ist der Adapter sofort rot und startet nicht mehr.

                          Wie kann ich das Problem lösen?

                          apollon77 Glasfaser 2 Replies Last reply Reply Quote 0
                          • apollon77
                            apollon77 @aldoa1 last edited by

                            @aldoa1 Wenn Du Ihn von der Kommandozeile startest ist es auch der iobroker user?

                            Was steht im Logfile von iobroker wenn du es per ioBroker startest?

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              aldoa1 @apollon77 last edited by

                              @apollon77
                              per Konsole ist es der root.

                              Log:
                              radar2.0 2020-08-28 23:02:35.009 warn (7797) Adapter not running as root or iobroker has no sudo right, cannot use arp-scan!
                              radar2.0 2020-08-28 23:02:34.977 info (7797) Adapter disconnected and stopped with dostop(null) and callback(true)
                              radar2.0 2020-08-28 23:02:34.976 info (7797) Unload adapter now with null
                              radar2.0 2020-08-28 23:02:34.973 warn (7797) Uncaught Exception: bind EACCES 0.0.0.0:67
                              radar2.0 2020-08-28 23:02:34.968 error (7797) Error: bind EACCES 0.0.0.0:67 at dgram.js:338:20 at processTicksAndRejections (internal/process/task_queues.js:85:21)
                              radar2.0 2020-08-28 23:02:34.967 error (7797) uncaught exception: bind EACCES 0.0.0.0:67
                              radar2.0 2020-08-28 23:02:34.952 info (7797) arp-scan will use the following interfaces: [ 'eth1', 'docker0' ]
                              radar2.0 2020-08-28 23:02:34.950 info (7797) debug: use known IP list: ['192.168.167.1','192.168.167.2','192.168.167.115','192.168.167.62']
                              radar2.0 2020-08-28 23:02:34.946 info (7797) debug: use known BT list: []
                              radar2.0 2020-08-28 23:02:34.945 info (7797) debug: radar2 set to flag items away if they are not seen for 3 minutes
                              radar2.0 2020-08-28 23:02:34.883 info (7797) net-ping not available! Will try to use normal ping!
                              radar2.0 2020-08-28 23:02:34.733 info (7797) debug: started #3 hciconfig hci0 up
                              radar2.0 2020-08-28 23:02:34.582 info (7797) debug: started #2 hciconfig hci0 down
                              radar2.0 2020-08-28 23:02:34.569 info (7797) Will run hcitool-mode and not noble on device []!
                              radar2.0 2020-08-28 23:02:34.536 info (7797) debug: started #1 hcitool dev
                              radar2.0 2020-08-28 23:02:34.507 info (7797) Will use l2Ping for BT scans.
                              radar2.0 2020-08-28 23:02:34.492 info (7797) radar2 initialization started...

                              apollon77 harrym 2 Replies Last reply Reply Quote 0
                              • apollon77
                                apollon77 @aldoa1 last edited by

                                @aldoa1 Naja da steht es ... liesst mal die Readme des Adapters,da steht drin was Du ggf noch an extra Befehlen ausführen musst (Stichwort setcap) ... oder lass den iobroker fixer laufen

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  aldoa1 @apollon77 last edited by

                                  @apollon77

                                  den fixer habe ich schon probiert.
                                  die setcap Befehle konnte ich nicht ausführen.

                                  Wenn ich als root per Konsole starte, funktioniert der adapter super.

                                  apollon77 Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • harrym
                                    harrym @aldoa1 last edited by

                                    @aldoa1 sagte in IOBroker - Radar2:

                                    Adapter not running as root or iobroker has no sudo right

                                    keine Ahnung welchen fixer du laufen hast lassen ... es war nicht der richtige.

                                    A 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @aldoa1 last edited by

                                      @aldoa1 sagte in IOBroker - Radar2:

                                      die setcap Befehle konnte ich nicht ausführen.

                                      Warum nicht? Wenn die Programme nicht installiert sein sollten dann installiere sie bitte

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aldoa1 @harrym last edited by

                                        @harrym

                                        Hatte im Portainer beim iobroker die Kosole als root geöffnet und dann:

                                        curl -sL https://iobroker.net/fix.sh | bash -

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

                                          @aldoa1 sagte in IOBroker - Radar2:

                                          Wenn ich als root per Konsole starte, funktioniert der adapter super.

                                          Das ist aber falsch, du startest gar nichts aktiv als root.
                                          Als user:

                                          iobroker fix
                                          
                                          1 Reply Last reply Reply Quote 1
                                          • harrym
                                            harrym @aldoa1 last edited by

                                            @aldoa1 und wieso nicht einfach unter /opt/iobroker (zur sicherheit) iobroker fix .... iobroker bietet auch seine ganzen befehle an ... wenn man ihn aufruft ....

                                            A 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            586
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            radar2 adapter raspberry
                                            23
                                            153
                                            16683
                                            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