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.
    • S
      smarti2015 last edited by smarti2015

      Guten Morgen und allen ein frohes Osterfest 😉

      #########
      Bei mir kommt jede Minuten diese Meldung im Log .... hat sich erledigt

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

        @frankjoke Das ist der Output:

        iobroker@BT3-PRO:/opt/iobroker$ npm install @abandonware/noble
        
        > @abandonware/noble@1.9.2-2 install /opt/iobroker/node_modules/@abandonware/noble
        > node-gyp rebuild
        
        gyp WARN EACCES user "iobroker" does not have permission to access the dev dir "/home/diginix/.node-gyp/10.15.2"
        gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
        make: Verzeichnis â/opt/iobroker/node_modules/@abandonware/noble/buildâ wird betreten
          SOLINK_MODULE(target) Release/obj.target/noble.node
          COPY Release/noble.node
        make: Verzeichnis â/opt/iobroker/node_modules/@abandonware/noble/buildâ wird verlassen
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
        
        + @abandonware/noble@1.9.2-2
        added 5 packages from 44 contributors in 37.835s
        
        âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
        â                  npm update check failed                  â
        â            Try running with sudo or get access            â
        â           to the local update config store via            â
        â sudo chown -R $USER:$(id -gn $USER) /home/diginix/.config â
        âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
        
        

        Im Log steht dann bei Instanz Start wieder:

        2019-04-21 12:13:17.788  - 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:718:18)at Module.load (internal/modules/cjs/loader.js:599:32)at tryModuleLoad (internal/modules/cjs/loader.js:538:12)at Function.Module._load (internal/modules/cjs/loader.js:530:3)at Module.require (internal/modules/cjs/loader.js:637:17)at require (internal/modules/cjs/helpers.js:22: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:689:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)at Module.load (internal/modules/cjs/loader.js:599:32)
        2019-04-21 12:13:17.801  - warn: radar2.0 node-bluetooth not found!
        

        Das liest sich so als müsste ich mal das reinstall Skript vom ioBroker laufen lassen. Weil ja alles alte noch mit nodejs 8 gebaut wurde.
        Ich warte aber mal ab bis du dich dazu äußerst.

        D Diginix 2 Replies Last reply Reply Quote 0
        • D
          dondaik @Diginix last edited by

          ich gebe auf - das ist die neuste meldung von radar 2 ..... schade hätte ihn gerne fest eingebunden.
          was habe ich geändert ? die abfragezeit auf 67 sec gesetzt und zurück - so mit adapter stop und neustart usw .... , da die BT daten wieder falsch waren ...die änderung war gegen 7:00 ... seitdem macht er das 🙂

          83d379b8-a690-4d95-be84-3f140c395f9d-image.png

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

            Bei mir lief radar2 bis eben lange Zeit super und ohne Probleme. Bis ich eben das System geupdated habe. Ubuntu 18.06 hat dabei nodejs von 8.15.1 auf 8.16. gebracht.
            Muss ich mir morgen mal in Ruhe anschauen. Screenshot_20190422-222601__01.jpg

            D S 2 Replies Last reply Reply Quote 0
            • D
              deta Most Active @lobomau last edited by

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

              Bei mir lief radar2 bis eben lange Zeit super und ohne Probleme. Bis ich eben das System geupdated habe. Ubuntu 18.06 hat dabei nodejs von 8.15.1 auf 8.16. gebracht.
              Muss ich mir morgen mal in Ruhe anschauen. Screenshot_20190422-222601__01.jpg

              Das hab ich, so ähnlich, wenn ein Eintrag in der zu scanenden Liste nicht mehr stimmt.

              1 Reply Last reply Reply Quote 1
              • MathiasJ
                MathiasJ last edited by MathiasJ

                @frankjoke
                eine freudige Mitteilung: weil der Test-Raspberry an einer ungünstigen Position steht, habe ich einen USB-Extender genommen, an den Raspberry gestöpselt, 15m LAN-kabel dazwischen, am anderen Ende dann das Bluetooth-Dongle.......
                Was soll ich sagen, es funktioniert. Ich lasse das ganze mal den ganzen Tag laufen und melde mich wieder......

                1 Reply Last reply Reply Quote 0
                • D
                  dondaik last edited by

                  🙂 🙂 nicht laufen lassen - dann ist es ja weg .... ☺

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

                    Kann er doch gar nicht, hängt doch an der 15m Leine 😂

                    Funktioniert bei euch der Echo Dot zuverlässig? Meiner wird öfters als Offline angezeigt, daraufhin habe ich die radar2-Einstellungen geändert. War aber sinnlos, denn in dem Augenblick (sind wirklich nur Momente) reagiert meiner nicht mal auf einen ping. Da kann dann radar2 auch nix für...^^

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

                      Warum willst du den Echo per radar erkennen? Das ist doch im alexa Adapter schon zu sehen ob er online ist oder nicht.

                      SBorg 1 Reply Last reply Reply Quote 0
                      • S
                        steimi @lobomau last edited by

                        @lobomau mal das probiert?

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

                        @steimi
                        wenn ihr neues node installiert bitte wieder die Zeile aus der installation mit 'which node' ausführen:

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

                        Die Berechtigung gilt immer nur auf das exakte bin file des installierten nodes.

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

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

                          Ich habe ein Problem mit der Überwachung eines Servers - evtl ist radar2 dazu nicht der richtige Adapter? Ich habe einen Windows-Homeserver welcher per Lightsout in den Standby geschickt wird, sobald bestimmte Geräte nicht zu erreichen sind. Über ioBroker und Alexa kann ich den Server aufwecken. Geht der Server wieder in Standby wird dieser jedoch weiterhin von radar2 als anwesend erkannt. In der Konfig des radar2-Adapters habe ich nur den Namen und die IP-Adresse des Rechner (feste IP) angegeben, jedoch keine MAC-Adresse. Anscheinend wird aber intern die ermittelte MAC-Adresse weiterhin zur Anwesenheitsermittlung herangezogen - kann das sein?

                          @frankjoke kannst du mir dazu weiterhelfen?

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

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

                            @frankjoke Das ist der Output:
                            Im Log steht dann bei Instanz Start wieder:

                            2019-04-21 12:13:17.788  - 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:718:18)at Module.load (internal/modules/cjs/loader.js:599:32)at tryModuleLoad (internal/modules/cjs/loader.js:538:12)at Function.Module._load (internal/modules/cjs/loader.js:530:3)at Module.require (internal/modules/cjs/loader.js:637:17)at require (internal/modules/cjs/helpers.js:22: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:689:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)at Module.load (internal/modules/cjs/loader.js:599:32)
                            2019-04-21 12:13:17.801  - warn: radar2.0 node-bluetooth not found!
                            

                            Das liest sich so als müsste ich mal das reinstall Skript vom ioBroker laufen lassen. Weil ja alles alte noch mit nodejs 8 gebaut wurde.
                            Ich warte aber mal ab bis du dich dazu äußerst.

                            @frankjoke
                            "npm rebuild" bzw. "sudo npm rebuild" hat nicht geholfen.
                            Aber ich habe einfach mal paar node module neu installiert und nun läuft radar2 mit nodejs 10.x

                            npm install node-pre-gyp
                            npm install node-bluetooth
                            npm install @abandonware/bluetooth-hci-socket
                            
                            D 1 Reply Last reply Reply Quote 0
                            • Diginix
                              Diginix last edited by Diginix

                              Nachdem ich heute ja den radar2 mit nodejs 10.x zum Laufen gebracht habe und das auch über 5 Stunden problemlos lief. Geht er jetzt ohne jegliches Zutun auf rot und selbst ein System Reboot hilft nicht mehr. Das ist doch echt zum ...
                              Bei allen Mehrwerten der Ver 2. All diese Probleme hatte ich mit dem alten Adapter in 12 Monaten nicht.

                              Im Log steht nun alle 30 Sekunden das:

                              2019-04-23 21:02:41.171  - info: host.BT3-PRO instance system.adapter.radar2.0 started with pid 9414
                              2019-04-23 21:02:43.373  - info: radar2.0 starting. Version 1.0.7 in /opt/iobroker/node_modules/iobroker.radar2, node: v10.15.2
                              2019-04-23 21:02:43.771  - info: radar2.0 radar2 initialization started...
                              2019-04-23 21:02:43.774  - info: radar2.0 radar2 starting main...
                              2019-04-23 21:02:43.787  - info: radar2.0 net-ping not available! Will try to use normal ping!
                              2019-04-23 21:02:43.938  - error: radar2.0 uncaught exception: bind EACCES 0.0.0.0:67
                              2019-04-23 21:02:43.939  - error: radar2.0 Error: bind EACCES 0.0.0.0:67
                                  at state.handle.lookup (dgram.js:242:18)
                                  at process._tickCallback (internal/process/next_tick.js:63:19)
                              2019-04-23 21:02:43.940  - info: radar2.0 Adapter disconnected and stopped with dostop(false) and callback(true)
                              2019-04-23 21:02:44.197  - info: radar2.0 found '@abandonware/noble'
                              2019-04-23 21:02:44.209  - info: radar2.0 found 'node-bluetooth'
                              2019-04-23 21:02:44.210  - info: radar2.0 radar2 set to flag items away if they are not seen for 10 minutes
                              2019-04-23 21:02:44.212  - info: radar2.0 Remove name end for host names: .fritz.box
                              2019-04-23 21:02:44.213  - info: radar2.0 arp-scan will use the following interfaces: [ 'enp1s0' ]
                              2019-04-23 21:02:44.213  - info: radar2.0 radar2 set to scan every 30 seconds and printers every 720 minutes.
                              2019-04-23 21:02:44.235  - warn: radar2.0 Adapter will exit in latest 1 sec with code false!
                              2019-04-23 21:02:44.263  - info: radar2.0 terminating
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]: { Error: bind EACCES 0.0.0.0:67
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]:     at state.handle.lookup (dgram.js:242:18)
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]:     at process._tickCallback (internal/process/next_tick.js:63:19)
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]:   errno: 'EACCES',
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]:   code: 'EACCES',
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]:   syscall: 'bind',
                              2019-04-23 21:02:44.283  - error: Caught by controller[0]:   address: '0.0.0.0',
                              2019-04-23 21:02:44.284  - error: Caught by controller[0]:   port: 67 }
                              2019-04-23 21:02:44.284  - error: host.BT3-PRO instance system.adapter.radar2.0 terminated with code 0 (OK)
                              2019-04-23 21:02:44.284  - info: host.BT3-PRO Restart adapter system.adapter.radar2.0 because enabled
                              

                              Nutze jetzt vorerst notgedrungen die alte radar Version und beobachte mal deren Stabilität.

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

                                Wurde nicht öfter davor gewarnt, auf Node 10.x upzudaten? 😇

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

                                  Die letzten Probleme mit radar2 hängen mMn nicht mehr damit zusammen.
                                  Es kommen ja keine Fehler im Log die damit in Zusammenhang stehen. Alle node module sind installiert und mit nodejs10 gebaut.

                                  Alle anderen Adapter inkl radar(1) laufen ja auch ohne Probleme. Auch ein ioB Teammitglied hat mir bestätigt dass mit dem aktuellen JS Controller kein nodejs 8.x benötigt wird.

                                  Mal abgesehen davon habe ich ja "nur" Ubuntu aktualisiert und nodejs 10 ungewollt zwangsweise bekommen und ein Downgrade klappt eben nicht mehr.
                                  Ich möchte aktuell ungern das gesamte System neu aufsetzen nur um nodejs 8 wieder zu erhalten.

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

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

                                    Warum willst du den Echo per radar erkennen? Das ist doch im alexa Adapter schon zu sehen ob er online ist oder nicht.

                                    Zum einen bin ich kein Freund davon eine Funktionalität auf mehrere Adapter (unnötiger weise) aufzuteilen. Das verursacht bei komplexeren Installationen später nur Ärger.
                                    Zum anderen kann ich ihn per radar direkt per IP ansprechen, Alexa sagt mir nur rudimentär "online".

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

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

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

                                      Ja, kurz eingetippt und sofort wurde radar2 wieder grün 👍

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        deta Most Active @Diginix last edited by

                                        Wollte nur mal bestätigen, das hat bei mir auch mit nodesjs 10.x funktioniert. BT läuft auch jetzt wieder

                                        cu Deta

                                        @frankjoke
                                        "npm rebuild" bzw. "sudo npm rebuild" hat nicht geholfen.
                                        Aber ich habe einfach mal paar node module neu installiert und nun läuft radar2 mit nodejs 10.x

                                        npm install node-pre-gyp
                                        npm install node-bluetooth
                                        npm install @abandonware/bluetooth-hci-socket
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Diginix
                                          Diginix last edited by

                                          Interessant dass es bei dir auch geholfen hat.
                                          Bei mir ja leider nur für 5-6 Stunden. K.a. warum und wieso.
                                          Mal sehen wann @frankjoke was dazu sagen kann.

                                          Bis dahin ist radar(1) wieder im Einsatz und das stabil mit nodejs 10 seit fast 24h.

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            deta Most Active @Diginix last edited by

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

                                            Interessant dass es bei dir auch geholfen hat.
                                            Bei mir ja leider nur für 5-6 Stunden. K.a. warum und wieso.
                                            Mal sehen wann @frankjoke was dazu sagen kann.

                                            Bis dahin ist radar(1) wieder im Einsatz und das stabil mit nodejs 10 seit fast 24h.

                                            Also bei mir läuft immer noch alles. Das sind jetzt über 12 Stunden.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            895
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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