NEWS
Radar Adapter
-
Hallo zusammen,
muss euch nochmal nerven. Verbrate hier gerade Stunden um Stunden um den Radar Adapter ans Laufen zu bekommen und muss jetzt einfach mal fragen.
Folgende Fehlermeldungen bekomme ich bei der Installation:
$ ./iobroker add radar --host phoscon NPM version: 6.5.0 npm install iobroker.radar --production --save --prefix "/opt/iobroker" (System call) node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.5.0/usb_bindings-v1.5.0-node-v64-linux-arm.tar.gz node-pre-gyp WARN Pre-built binaries not found for usb@1.5.0 and node@10.14.2 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) ../src/node_usb.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetDebugLevel(Nan::NAN_METHOD_ARGS_TYPE)’:../src/node_usb.cc:99:73: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] if (info.Length() != 1 || !info[0]->IsUint32() || info[0]->Uint32Value() > 4) { ^ In file included from /root/.node-gyp/10.14.2/include/node/v8.h:26:0, from ../src/node_usb.h:12, from ../src/node_usb.cc:1: /root/.node-gyp/10.14.2/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /root/.node-gyp/10.14.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/node_usb.cc:103:53: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] libusb_set_debug(usb_context, info[0]->Uint32Value()); ^ In file included from /root/.node-gyp/10.14.2/include/node/v8.h:26:0, from ../src/node_usb.h:12, from ../src/node_usb.cc:1: /root/.node-gyp/10.14.2/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /root/.node-gyp/10.14.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/node_usb.cc: In function ‘void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event="">)’:../src/node_usb.cc:151:58: warning: ‘v8::Local <v8::value>Nan::MakeCallback(v8::Local<v8::object>, const char*, int, v8::Local<v8::value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../../nan/nan.h:1000:46: note: declared here NAN_DEPRECATED inline v8::Local <v8::value>MakeCallback( ^~~~~~~~~~~~ ../src/node_usb.cc: In function ‘v8::Local <v8::value>libusbException(int)’:../src/node_usb.cc:301:14: warning: ‘v8::Local <v8::object>v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] e->ToObject()->Set(Nan::New<string>("errno").ToLocalChecked(), Nan::New<integer>(errorno)); ^ In file included from ../src/node_usb.h:12:0, from ../src/node_usb.cc:1: /root/.node-gyp/10.14.2/include/node/v8.h:10046:15: note: declared here Local <object>Value::ToObject() const { ^~~~~ ../src/device.cc: In static member function ‘static void Req::default_after(uv_work_t*)’:../src/device.cc:237:64: warning: ‘v8::Local <v8::value>Nan::MakeCallback(v8::Local<v8::object>, v8::Local<v8::function>, int, v8::Local<v8::value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/device.cc:1: ../../nan/nan.h:958:46: note: declared here NAN_DEPRECATED inline v8::Local <v8::value>MakeCallback( ^~~~~~~~~~~~ ../src/transfer.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Transfer_Submit(Nan::NAN_METHOD_ARGS_TYPE)’:../src/transfer.cc:58:47: warning: ‘v8::Local <v8::object>v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local <object>buffer_obj = info[0]->ToObject(); ^ In file included from ../src/node_usb.h:12:0, from ../src/transfer.cc:1: /root/.node-gyp/10.14.2/include/node/v8.h:10046:15: note: declared here Local <object>Value::ToObject() const { ^~~~~ ../src/transfer.cc: In function ‘void handleCompletion(Transfer*)’:../src/transfer.cc:126:72: warning: ‘v8::Local <v8::value>Nan::MakeCallback(v8::Local<v8::object>, v8::Local<v8::function>, int, v8::Local<v8::value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../../nan/nan.h:958:46: note: declared here NAN_DEPRECATED inline v8::Local <v8::value>MakeCallback( ^~~~~~~~~~~~ ../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] 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:979:46: note: declared here NAN_DEPRECATED 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])’ Local <value>error = errorConstructor->NewInstance(1, constructorArgs); ^ In file included from /root/.node-gyp/10.14.2/include/node/node.h:63:0, from /root/.node-gyp/10.14.2/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /root/.node-gyp/10.14.2/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 V8_WARN_UNUSED_RESULT MaybeLocal <object>NewInstance( ^~~~~~~~~~~ /root/.node-gyp/10.14.2/include/node/v8.h:3993:44: note: candidate expects 3 arguments, 2 provided /root/.node-gyp/10.14.2/include/node/v8.h:3996:44: note: candidate: v8::MaybeLocal <v8::object>v8::Function::NewInstance(v8::Local<v8::context>) const V8_WARN_UNUSED_RESULT MaybeLocal <object>NewInstance( ^~~~~~~~~~~ /root/.node-gyp/10.14.2/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] 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:979:46: note: declared here NAN_DEPRECATED 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.14.2/include/node/v8.h:26:0, from /root/.node-gyp/10.14.2/include/node/node.h:63, from /root/.node-gyp/10.14.2/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /root/.node-gyp/10.14.2/include/node/v8.h:2476:46: note: declared here V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const); ^ /root/.node-gyp/10.14.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ 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.14.2/include/node/v8.h:26:0, from /root/.node-gyp/10.14.2/include/node/node.h:63, from /root/.node-gyp/10.14.2/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /root/.node-gyp/10.14.2/include/node/v8.h:2476:46: note: declared here V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const); ^ /root/.node-gyp/10.14.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp 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:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.14.79-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket gyp ERR! node -v v10.14.2 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself. 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":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 host.phoscon install adapter radar got /opt/iobroker/node_modules/iobroker.radar/admin upload [1] radar.admin /opt/iobroker/node_modules/iobroker.radar/admin/radar.png radar.png image/png upload [0] radar.admin /opt/iobroker/node_modules/iobroker.radar/admin/index.html index.html text/html host.phoscon object system.adapter.radar created host.phoscon create instance radar host.phoscon object system.adapter.radar.0.outputCount created host.phoscon object system.adapter.radar.0.inputCount created host.phoscon object system.adapter.radar.0.uptime created host.phoscon object system.adapter.radar.0.memRss created host.phoscon object system.adapter.radar.0.memHeapTotal created host.phoscon object system.adapter.radar.0.memHeapUsed created host.phoscon object system.adapter.radar.0.connected created host.phoscon object system.adapter.radar.0.alive created host.phoscon object system.adapter.radar.0 created process exited with code 0 Hier scheint zum einen erstmal in der Routine die falsche Downloadadresse für Node-pre-gyp angegeben zu sein. Danach läuft es aber halbwegs durch, bis unten noch einmal einige Fehlermeldungen zu node-gyp kommen. Der Adapter ist dennoch installiert. Wenn ich allerdings ein Gerät angebe, kommt im LOG des IOBrokers die Fehlermeldung wie im Anhang zu sehen. Er scheint erstmal Probleme zu haben, dass er noble nicht findet, bzw. "Bluetooth-hci-socket" Installiere ich dieses Bluetooth-hci-socket manuell übersudo npm install bluetooth-hci-socket
hagelt es Fehlermeldungen (auch wieder wegen fehlendem Download und node-gyp Danke schonmal für eure Hilfe. Bin leider nicht wirklich fit in Linux. Bitte sprecht also langsam ;-) [10504_radar.jpg](/assets/uploads/files/10504_radar.jpg)</v8::value></object></v8::value></v8::string></v8::object></v8::value></object></v8::context></v8::object></object></v8::value></v8::context></v8::object></value></v8::value></v8::value></object></v8::value></v8::string></v8::object></v8::value></v8::value></v8::value></v8::function></v8::object></v8::value></object></object></v8::object></v8::value></v8::value></v8::function></v8::object></v8::value></object></integer></string></v8::object></v8::value></v8::value></v8::value></v8::object></v8::value></libusb_device*,> -
Hey,
Die Lösung ist einfach: noble ist eine optionale Library für Bluetooth Kram und diese ist noch nicht kompatibel zu nodejs 10 was du nutzt.
Die Fehlermeldung sagt genau das.
Wenn du also Bluetooth nicht brauchst dann alles ok und Meldung ignorieren.
Wenn du Bluetooth brauchst dann warten oder nodejs downgraden.
Gesendet vom Handy …
-
Ah, ok danke erstmal . Will Bluetooth schon nutzen und wenn es keine andere Möglichkeit gibt als das Radar Plugin, lese ich mich mal ein wie man downgraded. Hab ich da denn vermutlich andere „side effects“? Also sämtliche Adapter neu installieren oder so?
Wüsste gerade auch nicht wie ich den Adapter ohne downgraden nutzen sollte. Er schließt sich ja immer aufgrund der Fehlermeldung im Anhang.
Gesendet von iPhone mit Tapatalk