Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter radar2 v1.2.x GitHub

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter radar2 v1.2.x GitHub

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

      @patrick039212 hast du auf "debug" gestellt? Dann einfach auf info stellen.

      P 1 Reply Last reply Reply Quote 0
      • P
        patrick039212 @lobomau last edited by

        @lobomau

        Hatte ich schon probiert, wurde mir an als Info bei Debug angezeigt, habe es jetzt auf warn gestellt hat funktioniert 🙂

        nik82 1 Reply Last reply Reply Quote 0
        • nik82
          nik82 Most Active @patrick039212 last edited by nik82

          Hallo,
          ich würde auch gerne den Radar-Adapter installieren, aber bei jeder Installation zerschießt es mir den kompletten IOBroker,
          bleibt hier hängen und danach geht gar nichts mehr, muss komplett zurücksichern:


          $ ./iobroker add radar2 --host IOBROKER(Iobroker)
          NPM version: 6.11.3
          npm install iobroker.radar2@2.0.1 --loglevel error (System call)
          prebuild-install

          info begin Prebuild-install version 5.3.6
          prebuild-install info looking for cached prebuild @
          C:\iobroker\Iobroker\env\npm-cache_prebuilds\b5fa15-usb-v1.6.3-node-v64-win32-x64.tar.gzprebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v64-win32-x64.tar.gz
          prebuild-install
          http 200 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v64-win32-x64.tar.gz
          prebuild-install
          info downloading to @ C:\iobroker\Iobroker\env\npm-cache_prebuilds\b5fa15-usb-v1.6.3-node-v64-win32-x64.tar.gz.3948-d8d137107a5c8.tmp
          prebuild-install info renaming to @ C:\iobroker\Iobroker\env\npm-cache_prebuilds\b5fa15-usb-v1.6.3-node-v64-win32-x64.tar.gz
          prebuild-install info unpacking @ C:\iobroker\Iobroker\env\npm-cache_prebuilds\b5fa15-usb-v1.6.3-node-v64-win32-x64.tar.gz
          prebuild-install info unpack
          resolved to C:\iobroker\Iobroker\node_modules\usb\build\Release\usb_bindings.node
          prebuild-install info unpack
          required C:\iobroker\Iobroker\node_modules\usb\build\Release\usb_bindings.node successfullyprebuild-install info install Successfully installed prebuilt binary!
          gyp

          ERR! build error
          gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1gyp ERR!
          stack at ChildProcess.onExit (C:\iobroker\Iobroker\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:193:23)gyp ERR! stack at ChildProcess.emit (events.js:198:13)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
          gyp
          ERR! System Windows_NT 10.0.18362gyp
          ERR! command "C:\iobroker\Iobroker\nodejs\node.exe" "C:\iobroker\Iobroker\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\iobroker\Iobroker\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node" "--module_name=bluetooth_hci_socket" "--module_path=C:\iobroker\Iobroker\node_modules\@abandonware\bluetooth-hci-socket\lib\binding" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"gyp ERR! cwd C:\iobroker\Iobroker\node_modules@abandonware\bluetooth-hci-socket
          gyp ERR! node -v v10.17.0gyp ERR! node-gyp -v v5.0.3
          gyp ERR! not ok
          node-pre-gyp
          ERR! build error node-pre-gyp ERR! stack
          Error: Failed to execute 'C:\iobroker\Iobroker\nodejs\node.exe C:\iobroker\Iobroker\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\iobroker\Iobroker\node_modules@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=C:\iobroker\Iobroker\node_modules@abandonware\bluetooth-hci-socket\lib\binding --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\iobroker\Iobroker\node_modules\node-pre-gyp\lib\util\compile.js:83:29)node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)node-pre-gyp
          ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
          node-pre-gyp
          ERR! System Windows_NT 10.0.18362node-pre-gyp ERR! command "C:\iobroker\Iobroker\nodejs\node.exe" "C:\iobroker\Iobroker\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR!
          cwd C:\iobroker\Iobroker\node_modules@abandonware\bluetooth-hci-socketnode-pre-gyp ERR! node -v v10.17.0node-pre-gyp ERR! node-pre-gyp -v v0.15.0
          node-pre-gyp ERR! not ok
          host.IOBROKER(Iobroker) install adapter radar2
          ERROR: (node:14884) UnhandledPromiseRejectionWarning: Error: Cannot find module 'mime' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Upload.uploadAdapter (C:\iobroker\Iobroker\node_modules\iobroker.js-controller\lib\setup\setupUpload.js:533:24) at packetManager.install.catch.then (C:\iobroker\Iobroker\node_modules\iobroker.js-controller\lib\setup\setupInstall.js:774:28) at process._tickCallback (internal/process/next_tick.js:68:7)(node:14884) UnhandledPromiseRejectionWarning: 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(). (rejection id: 2)
          ERROR: (node:14884) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

          Habe eine Iobroker Windows Installation.
          Jemand eine Idee was ich noch machen kann oder ob evtl. irgend etwas fehlt das ich vorher noch installieren muss?

          Danke im Voraus.

          Als Info noch:

          c4c818e6-b865-440a-96d8-91ff07ad79af-image.png JS-Controller
          24fe13be-2d9e-4932-95e6-39a65cf54579-image.png

          EDIT
          Problem erledigt, lag an der Iobroker Installation, nicht am Adapter.

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

            @nik82

            Ich habe eden Adapter (V2.0.1) auf einem Windows-Testsystem laufen:
            Node.js
            v10.21.0 (There is a newer version: v10.23.0 - Recommended version v12.19.0)
            NPM
            6.14.4

            Wie hast du das Windows-System installiert? Scheinst Probleme mit node-Gyp für Windows zu haben und der normalen Installationsroutine zu haben!

            Kannst es mal mittels admin installieren (nicht auf der Kommandozeile)?

            Übrigens, Radar2 hat nur ca 30% seiner Funktionen unter Windows da er nur normale Netzwerkabfragen machen kann aber momentan leider kein BT mehr funktioniert!

            Ich verwende Windows nur zum Testen und Entwickeln ob sich die Adapter darauf installieren lassen oder nicht, aber nicht für wirkliche Installation da es zu viele Einschränkungen hat.

            nik82 1 Reply Last reply Reply Quote 0
            • nik82
              nik82 Most Active @frankjoke last edited by

              @frankjoke

              Danke für deine Hilfe, aber wie oben schon unten als EDIT geschrieben, war meine Installation zerschossen.
              Aber trotzdem danke.

              1 Reply Last reply Reply Quote 0
              • Basti97
                Basti97 Most Active last edited by

                Ich habe nun den Adapter Radar2 installiert. Nachdem ich alle zusätzlich benötigten Installation durchgeführt habe. Funktoniert er gleich sofort. Nun habe ich aber trotzdem eine Frage wo kann ich einstellen das der Bluetooth Adapter nicht jedes mal alle Scant und in den Datenpunkt ubts Datenpunkt schreibt. Sondern nur die Zufuhr eingegebeneb bzw bekannten Geräten.

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

                  @Basti97

                  Wenn du V2.01 verwendest dann kannst das einzelne Abspeichern in der Konfig (Speichern Sie unbekannte BT-Daten) verhindern. Die eine Variable wo alle unknown macs gelistet werden wird trotzdem generiert damit der Adapter weiß welche er schon gesehen hat!

                  Basti97 1 Reply Last reply Reply Quote 0
                  • Basti97
                    Basti97 Most Active @frankjoke last edited by Basti97

                    @frankjoke Ok Danke ja ich habe den neuesten. Ich gucke mal und probiere es mal aus. 😁😁 Aso und die unbekannten Macs die nicht gespeichert werden sollen werden dann nicht mehr aktualisiert oder?

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jan1 last edited by

                      Wie bekomme ich das eigentlich weg?

                      radar2.0	2020-12-05 14:17:13.657	warn	(360746) Adapter not running as root or iobroker has no sudo right, cannot use arp-scan!
                      
                      Diginix 1 Reply Last reply Reply Quote 1
                      • Diginix
                        Diginix @Jan1 last edited by Diginix

                        @Jan1 Alle setcap Befehle wie in Post #2 beschrieben ausgeführt?

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jan1 @Diginix last edited by

                          @Diginix
                          Das da:

                          sudo apt-get install libcap2-bin arp-scan bluetooth bluez libbluetooth-dev libudev-dev net-tools
                          
                          sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp-scan`)
                          
                          sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which node`)
                          
                          sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp`)
                          
                          sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which hcitool`)
                          
                          sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which hciconfig`)
                          
                          sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which l2ping`)
                          

                          Oder noch was anderes?

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

                            @Jan1

                            sudo -u iobroker groups
                            
                            J 1 Reply Last reply Reply Quote 0
                            • J
                              Jan1 @Thomas Braun last edited by

                              @Thomas-Braun

                              jan@Beelink:~$ sudo -u iobroker groups
                              iobroker tty dialout audio video bluetooth
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Jan1 last edited by Thomas Braun

                                @Jan1 Füg den User mal der Gruppe sudo hinzu.

                                Ist zwar eigentlich nicht Sinn der Sache, aber kannst ja mal schauen ob es damit funktioniert.

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

                                  @Thomas-Braun
                                  welchen, iobroker oder jan?

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

                                    @Jan1 Den jan haben wir nicht angeschaut.
                                    Aber wenn der auch fehlt, dann beide.

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

                                      @Thomas-Braun
                                      stimmt, ging ja um iobroker 🙂

                                      Also dann mal:

                                      sudo adduser iobroker sudo
                                      

                                      und

                                      sudo adduser jan sudo
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Jan1 last edited by

                                        @Jan1 Nein...

                                        sudo usermod -aG sudo iobroker
                                        
                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          Jan1 @Thomas Braun last edited by Jan1

                                          @Thomas-Braun
                                          ausgeführt
                                          wie überprüfe ich das nun noch?

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

                                            @Jan1
                                            Den Befehl von vorhin nochmal ausführen?
                                            Kann aber sein, dass der User iobroker erst einmal ausgeloggt werden muss. Starte am besten mal neu.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            490
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            radar2 adapter
                                            49
                                            244
                                            28632
                                            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