Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. [Adapter] Neuer radar2-Adapter

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    [Adapter] Neuer radar2-Adapter

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

      Hat schon jemand Radar2 auf dem Raspberry PI 4B am laufen?
      Mich würde interessieren, ob man das interne BT 5.x Modul nutzen kann, oder ob man auf ein externes umsteigen soll
      Gruß,
      Mathias

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

        Hi zusammen,
        Bei mir lief der Radar2 Adapter schon mal rund,nun habe ich aber das Problem das nach ein paar Stunden der Adapter auf rot geht, kein log eintrag nix. Neustart des Adapters und gut ist erstmal für eine weile. Fehler kommt dann irgendwann erneut.

        System ist ein (Multihost-Slave) RPI3 mit Buster, node/js 10.16.0

        Hat noch jemand diese Aufhänger? oder läuft das unauffällig bei euch?

        VG

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

          @Adnim ja, hängt bei mir auch manchmal. Auch ein Pi3 als Slave, Node.js v10.16.2, NPM 6.9.0.
          Ich habe noch keinen Zusammenhang gefunden,nichts im log gefunden.

          1 Reply Last reply Reply Quote 0
          • stephan1827
            stephan1827 @pati last edited by

            @pati said in [Adapter] Neuer radar2-Adapter:

            @frankjoke Ich hatte gestern das Problem dass die Geräte nach einer Minute bereits als away gekennzeichnet wurden. Scanzeit auf 20 Sekunden, delayAway auf 15 Minuten. Ich habe dann mal einen Blick in den Code geworfen und festgestellt dass die Zeit beim Starten zurückgesetzt wird:

            if (Math.floor(scanDelay * 2 / 1000 / 60)<= delayAway)
                delayAway = Math.ceil(scanDelay * 2.5 / 1000 / 60);
            

            In meinem Fall steht scanDelay auf 20 Sekunden - also ergibt sich daraus:
            20000 * 2 / 1000 / 60 = 0,66 - nach dem floor bleibt dann noch eine 0.

            Du schreibst dass delayAway auf 2,5*scanDelay gesetzt wird wenn delayAway UNTER scanDelay*2 gesetzt wurde. Prüfen tust du jedoch ob delayAway größer ist als Math.floor(scanDelay * 2 / 1000 / 60) - in meine Fall steht hier also if (0 <= delayAway) - das ist natürlich immer true wenn delayAway >= 0 ist. Dadurch wird delayAway dann auf 1 Minute gesetzt.

            Ich habe die zwei Zeilen auskommentiert - läuft nun wunderbar mit einer Verzögerung von 15 Minuten.

            Hallo,
            habe das Problem ebenfalls gemeldet. Deine Änderungen haben das Problem bei mir auch gelöst. Vielleicht kannst Du einen Pull Request senden dann kann Frank das einpflegen.

            Stephan

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

              Ich habe Probleme mit dem Radar 2 Adapter und zwar habe ich ein USB Bluetooth 4.0 an meinem Nuc angeschlossen und über die Konsole funktioniert er einbandfrei, über diesen Befehl:

              hcitool lescan
              

              findet ich auch alle Geräte.
              Den Radar Adapter bekomme ich Grün, aber er findet nicht die Geräte und es kommt immer dieser warn:

              2019-08-15 09:52:32.657 - warn: radar2.0 Noble not available, Error: Error: The module '/opt/iobroker/node_modules/iobroker.radar2/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'was compiled against a different Node.js version usingNODE_MODULE_VERSION 57. This version of Node.js requiresNODE_MODULE_VERSION 64. Please try re-compiling or re-installingthe module (for instance, using `npm rebuild` or `npm install`).at Object.Module._extensions..node (internal/modules/cjs/loader.js:805:18)at Module.load (internal/modules/cjs/loader.js:653:32)at tryModuleLoad (internal/modules/cjs/loader.js:593:12)at Function.Module._load (internal/modules/cjs/loader.js:585:3)at Module.require (internal/modules/cjs/loader.js:690:17)at require (internal/modules/cjs/helpers.js:25:18)at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.radar2/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:6:15)at Module._compile (internal/modules/cjs/loader.js:776:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)at Module.load (internal/modules/cjs/loader.js:653:32)
              

              Ich habe auch schon wie ich hier gelesen habe die Npm tools installiert:

              npm install node-pre-gyp 
              npm install @abandonware/bluetooth-hci-socket 
              npm install node-bluetooth
              

              Adapter gelöscht und neu installiert, fixer laufen lassen und npm rebuild gemacht.

              Aber der Warn kommt immernoch und findet keine Geräte.

              Kann mir jemand helfen ?

              A 1 Reply Last reply Reply Quote 0
              • A
                Adnim @marcuskl last edited by

                @marcuskl sagte in [Adapter] Neuer radar2-Adapter:

                Error: The module '/opt/iobroker/node_modules/iobroker.radar2/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'was compiled against a different Node.js version

                marcuskl 1 Reply Last reply Reply Quote 0
                • marcuskl
                  marcuskl @Adnim last edited by

                  @Adnim sagte in [Adapter] Neuer radar2-Adapter:

                  @marcuskl sagte in [Adapter] Neuer radar2-Adapter:

                  Error: The module '/opt/iobroker/node_modules/iobroker.radar2/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'was compiled against a different Node.js version

                  Was soll ich da jetzt interpretieren?

                  Was kann ich machen?

                  1 Reply Last reply Reply Quote 0
                  • marcuskl
                    marcuskl last edited by

                    Och habe mal versucht "npm i bluetooth-hci-socket"

                    Das funktioniert nicht, es kommt dieser Fehler:

                    root@iobroker:~# npm i bluetooth-hci-socket      
                    > bluetooth-hci-socket@0.5.1 install /root/node_modules/bluetooth-hci-socket                      > node-gyp rebuild
                    make: Verzeichnis „/root/node_modules/bluetooth-hci-socket/build“ wird betreten
                      CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o                                 ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
                    ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                     s), Nan::New("emit").ToLocalChecked(), 2, argv);                                               ^
                    In file included from ../src/BluetoothHciSocket.cpp:8:0:
                    ../../nan/nan.h:1045:46: note: declared here
                     PRECATED inline v8::Local<v8::Value> MakeCallback(
                                                          ^~~~~~~~~~~~
                    ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
                    ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
                     rorConstructor->NewInstance(1, constructorArgs);                                               ^
                    In file included from /root/.node-gyp/10.16.3/include/node/node.h:63:0,
                                     from /root/.node-gyp/10.16.3/include/node/node_buffer.h:25,
                                     from ../src/BluetoothHciSocket.cpp:7:
                    /root/.node-gyp/10.16.3/include/node/v8.h:3993:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
                     ARN_UNUSED_RESULT MaybeLocal<Object> NewInstanc (
                                                          ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h:3993:44: note:   candidate expects 3 arguments, 2 provided
                    /root/.node-gyp/10.16.3/include/node/v8.h:3996:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
                     ARN_UNUSED_RESULT MaybeLocal<Object> NewInstanc (
                                                          ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h:3996:44: note:   candidate expects 1 argument, 2 provided
                    ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                     s), Nan::New("emit").ToLocalChecked(), 2, argv);                                               ^
                    In file included from ../src/BluetoothHciSocket.cpp:8:0:
                    ../../nan/nan.h:1045:46: note: declared here
                     PRECATED inline v8::Local<v8::Value> MakeCallback(
                                                          ^~~~~~~~~~~~
                    ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE ’:
                    ../src/BluetoothHciSocket.cpp:395:34: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                           devId = arg0->IntegerValue();
                                                      ^
                    In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                     from /root/.node-gyp/10.16.3/include/node/node.h:63,
                                     from /root/.node-gyp/10.16.3/include/node/node_buffer.h:25,
                                     from ../src/BluetoothHciSocket.cpp:7:
                    /root/.node-gyp/10.16.3/include/node/v8.h:2476:46: note: declared here
                     RECATED("Use maybe version", int64_t IntegerValue() const);
                                                          ^
                    /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATE ’
                       declarator __attribute__((deprecated(message)))
                       ^~~~~~~~~~
                    ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/BluetoothHciSocket.cpp:417:34: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                           devId = arg0->IntegerValue();
                                                      ^
                    In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                     from /root/.node-gyp/10.16.3/include/node/node.h:63,
                                     from /root/.node-gyp/10.16.3/include/node/node_buffer.h:25,
                                     from ../src/BluetoothHciSocket.cpp:7:
                    /root/.node-gyp/10.16.3/include/node/v8.h:2476:46: note: declared here
                     RECATED("Use maybe version", int64_t IntegerValue() const);
                                                          ^
                    /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATE ’
                       declarator __attribute__((deprecated(message)))
                       ^~~~~~~~~~
                    binding.target.mk:101: die Regel für Ziel „Release/obj.target/binding/src/BluetoothHciSocket.o“ scheiterte
                    make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Fehler 1
                    make: Verzeichnis „/root/node_modules/bluetooth-hci-socket/build“ wird verlassen
                    gyp ERR! build error
                    gyp ERR! stack Error: `make` failed with exit code: 2
                    gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262: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 Linux 4.9.0-9-amd64
                    gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                    gyp ERR! cwd /root/node_modules/bluetooth-hci-socket
                    gyp ERR! node -v v10.16.3
                    gyp ERR! node-gyp -v v3.8.0
                    gyp ERR! not ok
                    npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
                    npm WARN root No description
                    npm WARN root No repository field.
                    npm WARN root No README data
                    npm WARN root No license field.
                    
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild`
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the bluetooth-hci-socket@0.5.1 install script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /root/.npm/_logs/2019-08-16T11_09_10_850Z-debug.log
                    root@iobroker:~#
                    
                    AlCalzone 1 Reply Last reply Reply Quote 0
                    • AlCalzone
                      AlCalzone Developer @marcuskl last edited by

                      @marcuskl sagte in [Adapter] Neuer radar2-Adapter:

                      root@iobroker:~# npm i bluetooth-hci-socket

                      1. Falsches Paket, richtig wäre npm i @abandonware/bluetooth-hci-socket
                      2. Falscher Ordner, du musst die Befehle im Adapter-Ordner /opt/iobroker/node_modules/iobroker.radar2 ausführen
                      marcuskl 1 Reply Last reply Reply Quote 1
                      • marcuskl
                        marcuskl @AlCalzone last edited by marcuskl

                        @AlCalzone sagte in [Adapter] Neuer radar2-Adapter:

                        @marcuskl sagte in [Adapter] Neuer radar2-Adapter:

                        root@iobroker:~# npm i bluetooth-hci-socket

                        1. Falsches Paket, richtig wäre npm i @abandonware/bluetooth-hci-socket
                        2. Falscher Ordner, du musst die Befehle im Adapter-Ordner /opt/iobroker/node_modules/iobroker.radar2 ausführen

                        Habe ich gemacht und es ist immernoch der Fehler da

                        Ich korrigiere, der warn ist jetzt anders:

                        2019-08-16 15:25:10.420  - warn: radar2.0 Noble not available, Error: Error: The module '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'was compiled against a different Node.js version usingNODE_MODULE_VERSION 57. This version of Node.js requiresNODE_MODULE_VERSION 64. Please try re-compiling or re-installingthe module (for instance, using `npm rebuild` or `npm install`).at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)at Module.load (internal/modules/cjs/loader.js:653:32)at tryModuleLoad (internal/modules/cjs/loader.js:593:12)at Function.Module._load (internal/modules/cjs/loader.js:585:3)at Module.require (internal/modules/cjs/loader.js:692:17)at require (internal/modules/cjs/helpers.js:25:18)at Object.<anonymous> (/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:6:15)at Module._compile (internal/modules/cjs/loader.js:778:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)at Module.load (internal/modules/cjs/loader.js:653:32)
                        
                        1 Reply Last reply Reply Quote 0
                        • R
                          RappiRN Most Active last edited by

                          Da steht was von verschiedenen node-Versionen.

                          Was ergibt denn:

                          node -v
                          
                          nodejs -v
                          

                          ?

                          Enrico

                          1 Reply Last reply Reply Quote 0
                          • marcuskl
                            marcuskl last edited by

                            Ich habe nun unter den Verzeichnis /opt/iobroker/ nochmal

                            npm i @abandonware/bluetooth-hci-socket
                            

                            installiert und nun geht es.

                            @RappiRN sagte in [Adapter] Neuer radar2-Adapter:

                            Da steht was von verschiedenen node-Versionen.

                            Was ergibt denn:

                            node -v
                            
                            nodejs -v
                            

                            ?

                            Enrico

                            ergibt beides 10.16.3

                            1 Reply Last reply Reply Quote 0
                            • F
                              Fabian1 last edited by

                              Hallo Zusammen,

                              ich bin super neu dabei und habe letzte Woche meine ersten Gehversuche mit IOBroker unternommen. Was mir wirklich fehlt, ist eine gute Anwesenheitserkennung. Radar2 ist schon ziemlich nah dran, darum schreibe ich auch hier.

                              Mein Telefon im WLAN zu erkennen funktioniert super, leider reicht mein WLAN viel zu weit und es triggert lange bevor ich Zuhause bin. Also für Sachen wie Türöffnung nicht zu gebrauchen. Mein Iphone Xs sendet auch kein Bluetooth Funkfeuer aus das erkannt werden könnte.

                              Darum meine Idee und feature request für den Radar2 Adapter, anzeigen ob ein gekoppeltes Bluetooth Gerät verbunden ist!

                              Das koppeln mit dem Raspi Bluetooth Adapter ist ja super einfach und man könnte dann das Iphone auf automatisch verbinden stellen und hätte eine super Anwesenheitserkennung mit kleiner Reichweite.

                              1 Reply Last reply Reply Quote 1
                              • K
                                Kuddel last edited by Kuddel

                                Hallo zusammen,

                                ich habe den Adapter gerade in einer frischen iobroker Installation auf Ubuntu 18.04 installiert.

                                Mein Handy wird über WLAN erkannt, allerdings fehlt das Datenobjekte Handy.here wie beim Radar 1.

                                Über dieses Datenobjekt steure ich Anwesenheit...

                                EDIT: Aktuelle Version von GIT installiert. jetzt ist das Datenobjekt da

                                1 Reply Last reply Reply Quote 0
                                • tigertim08
                                  tigertim08 last edited by tigertim08

                                  Hallo zusammen,

                                  ich bekomme den adapter einfach nicht zu laufen... ich habe ioBroker in einer VM (Proxmox) auf Debian Basis laufen. Allerdings bekomme ich den Adapter einfach nicht grün... Das weiterleiten des USB Bluetooth dongle zur VM schein zu funktionieren.
                                  2019-08-28_20-18-34.png
                                  Allerdings bekomme ich beim starten des Adapters immer folgende Fehlermeldung:
                                  2019-08-28_20-17-26.png

                                  Hat jemand das Problem auch gehabt und kann helfen?

                                  Vielen Dank
                                  Tim

                                  Neuschwansteini 1 Reply Last reply Reply Quote 0
                                  • marcuskl
                                    marcuskl @toki1973 last edited by

                                    @toki1973 sagte in [Adapter] Neuer radar2-Adapter:

                                    @frankjoke said in [Adapter] Neuer radar2-Adapter:

                                    @marcuskl

                                    Wenn du etwas änderst im ioBroker (Nodejs oder ioBroker neu installierst u.s.w.) dann bitte immer vor installation/update vom adapter

                                    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`)
                                    

                                    ausführen. Das sollte die eingeschränkten Standardbewilligungen wieder aufheben.

                                    Super Danke! Das war auch das Problem bei mir - nun gelöst

                                    @tigertim08
                                    Führe diese Befehle mal aus, dann müsste es klappen.
                                    Steht aber alles im Readme vom Adapter

                                    tigertim08 1 Reply Last reply Reply Quote 0
                                    • tigertim08
                                      tigertim08 @marcuskl last edited by

                                      @marcuskl said in [Adapter] Neuer radar2-Adapter:

                                      which arp-scan)

                                      Hatte ich versucht... !
                                      2019-08-28_20-50-14.png
                                      gibt bei mir aber auch eine fehlermeldung aus

                                      1 Reply Last reply Reply Quote 0
                                      • Neuschwansteini
                                        Neuschwansteini @tigertim08 last edited by

                                        @tigertim08 du hast noble nicht installiert..

                                        tigertim08 1 Reply Last reply Reply Quote 0
                                        • tigertim08
                                          tigertim08 @Neuschwansteini last edited by

                                          @ilovegym Guten Morgen, dachte eigentlich das ich das damals gemacht hatte. Habe gerade versucht das ganze nochmal zu machen. Bekomme jetzt aber folgende Fehlermeldung....

                                          2019-08-29_08-01-43.png 2019-08-29_07-58-04.png

                                          Kann jemand damti was anfangen?

                                          AlCalzone 1 Reply Last reply Reply Quote 0
                                          • AlCalzone
                                            AlCalzone Developer @tigertim08 last edited by

                                            @tigertim08 Ja, du kannst npm audit fix nicht ausführen. Ist aber vollkommen egal, dieser Befehl macht IMO nur Unsinn.

                                            Und die Installation von noble musst du im Adapter-Ordner ausführen, nicht in deinem Home-Verzeichnis!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            994
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter radar2 adapter
                                            80
                                            840
                                            177863
                                            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