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.
    • I
      Ibumetin last edited by

      Hi!

      Ich versuche jetzt schon seit einer Weile, auf meinem Windows-Rechner den Radar2 Adapter zum Laufen zu bringen.
      Leider erstellt er keine Objekte, States etc. mit Ausnahme von radar2.0 > info > connection
      Im Log gibt es auch Fehler, die ich nicht wirklich deuten kann.

      Habe, wie ganz weit oben beschrieben, das radar.js direkt aufgeführt, hier die Ausgabe:

      C:\Program Files\iobroker\SmartOffice> node c:\Programme\iobroker\SmartOffice\node_modules\iobroker.radar2\ radar.js --force --logs --nolazy --debug
      
      info: got following adapter: { name: 'radar2' }
      starting. Version 1.2.0 in C:/Program Files/iobroker/SmartOffice/node_modules/iobroker.radar2, node: v10.16.0
      radar2 initialization started...
      found and will use 'node-bluetooth scan'
      Noble not available, Error: { Error: Cannot find module '@abandonware/bluetooth-hci-socket'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:690:17)at require (internal/modules/cjs/helpers.js:25:18)at Object.<anonymous> (C:\Program Files\iobroker\SmartOffice\node_modules\iobroker.radar2\node_modules\@abandonware\noble\lib\hci-socket\hci.js:6:26)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)at tryModuleLoad (internal/modules/cjs/loader.js:593:12)at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
      radar2 set to flag items away if they are not seen for 2 minutes
      use known BT list: [ '01:12:23:34:45:56' ]
      use known IP list: [ '1.1.1.1' ]
      arp-scan will use the following interfaces: [ 'Ethernet 2', 'Ethernet', 'Ethernet', 'Npcap Loopback Adapter' ]
      radar2 set to scan every 30 seconds and printers every 720 minutes.
      Connected with '0.0.0.0' for DHCP Scan
      Promise problem unhandledRejection of Promise Promise { <rejected> TypeError: A.isLinuxApp(...).then is not a function at Network.updateMacdb.then.then.then (C:\Program Files\iobroker\SmartOffice\node_modules\iobroker.radar2\radar2.js:500:45) } with reason TypeError: A.isLinuxApp(...).then is not a function at Network.updateMacdb.then.then.then (C:\Program Files\iobroker\SmartOffice\node_modules\iobroker.radar2\radar2.js:500:45)
      debug: ChangeState ack:true of info.connection = true
      debug: found item XX_NOTEBOOK by dhcp: 192.168.1.125, xx:xx:xx:xx:xx:xx, Hon Hai Precision Ind Lt
      

      Hoffe, jemand hat eine Idee woran das liegen könnte.

      SBorg 1 Reply Last reply Reply Quote 0
      • SBorg
        SBorg Forum Testing Most Active @Ibumetin last edited by

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

        Hoffe, jemand hat eine Idee woran das liegen könnte.

        Ja, an Windows... 😉
        BT (Noble) geht da nicht, außer du versuchst dich daran spezielle Treiber zu installieren: Tante google noble windows

        SBorg 1 Reply Last reply Reply Quote 0
        • JB_Sullivan
          JB_Sullivan last edited by

          Hallo zusammen - ich habe zum ersten mal Radar2.0 installiert. Ich befürchte ich verstehe nicht so richtig wie man den Adapter korrekt zum Leben erweckt - er wird einfach nicht grün und es werden eine ganze Reihe an Fehlermeldungen generiert.

          Liegt das evtl. daran, weil ich ihn auf einer Windows Installation einsetzte?

          Vielleicht kann mir jemand einen Schubs in die richtige Richtung geben. Unter Windows wird der verwendete BT Adapter als "als IOBroker sichtbar" angezeigt.

          Hier die Betriebssystem Daten:
          Platform: Windows
          Architecture: ia32
          CPUs: 2
          Speed: 3325 MHz
          Model: Intel(R) Core(TM)2 Duo CPU E8600 @ 3.33GHz
          RAM: 3.4 GB
          System uptime: 1 T. 14:39:18
          Node.js: v10.16.0
          NPM: 6.9.0
          Disk size: 209.1 GiB
          Disk free: 167.6 GiB
          adapters count: 282
          Uptime: 1 T. 14:39:09
          Active instances: 25


          radar2.0 2019-07-14 18:26:24.401 warn Promise problem unhandledRejection of Promise Promise { <rejected> TypeError: A.isLinuxApp(...).then is not a function at Network.updateMacdb.then.then (C:\ioBroker\node_modules\iobroker.radar2\radar
          radar2.0 2019-07-14 18:26:24.401 info Adapter disconnected and stopped with dostop(false) and callback(true)
          radar2.0 2019-07-14 18:26:24.401 error at process._tickCallback (internal/process/next_tick.js:61:11)
          radar2.0 2019-07-14 18:26:24.401 error at Noble.<anonymous> (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\noble.js:57:24)
          radar2.0 2019-07-14 18:26:24.401 error at NobleBindings.init (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\hci-socket\bindings.js:82:13)
          radar2.0 2019-07-14 18:26:24.401 error at Hci.init (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\hci-socket\hci.js:101:35)
          radar2.0 2019-07-14 18:26:24.401 error at BluetoothHciSocket.bindRaw (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\bluetooth-hci-socket\lib\usb.js:43:8)
          radar2.0 2019-07-14 18:26:24.401 error at BluetoothHciSocket.bindUser (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\bluetooth-hci-socket\lib\usb.js:90:19)
          radar2.0 2019-07-14 18:26:24.401 error at Device.usb.Device.open (C:\ioBroker\node_modules\iobroker.radar2\node_modules\usb\usb.js:34:7)
          radar2.0 2019-07-14 18:26:24.401 error Error: LIBUSB_ERROR_NOT_SUPPORTED
          radar2.0 2019-07-14 18:26:24.401 error uncaught exception: LIBUSB_ERROR_NOT_SUPPORTED

          host.iobroker 2019-07-14 18:17:35.088 info Restart adapter system.adapter.radar2.0 because enabled
          host.iobroker 2019-07-14 18:17:35.088 error instance system.adapter.radar2.0 terminated with code 0 (OK)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at process._tickCallback (internal/process/next_tick.js:61:11) errno: -12 }
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at Noble.<anonymous> (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\noble.js:57:24)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at NobleBindings.init (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\hci-socket\bindings.js:82:13)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at Hci.init (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\hci-socket\hci.js:101:35)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at BluetoothHciSocket.bindRaw (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\bluetooth-hci-socket\lib\usb.js:43:8)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at BluetoothHciSocket.bindUser (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\bluetooth-hci-socket\lib\usb.js:90:19)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: at Device.usb.Device.open (C:\ioBroker\node_modules\iobroker.radar2\node_modules\usb\usb.js:34:7)
          Caught 2019-07-14 18:17:35.088 error by controller[0]: { Error: LIBUSB_ERROR_NOT_SUPPORTED
          radar2.0 2019-07-14 18:17:35.057 warn Promise problem unhandledRejection of Promise Promise { <rejected> TypeError: A.isLinuxApp(...).then is not a function at Network.updateMacdb.then.then (C:\ioBroker\node_modules\iobroker.radar2\radar
          radar2.0 2019-07-14 18:17:35.057 info Adapter disconnected and stopped with dostop(false) and callback(true)
          radar2.0 2019-07-14 18:17:35.041 error at process._tickCallback (internal/process/next_tick.js:61:11)
          radar2.0 2019-07-14 18:17:35.041 error at Noble.<anonymous> (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\noble.js:57:24)
          radar2.0 2019-07-14 18:17:35.041 error at NobleBindings.init (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\hci-socket\bindings.js:82:13)
          radar2.0 2019-07-14 18:17:35.041 error at Hci.init (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\noble\lib\hci-socket\hci.js:101:35)
          radar2.0 2019-07-14 18:17:35.041 error at BluetoothHciSocket.bindRaw (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\bluetooth-hci-socket\lib\usb.js:43:8)
          radar2.0 2019-07-14 18:17:35.041 error at BluetoothHciSocket.bindUser (C:\ioBroker\node_modules\iobroker.radar2\node_modules@abandonware\bluetooth-hci-socket\lib\usb.js:90:19)
          radar2.0 2019-07-14 18:17:35.041 error at Device.usb.Device.open (C:\ioBroker\node_modules\iobroker.radar2\node_modules\usb\usb.js:34:7)
          radar2.0 2019-07-14 18:17:35.041 error Error: LIBUSB_ERROR_NOT_SUPPORTED
          radar2.0 2019-07-14 18:17:35.041 error uncaught exception: LIBUSB_ERROR_NOT_SUPPORTED
          radar2.0 2019-07-14 18:17:35.041 info radar2 set to scan every 20 seconds and printers every 720 minutes.
          radar2.0 2019-07-14 18:17:35.041 info arp-scan will use the following interfaces: [ 'LAN-Verbindung', 'VirtualBox Host-Only Network' ]
          radar2.0 2019-07-14 18:17:35.041 info Remove name end for host names: .fritz.box
          radar2.0 2019-07-14 18:17:35.041 info use known IP list: [ '10.122.60.1' ]
          radar2.0 2019-07-14 18:17:35.041 info use known BT list: [ '01:12:23:34:45:56' ]
          radar2.0 2019-07-14 18:17:35.041 info radar2 set to flag items away if they are not seen for 2 minutes
          radar2.0 2019-07-14 18:17:35.041 info found 'node-bluetooth'
          radar2.0 2019-07-14 18:17:35.041 info found '@abandonware/noble'
          radar2.0 2019-07-14 18:17:34.916 info Connected with '0.0.0.0' for DHCP Scan
          radar2.0 2019-07-14 18:17:34.838 info radar2 initialization started...
          radar2.0 2019-07-14 18:17:34.776 info starting. Version 1.0.7 in C:/ioBroker/node_modules/iobroker.radar2, node: v10.16.0
          host.iobroker 2019-07-14 18:17:34.228 info instance system.adapter.radar2.0 started with pid 8164

          1 Reply Last reply Reply Quote 0
          • SBorg
            SBorg Forum Testing Most Active @SBorg last edited by

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

            Ja, an Windows... 😉
            BT (Noble) geht da nicht, außer du versuchst dich daran spezielle Treiber zu installieren: Tante google noble windows

            1 Reply Last reply Reply Quote 0
            • O
              Oli last edited by

              Hallo zusammen,

              ich habe ioBroker auf einem Qnap Nas in einer Docker Umgebung installiert und benutze als Router einen Speedport.
              Funktioniert der Adapter in dieser Konstellation?

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

                @Oliver-Böhm bei mir läuft radar2 in einem proxmox-container und ich habe als router einen speedport pro.
                Hier habe ich nur die Funktion für LAN Geräte im Einsatz also kein BT. BT macht ein Raspi3.

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

                  @lobomau

                  Danke für die Auskunft, dann werde ich mal testen.

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

                    @Oliver-Böhm Einstellungen im Adapter sehen bei mir so aus:
                    d91990a3-ae44-4f5b-a69a-8ddae9bc29fd-image.png

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

                      @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.

                      stephan1827 1 Reply Last reply Reply Quote 0
                      • F
                        FuLLHDvs480p last edited by

                        Hallo,

                        habe folgendes Problem:

                        Bei der Ausführung von

                        sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp-scan`)
                        

                        und

                         sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp`)
                        

                        bekomme ich die Fehlermeldung:

                        readlink: fehlender Operand
                        „readlink --help“ liefert weitere Informationen.
                        usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
                        
                         Note <filename> must be a regular (non-symlink) file.
                        

                        Mein System ist frisch aufgesetzt und läuft in einer VM auf Proxmox.
                        radar2 version: 1.0.3

                        Hier die zusammenhängende Installation

                        timo@ioBrokerEG:/opt/iobroker$ node -v
                        v10.16.2
                        timo@ioBrokerEG:/opt/iobroker$ nodejs -v
                        v10.16.2
                        timo@ioBrokerEG:/opt/iobroker$ npm -v
                        6.10.3
                        timo@ioBrokerEG:/opt/iobroker$ sudo apt-get install libcap2-bin arp-scan bluetooth bluez libbluetooth-dev libudev-dev net-tools
                        Paketlisten werden gelesen... Fertig
                        Abhängigkeitsbaum wird aufgebaut.
                        Statusinformationen werden eingelesen.... Fertig
                        arp-scan ist schon die neueste Version (1.9.5-1).
                        bluetooth ist schon die neueste Version (5.50-1).
                        bluez ist schon die neueste Version (5.50-1).
                        libbluetooth-dev ist schon die neueste Version (5.50-1).
                        libcap2-bin ist schon die neueste Version (1:2.25-2).
                        net-tools ist schon die neueste Version (1.60+git20180626.aebd88e-1).
                        libudev-dev ist schon die neueste Version (241-5).
                        0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                        timo@ioBrokerEG:/opt/iobroker$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp-scan`)
                        readlink: fehlender Operand
                        „readlink --help“ liefert weitere Informationen.
                        usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
                        
                         Note <filename> must be a regular (non-symlink) file.
                        timo@ioBrokerEG:/opt/iobroker$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which node`)
                        timo@ioBrokerEG:/opt/iobroker$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp`)
                        readlink: fehlender Operand
                        „readlink --help“ liefert weitere Informationen.
                        usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
                        
                         Note <filename> must be a regular (non-symlink) file.
                        timo@ioBrokerEG:/opt/iobroker$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which hcitool`)
                        timo@ioBrokerEG:/opt/iobroker$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which hciconfig`)
                        timo@ioBrokerEG:/opt/iobroker$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which l2ping`)
                        timo@ioBrokerEG:/opt/iobroker$
                        
                        
                        MathiasJ 1 Reply Last reply Reply Quote 0
                        • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            720
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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