NEWS
[Adapter] Neuer radar2-Adapter
-
@frankjoke
Ich hatte genau die selbe Frage auf GitHub gestellt und da hast du anders geantwortet
Nunja, es hat mit dem radar Adapter leider nicht funktioniert.. -
@ChrisXY
Das kannst vielleicht mit dem TR???-Adapter.Wenn auf der Kommandozeile (in dem v-lan) arp-scan geht dann sollte auch radar2 gehen, verwend ja auch nichts anderes.
-
@schreda
Ich weiß, habe nicht an arp-scan gedacht, aber es dann selbst ausprobiert und bei mir findet er einträge nur mit macs die arp-scan auch findet. -
Muss ich den arp-scan Installieren ? Will es nur zusätzlich nutzen neben der fritzbox und Ping als 3. erkennung DHCP .
Da ich Docker nutze will ich nichts im System groß machen -
@ChrisXY
Ich kenn mich bei Docker nicht so aus (verwende nur VM's auf meinem QNAP NAS da ich da auch andere Betriebssysteme verwenden kann).
Radar2 braucht arp-scan nur um mac-Adressen zu finden, wenn du das nicht brauchst kannst es weglassen.Aber ich würde so System-nahe Programme eher am Host system und nicht im container installieren, es sei denn der container kann nicht auf host-Programme zugreifen.
DHCP für IPv4 sind broadcasts auf Port 69 die der mittels dgram modul (von nodejs selbst) gelesen wird, dazu aber erweiterte Systemberechtigungen benötigt (wie auch arp-scan) welche mittels meinem Installationsscript für debian/Ubuntu erteilt werden. Ob diese dann auch in Containern gelten kann ich nicht sagen.
Bei den jetztigen linux-Versionen sind die Bewilligungen auch an das aktuelle Programm (z.B. node oder arp-scan) gebunden, wird dieses per apt(-get) upgedated muss sie neu erteilt werden (mein script neu aufrufen).
Das soll verhindern dass irgendwer das Programm austauscht und dann auf Befehle Zughreifen kann welche die Sicherheit gefährden können. -
Bei mir werden die G-Tags nur noch gefunden, wenn ich Noble aktiviere.
Das kann ich aber gar nicht gebrauchen, denn wenn ich den USB-Extender endlich mal installiert habe, schmiert Noble ab.
I2ping ist deaktiviert., hcitool lescan deaktiviert,
Ich habe auch gelesen, ein ! vor der MAC-Adresse zu setzen. hat auch nichts gebracht.Gruß,
Mathias -
@MathiasJ sagte in [Adapter] Neuer radar2-Adapter:
Bei Anwesenheit reagiert Radar2 ja sofort.
Damit soll verhindert werden, daß z.B. die Heizung hin- und herschaltet, wenn man doch anwesend ist und Radar2 einen Scan versemmelt hat.
bei Radar hat eine Abwesenheitskennung (bei mir zumindest) bis zu 10 Minuten gedauert. Da sind 2 Minuten ja richtig schnell. Bis die Anwesenheit erkannt wurde, mußte ich bis zu 30 Sekunden vor der Türe stehen, bis ich die Türe aufschließen konnte. da ist ja Anwesenheit sofort bei Radar2 ja richtig toll.Ich kann von dem alten Radar-Adapter sowas nicht vermelden. Die Geräte wurden beim nächsten Scan direkt als offline angezeigt. (so wie ich es gerne hätte) Da ist der jetzige Adapter bisher langsamer...
Das mit dem Verhindern, das die Heizung hin und her schaltet, wenn er mal falsch scannt, lässt sich ja ohne Probleme über ein Script abfangen.@frankjoke kann es sein, das Echo-Geräte irgendwie nicht sauber zu scannen sind? antworten die zu langsam oder gar nicht? Bei mir werden die fast immer als offline angezeigt, obwohl alle am laufen sind. Komischerweise aktualisieren sie sich oft, wenn ein anderes Gerät das Netzwerk betritt oder verlässt, aber nach kurzer Zeit sind sie wieder off..
P.S. Ich werd bei gelegenheit mal die 1.2 testen. Ob mir das mit der verkürzten Zeit schon reicht...
Was ich nicht so ganz verstehe: Du hattest geschrieben, das die Adapter-Logik mindestens 2 Scandurchgänge braucht... Im alten Adapter waren doch die Durchgänge einstellbar, ab wann ein Gerät als abwesend angezeigt wird. Und dort konnte man doch auch 0.. oder 1.. ich weiß es nicht mehr genau... einstellen und es lief auch... -
was vllt interessant wäre, ist jeder version einen anderen Namen zu geben.
Jetzt kann ich nicht mehr zurück von der 1.2.0 auf die 1.2.0
bei der letzten Version ging Radar mit hciscan, hier nur noch mit Noble. -
@smile sagte in [Adapter] Neuer radar2-Adapter:
@frankjoke Achso okay, sorry.
Habe iobroker auf einem Intel i5 mit Windows 10Pro, 16GB RAM. Node 8.15.1, npm 6.9.0Hier einmal der LOG wenn ich den Radar Adapter starte:
Danke für Deine Unterstützung.
Hi frankjoke, darf ich nochmal nachfragen ob dir der Log weitergeholfen hat?
Oder gibt es noch irgendetwas anderes was ich probieren kann um die Bluetooth Anwesenheit auf Windows zu realisieren? -
So, nun habe ich es auch geschafft und den Adapter kaputtgespielt.
Habe den Raspi komplett neu aufgesetzt, frisches OS usw.Habe auch die Schritte mit den zusätzlichen Installationen durchgeführt.
Aber:
host.raspi 2019-05-25 02:25:50.258 info Restart adapter system.adapter.radar2.1 because enabled host.raspi 2019-05-25 02:25:50.258 error instance system.adapter.radar2.1 terminated with code 0 (OK) Caught 2019-05-25 02:25:50.258 error by controller[0]: port: 67 } Caught 2019-05-25 02:25:50.258 error by controller[0]: address: '0.0.0.0', Caught 2019-05-25 02:25:50.258 error by controller[0]: syscall: 'bind', Caught 2019-05-25 02:25:50.257 error by controller[0]: code: 'EADDRINUSE', Caught 2019-05-25 02:25:50.257 error by controller[0]: errno: 'EADDRINUSE', Caught 2019-05-25 02:25:50.257 error by controller[0]: at process._tickCallback (internal/process/next_tick.js:181:9) Caught 2019-05-25 02:25:50.257 error by controller[0]: at _combinedTickCallback (internal/process/next_tick.js:142:11) Caught 2019-05-25 02:25:50.257 error by controller[0]: at _handle.lookup (dgram.js:266:18) Caught 2019-05-25 02:25:50.256 error by controller[0]: { Error: bind EADDRINUSE 0.0.0.0:67 radar2.1 2019-05-25 02:25:50.115 warn Adapter will exit in latest 1 sec with code false! radar2.1 2019-05-25 02:25:50.108 info Adapter disconnected and stopped with dostop(false) and callback(true) radar2.1 2019-05-25 02:25:50.106 error at process._tickCallback (internal/process/next_tick.js:181:9) radar2.1 2019-05-25 02:25:50.106 error at _combinedTickCallback (internal/process/next_tick.js:142:11) radar2.1 2019-05-25 02:25:50.106 error at _handle.lookup (dgram.js:266:18) radar2.1 2019-05-25 02:25:50.106 error Error: bind EADDRINUSE 0.0.0.0:67 radar2.1 2019-05-25 02:25:50.105 error uncaught exception: bind EADDRINUSE 0.0.0.0:67 radar2.1 2019-05-25 02:25:50.074 info radar2 set to scan every 20 seconds and printers every 720 minutes. radar2.1 2019-05-25 02:25:50.074 info arp-scan will use the following interfaces: [ 'eth0', 'wlan0' ] radar2.1 2019-05-25 02:25:50.072 info use known IP list: [ '192.168.1.xxx radar2.1 2019-05-25 02:25:50.070 info use known BT list: [] radar2.1 2019-05-25 02:25:50.068 info radar2 set to flag items away if they are not seen for 1 minutes radar2.1 2019-05-25 02:25:50.055 info net-ping not available! Will try to use normal ping! radar2.1 2019-05-25 02:25:50.022 info found and will use '@abandonware/noble' radar2.1 2019-05-25 02:25:49.678 info found and will use 'node-bluetooth scan' radar2.1 2019-05-25 02:25:49.652 info radar2 initialization started... radar2.1 2019-05-25 02:25:49.474 info starting. Version 1.2.0 in /opt/iobroker/node_modules/iobroker.radar2, node: v8.16.0 host.raspi 2019-05-25 02:25:47.835 info instance system.adapter.radar2.1 started with pid 13802
Das Spannende ist: eigentlich soll er gar keinen ARP Scan auf ETH0 durchführen, sondern bestenfalls auf wlan0, da der DNS Server nur auf eth0 lauscht. Dafür habe ich ihm im Parameterfeld für arp-scan folgende Parameter mitgegeben:
-vN -I wlan0 192.168.179.0/24
-> scheint ihn nicht sonderlich zu interessieren.Hat jemand einen Tipp? Gern würde ich den ARP Scan sonst komplett abschalten..
-
@ChristianF
Hast wirklich die Liste der Befehle hier im Install Spoiler ausgeführt?Der Rechner hat keine Rechte für das Bind auf DHCP, auch arp-scan braucht Rechte.
Und noch was, hast eventuell 'ne alte Instanz laufen? mach mal
sudo pkill -f io.radar2.0
-
Noble braucht spezielle BT-Treiber glaub ich für Windows und auch spezielle build-tools. Schau mal auf https://github.com/noble/noble#readme
Ich kann nur auf https://github.com/jasongin/noble-uwp verweisen, das hab ich selbst gerade gefunden und noch nicht ausprobiert.
Wenn das unter Windows funktioniert kann ich mal testen ob ich beide noble einbauen kann und je nach OS das eine oder andere verwende, wird aber dauern bis ich das testen kann, muss mir eine Windows vm bauen wo ich iobroker drauf gib und dann alles wie in obigen links beschrieben mal installiere...
-
@MathiasJ
Wie meinst du das, du hast jetzt nur 2 flags getrennt! Wie schaut dein log aus wenn du auf hciscan schaltest ? -
@frankjoke
so, jetzt bin ih schlauer.
BLE scan wird gar nicht durchgeführt.
Die BT-Adresse des Handies wird gefunden, die G-Tags nicht.LOG HERUNTERLADENLog-Größe: 0.00 MB close Zeit Meldung radar2.0 2019-05-26 08:35:09.018 info debug: ChangeState ack:true of Mathias-Handy._lastHere = 2019-05-26@08:35:08 radar2.0 2019-05-26 08:35:08.997 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.944 seconds and returned 26 hosts. radar2.0 2019-05-26 08:35:08.965 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.920 seconds and returned 26 hosts. radar2.0 2019-05-26 08:35:05.204 info debug: started #29 hcitool -i hci0 lescan --duplicates radar2.0 2019-05-26 08:35:05.166 info debug: started #28 hciconfig hci0 up radar2.0 2019-05-26 08:35:05.050 info debug: radar2 found uIP's: [] radar2.0 2019-05-26 08:35:05.048 info debug: started #27 hciconfig hci0 down radar2.0 2019-05-26 08:34:56.180 info debug: ChangeState ack:true of _uIPs = [ '192.168.1.1','192.168.1.10','192.168.1.100','192.168.1.101','192.168.1.102','192.168.1.11','192.168.1.12','192.168.1.13','192.168.1.14','192.168.1.199','192.1 radar2.0 2019-05-26 08:34:56.171 info debug: radar2 found uBT's: [ '94:87:e0:a2:16:1e' ] radar2.0 2019-05-26 08:34:56.170 info debug: and not here (Familie, Mathias, Mieter) radar2.0 2019-05-26 08:34:56.170 info debug: and who here (Mathias-Handy) radar2.0 2019-05-26 08:34:56.170 info debug: radar2 found here (Mathias-Handy) radar2.0 2019-05-26 08:34:48.995 info debug: ChangeState ack:true of Mathias-Handy._lastHere = 2019-05-26@08:34:48 radar2.0 2019-05-26 08:34:48.982 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.965 seconds and returned 26 hosts. radar2.0 2019-05-26 08:34:48.949 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.955 seconds and returned 26 hosts. radar2.0 2019-05-26 08:34:45.162 info debug: started #26 hcitool -i hci0 lescan --duplicates radar2.0 2019-05-26 08:34:45.127 info debug: started #25 hciconfig hci0 up radar2.0 2019-05-26 08:34:45.006 info debug: radar2 found uIP's: [] radar2.0 2019-05-26 08:34:45.005 info debug: started #24 hciconfig hci0 down radar2.0 2019-05-26 08:34:35.755 info debug: ChangeState ack:true of _uIPs = [ '192.168.1.1','192.168.1.10','192.168.1.100','192.168.1.101','192.168.1.102','192.168.1.11','192.168.1.12','192.168.1.13','192.168.1.14','192.168.1.2','192.168 radar2.0 2019-05-26 08:34:35.747 info debug: radar2 found uBT's: [ '94:87:e0:a2:16:1e' ] radar2.0 2019-05-26 08:34:35.747 info debug: and not here (Familie, Mathias, Mieter) radar2.0 2019-05-26 08:34:35.747 info debug: and who here (Mathias-Handy) radar2.0 2019-05-26 08:34:35.746 info debug: radar2 found here (Mathias-Handy) radar2.0 2019-05-26 08:34:28.900 info debug: ChangeState ack:true of Mathias-Handy._lastHere = 2019-05-26@08:34:28 radar2.0 2019-05-26 08:34:28.890 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.951 seconds and returned 24 hosts. radar2.0 2019-05-26 08:34:28.877 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.942 seconds and returned 24 hosts. radar2.0 2019-05-26 08:34:25.098 info debug: started #23 hcitool -i hci0 lescan --duplicates radar2.0 2019-05-26 08:34:25.057 info debug: started #22 hciconfig hci0 up radar2.0 2019-05-26 08:34:24.939 info debug: radar2 found uIP's: [] radar2.0 2019-05-26 08:34:24.938 info debug: started #21 hciconfig hci0 down radar2.0 2019-05-26 08:34:16.511 info debug: radar2 found uBT's: [ '94:87:e0:a2:16:1e' ] radar2.0 2019-05-26 08:34:16.511 info debug: and not here (Familie, Mathias, Mieter) radar2.0 2019-05-26 08:34:16.511 info debug: and who here (Mathias-Handy) radar2.0 2019-05-26 08:34:16.510 info debug: radar2 found here (Mathias-Handy) radar2.0 2019-05-26 08:34:08.903 info debug: ChangeState ack:true of Mathias-Handy._lastHere = 2019-05-26@08:34:08 radar2.0 2019-05-26 08:34:08.877 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.964 seconds and returned 26 hosts. radar2.0 2019-05-26 08:34:08.840 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.942 seconds and returned 26 hosts. radar2.0 2019-05-26 08:34:05.047 info debug: started #20 hcitool -i hci0 lescan --duplicates radar2.0 2019-05-26 08:34:05.011 info debug: started #19 hciconfig hci0 up radar2.0 2019-05-26 08:34:04.896 info debug: radar2 found uIP's: [] radar2.0 2019-05-26 08:34:04.895 info debug: started #18 hciconfig hci0 down radar2.0 2019-05-26 08:33:56.065 info debug: ChangeState ack:true of _uIPs = [ '192.168.1.1','192.168.1.10','192.168.1.100','192.168.1.101','192.168.1.102','192.168.1.11','192.168.1.12','192.168.1.13','192.168.1.14','192.168.1.199','192.1 radar2.0 2019-05-26 08:33:56.055 info debug: radar2 found uBT's: [ '94:87:e0:a2:16:1e' ] radar2.0 2019-05-26 08:33:56.055 info debug: and not here (Familie, Mathias, Mieter) radar2.0 2019-05-26 08:33:56.055 info debug: and who here (Mathias-Handy) radar2.0 2019-05-26 08:33:56.054 info debug: radar2 found here (Mathias-Handy) radar2.0 2019-05-26 08:33:48.799 info debug: ChangeState ack:true of Mathias-Handy._lastHere = 2019-05-26@08:33:48 radar2.0 2019-05-26 08:33:48.780 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.938 seconds and returned 26 hosts. radar2.0 2019-05-26 08:33:48.767 info debug: arp-scan -lgq --retry=4 --timeout=400 --interface=eth0 executed for 3.945 seconds and returned 26 hosts. radar2.0 2019-05-26 08:33:44.990 info debug: started #17 hcitool -i hci0 lescan --duplicates radar2.0 2019-05-26 08:33:44.953 info debug: started #16 hciconfig hci0 up radar2.0 2019-05-26 08:33:44.838 info debug: radar2 found uIP's: [] radar2.0 2019-05-26 08:33:44.836 info debug: started #15 hciconfig hci0 down
das Handy wird per arp-scan getrickert.
laut Log könnte ich es aber auch via Bluetooth einbinden.
ich vermute, BT geht, BLE nicht.
Gruß,
Mathias -
@frankjoke
Ich hatte die Befehle ausgeführt die auf der Git Seite standen. Habe nun nochmal alle von hier oben aus dem Spoiler nachgezogen, ändert aber nichts. Ein DHCP/DNS Server (in meinem Falle PiHole) und Radar auf einem Rechner scheinen sich nicht zu vertragen (beanspruchen halt beide Port 67) . Schade, damit muss ich dann zurück zum BLE AdapterDas Fehlerlog sieht übrigens immernoch genauso aus:
host.raspi 2019-05-26 19:07:18.667 info Restart adapter system.adapter.radar2.1 because enabled host.raspi 2019-05-26 19:07:18.667 error instance system.adapter.radar2.1 terminated with code 0 (OK) host.raspi 2019-05-26 19:07:18.667 error Caught by controller[0]: port: 67 } host.raspi 2019-05-26 19:07:18.667 error Caught by controller[0]: address: '0.0.0.0', host.raspi 2019-05-26 19:07:18.667 error Caught by controller[0]: syscall: 'bind', host.raspi 2019-05-26 19:07:18.667 error Caught by controller[0]: code: 'EADDRINUSE', host.raspi 2019-05-26 19:07:18.667 error Caught by controller[0]: errno: 'EADDRINUSE', host.raspi 2019-05-26 19:07:18.666 error Caught by controller[0]: at process._tickCallback (internal/process/next_tick.js:181:9) host.raspi 2019-05-26 19:07:18.666 error Caught by controller[0]: at _combinedTickCallback (internal/process/next_tick.js:142:11) host.raspi 2019-05-26 19:07:18.666 error Caught by controller[0]: at _handle.lookup (dgram.js:266:18) host.raspi 2019-05-26 19:07:18.666 error Caught by controller[0]: { Error: bind EADDRINUSE 0.0.0.0:67 host.raspi 2019-05-26 19:07:15.999 info instance system.adapter.radar2.1 started with pid 10994 host.raspi 2019-05-26 19:07:15.986 info "system.adapter.radar2.1" enabled
Gibt es vielleicht irgendeinen Weg, wie man dem Adapter sagen kann, dass er ARP, DHCP usw. weglassen soll, sondern sich nur auf BT konzentrieren soll?
-
@ChristianF
Ja, PiHole ist ein Problem das wir noch nicht lösen konnten, Bin noch am überlegen ob ich die DNS-Funktion abschaltbar mache damit der Rest verwendet werden kann... -
@frankjoke Okay, danke für den Hinweis. Ich bin ein kleines bisschen IT bewandert, aber so intensiv leider nicht.
Es wäre mega klasse wenn der Adapter unter Win10 funktional wäre.
Wenn ich auf irgendeine Weise dazu mit Testbetrieb bei mir beitragen kann, dann helfe ich gern.
Ich habe mir noch einen separaten Bluetooth Dongle besorgt, falls das hilfreich ist. -
@frankjoke das wäre extrem klasse. Viel mehr als eine zusätzliche If Schleife mit zugehöriger Checkbox auf der Config Seite dürfte das eigentlich nicht sein, oder? Das würde mindestens den Pihole Usern entgegen kommen
-
Ich habe IObroker bei pi hole außen vor gelassen. Das heißt, ich habe bei jedem Gerät als DNS die IP von pi hole eingegeben.
Bei der Raspberrymatic und IObroker eben nicht.
Funktioniert einwandfrei.
@frankjoke
Hast Du schon etwas mit meinem Log anfangen können?
Gruß,
Mathias -
Also nach 2x Iobroker Kaputt nach dem ich Radar2 testen wote ( Alles hat nurnoch gehangen trotz Deinstall .. )
Habe ich mich ein 3. mal getraut da iobroker nun tabie läuft seit Tagen )Install Log:
$ ./iobroker add radar2 --host iobroker NPM version: 6.4.1 npm install iobroker.radar2@1.0.3 --production --save --prefix "/opt/iobroker" (System call) npm notice created a lockfile as package-lock.json. You should commit this file. prebuild-install info begin Prebuild-install version 5.3.0 prebuild-install info looking for cached prebuild @ /home/iobroker/.npm/_prebuilds/97a8e8-usb-v1.6.0-node-v57-linux-x64.tar.gz prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.0/usb-v1.6.0-node-v57-linux-x64.tar.gz prebuild-install http 200 https://github.com/tessel/node-usb/releases/download/v1.6.0/usb-v1.6.0-node-v57-linux-x64.tar.gz prebuild-install info downloading to @ /home/iobroker/.npm/_prebuilds/97a8e8-usb-v1.6.0-node-v57-linux-x64.tar.gz.10076-1f8b97d431049.tmp prebuild-install info renaming to @ /home/iobroker/.npm/_prebuilds/97a8e8-usb-v1.6.0-node-v57-linux-x64.tar.gzprebuild-install info unpacking @ /home/iobroker/.npm/_prebuilds/97a8e8-usb-v1.6.0-node-v57-linux-x64.tar.gz prebuild-install info unpack resolved to /opt/iobroker/node_modules/usb/build/Release/usb_bindings.node prebuild-install info unpack required /opt/iobroker/node_modules/usb/build/Release/usb_bindings.node successfully prebuild-install info install Successfully installed prebuilt binary! node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/0.5.3-1/binding-0.5.3-1-node-v57-linux-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for @abandonware/bluetooth-hci-socket@0.5.3-1 and node@8.16.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp) ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:../src/BluetoothHciSocket.cpp:252: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] Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../../nan/nan.h:1045:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:../src/BluetoothHciSocket.cpp:283: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] Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../../nan/nan.h:1045:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/linux/DeviceINQ.cc:35:37: fatal error: bluetooth/bluetooth.h: Datei oder Verzeichnis nicht gefunden #include <bluetooth/bluetooth.h> ^ compilation terminated. make: *** [Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.59+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /opt/iobroker/node_modules/node-bluetooth gyp ERR! node -v v8.16.0gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok 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"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-bluetooth@1.2.5 (node_modules/node-bluetooth): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-bluetooth@1.2.5 install: `node-gyp configure build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 host.iobroker install adapter radar2 npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.radar2" npm notice created a lockfile as package-lock.json. You should commit this file. prebuild-install info begin Prebuild-install version 5.3.0 prebuild-install info looking for cached prebuild @ /home/iobroker/.npm/_prebuilds/97a8e8-usb-v1.6.0-node-v57-linux-x64.tar.gz prebuild-install info found cached prebuild prebuild-install info unpacking @ /home/iobroker/.npm/_prebuilds/97a8e8-usb-v1.6.0-node-v57-linux-x64.tar.gz prebuild-install info unpack resolved to /opt/iobroker/node_modules/iobroker.radar2/node_modules/usb/build/Release/usb_bindings.node prebuild-install info unpack required /opt/iobroker/node_modules/iobroker.radar2/node_modules/usb/build/Release/usb_bindings.node successfullyprebuild-install info install Successfully installed prebuilt binary! node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/0.5.3-1/binding-0.5.3-1-node-v57-linux-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for @abandonware/bluetooth-hci-socket@0.5.3-1 and node@8.16.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp) ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:../src/BluetoothHciSocket.cpp:252: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] Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../../nan/nan.h:1045:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: ../src/BluetoothHciSocket.cpp:283: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] Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../../nan/nan.h:1045:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/linux/DeviceINQ.cc:35:37: fatal error: bluetooth/bluetooth.h: Datei oder Verzeichnis nicht gefunden #include <bluetooth/bluetooth.h> ^ compilation terminated. make: *** [Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.59+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.radar2/node_modules/node-bluetooth gyp ERR! node -v v8.16.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-bluetooth@1.2.5 (node_modules/node-bluetooth):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-bluetooth@1.2.5 install: `node-gyp configure build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 got /opt/iobroker/node_modules/iobroker.radar2/admin upload [13] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/words.js words.js application/javascript upload [12] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/radar2.png radar2.png image/png upload [11] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/index_m.html index_m.html text/html upload [10] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/index.html index.html text/html upload [9] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json upload [8] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/ru/translations.json i18n/ru/translations.json application/json upload [7] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/pt/translations.json i18n/pt/translations.json application/json upload [6] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/pl/translations.json i18n/pl/translations.json application/json upload [5] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/nl/translations.json i18n/nl/translations.json application/json upload [4] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/it/translations.json i18n/it/translations.json application/json upload [3] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/fr/translations.json i18n/fr/translations.json application/json upload [2] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/es/translations.json i18n/es/translations.json application/json upload [1] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/en/translations.json i18n/en/translations.json application/json upload [0] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/i18n/de/translations.json i18n/de/translations.json application/json host.iobroker object system.adapter.radar2 created host.iobroker create instance radar2 host.iobroker object system.adapter.radar2.0.outputCount created host.iobroker object system.adapter.radar2.0.inputCount created host.iobroker object system.adapter.radar2.0.uptime created host.iobroker object system.adapter.radar2.0.memRss created host.iobroker object system.adapter.radar2.0.memHeapTotal created host.iobroker object system.adapter.radar2.0.memHeapUsed created host.iobroker object system.adapter.radar2.0.cputime created host.iobroker object system.adapter.radar2.0.cpu created host.iobroker object system.adapter.radar2.0.connected created host.iobroker object system.adapter.radar2.0.alive created host.iobroker object system.adapter.radar2.0 created process exited with code 0
Und im log fehler und Adapter bleibt rot:
host.iobroker 2019-05-31 08:27:50.887 info Restart adapter system.adapter.radar2.0 because enabled host.iobroker 2019-05-31 08:27:50.887 error instance system.adapter.radar2.0 terminated with code null () host.iobroker 2019-05-31 08:27:50.887 warn instance system.adapter.radar2.0 terminated due to SIGABRT host.iobroker 2019-05-31 08:27:50.886 error Caught by controller[0]: .0: ../deps/uv/src/unix/poll.c:123: uv_poll_start: Assertion `!(((handle)->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)) != 0)' failed. radar2.0 2019-05-31 08:27:48.995 info starting. Version 1.0.3 in /opt/iobroker/node_modules/iobroker.radar2, node: v8.16.0 host.iobroker 2019-05-31 08:27:48.323 info instance system.adapter.radar2.0 started with pid 12970 host.iobroker 2019-05-31 08:27:18.187 info Restart adapter system.adapter.radar2.0 because enabled host.iobroker 2019-05-31 08:27:18.187 error instance system.adapter.radar2.0 terminated with code null () host.iobroker 2019-05-31 08:27:18.187 warn instance system.adapter.radar2.0 terminated due to SIGABRT host.iobroker 2019-05-31 08:27:18.187 error Caught by controller[0]: .0: ../deps/uv/src/unix/poll.c:123: uv_poll_start: Assertion `!(((handle)->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)) != 0)' failed. radar2.0 2019-05-31 08:27:16.320 info starting. Version 1.0.3 in /opt/iobroker/node_modules/iobroker.radar2, node: v8.16.0 host.iobroker 2019-05-31 08:27:15.611 info instance system.adapter.radar2.0 started with pid 12738 host.iobroker 2019-05-31 08:26:45.595 info Restart adapter system.adapter.radar2.0 because enabled host.iobroker 2019-05-31 08:26:45.595 error instance system.adapter.radar2.0 terminated with code null () host.iobroker 2019-05-31 08:26:45.595 warn instance system.adapter.radar2.0 terminated due to SIGSEGV radar2.0 2019-05-31 08:26:43.663 info starting. Version 1.0.3 in /opt/iobroker/node_modules/iobroker.radar2, node: v8.16.0 host.iobroker 2019-05-31 08:26:42.935 info instance system.adapter.radar2.0 started with pid 12509 host.iobroker 2019-05-31 08:26:12.926 info Restart adapter system.adapter.radar2.0 because enabled host.iobroker 2019-05-31 08:26:12.926 error instance system.adapter.radar2.0 terminated with code null () host.iobroker 2019-05-31 08:26:12.926 warn instance system.adapter.radar2.0 terminated due to SIGSEGV