NEWS
[Aufruf] hm-rega Erweiterung
-
Hi AlGu,
bei der suche nach dem Problem mit der Konfigurationsmaske und dem nicht Aktivierten Speichern und schließen Button, solltest du unbedingt vor jedem Test und nach jeder Änderung am code den Browser Cache leeren. Außerdem muss die index.html jedesmal neu hoch geladen werden, weil die nicht aus dem Adapter Verzeichnis aufgerufen wird. Und zu guter letzt startest du den js-controller jedes mal neu, dann wird auf jeden Fall die aktuelle Version verwendet.
Es hat mich Tage gekostet bis ich diesen Fehler behoben hatte, bis ich nach oben beschriebener Methode vorgegangen bin.
Gesendet von Unterwegs
-
@Eric: Welche npm Version? 2 oder 3? Bei 3 ist es so … üblicherweise hat node 4 noch npm2 und node 6 dann die 3er ... aber kann man auch einzeln upgraden ...
-
Guten Morgen,
neuer Tag neuer Versuch:
1. Ich habe den Adapter gerade so umgebaut, dass die ganzen String-Methoden aus dem "dutycycle.fn" in den Adapter gewandert sind und somit keine Abhängigkeit zu den neu implementierten Methoden (Replace, LTrim, RTrim und Mod) der neuen ReGaHss mehr besteht. Dadurch sollte der Adapter nun auch mit älteren CCU Versionen funktionieren.
2. Ich habe danach den Adapter dann auf meinem PROD-System über die URL aktualisiert und im Log kommen diverse Infos und Warnings:
! ```
2017-09-06 08:04:00.111 - [32minfo[39m: iobroker url "https://github.com/AlGu1/ioBroker.hm-rega" 2017-09-06 08:04:01.423 - [32minfo[39m: iobroker install https://github.com/AlGu1/ioBroker.hm-rega/tarball/master 2017-09-06 08:04:02.092 - [32minfo[39m: iobroker npm install https://github.com/AlGu1/ioBroker.hm-rega/tarball/master --production --prefix "/opt/iobroker" (System call) 2017-09-06 08:06:13.690 - [32minfo[39m: iobroker In file included from ../node_modules/nan/nan.h:82:0, from ../src/bufferutil.cc:16: ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle<v8::integer>) [with T = v8::Int32; v8::Handle <v8::integer>= v8::Local<v8::integer>]’: ../node_modules/nan/nan_new.h:34:64: warning: ‘v8::Local <v8::int32>v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations] To<v8::int32>(v8::Handle <v8::integer>i) { return i->ToInt32(); } ^ ! 2017-09-06 08:06:13.692 - [32minfo[39m: iobroker ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle<v8::integer>) [with T = v8::Uint32; v8::Handle <v8::integer>= v8::Local<v8::integer>]’:../node_modules/nan/nan_new.h:39:65: warning: ‘v8::Local <v8::uint32>v8::Value::ToUint32() const’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:8196): Use maybe version [-Wdeprecated-declarations] To<v8::uint32>(v8::Handle <v8::integer>i) { return i->ToUint32(); } ^ ! 2017-09-06 08:06:13.707 - [32minfo[39m: iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/bufferutil.cc:16: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::booleanobject>::return_t NanIntern::Factory<v8::booleanobject>::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local <v8::value>v8::BooleanObject::New(bool)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:4008): Pass an isolate [-Wdeprecated-declarations] return v8::BooleanObject::New(value).As<v8::booleanobject>(); ^ ! 2017-09-06 08:06:13.724 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::script>::return_t NanIntern::Factory<v8::script>::New(v8::Local<v8::string>)’:../node_modules/nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:13.727 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::script>::return_t NanIntern::Factory<v8::script>::New(v8::Local<v8::string>, const v8::ScriptOrigin&)’:../node_modules/nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:13.732 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::string>::return_t NanIntern::Factory<v8::string>::New(const uint8_t*, int)’:../node_modules/nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Local <v8::string>v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:2332): Use maybe version [-Wdeprecated-declarations] v8::String::kNormalString, length); ^ ! 2017-09-06 08:06:13.734 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::string>::return_t NanIntern::Factory<v8::string>::New(v8::String::ExternalStringResource*)’:../node_modules/nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Local <v8::string>v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:2371): Use maybe version [-Wdeprecated-declarations] return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); ^ ! 2017-09-06 08:06:13.739 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::unboundscript>::return_t NanIntern::Factory<v8::unboundscript>::New(v8::Local<v8::string>)’:../node_modules/nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Local <v8::unboundscript>v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1333): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:13.741 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::unboundscript>::return_t NanIntern::Factory<v8::unboundscript>::New(v8::Local<v8::string>, const v8::ScriptOrigin&)’:../node_modules/nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Local <v8::unboundscript>v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1333): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:13.776 - [32minfo[39m: iobroker In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template <class t="">v8::Local _NanEnsureLocal(v8::Local)’ NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ! 2017-09-06 08:06:13.777 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:256:25: note: ‘template <class t="">v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ^ ! 2017-09-06 08:06:13.779 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘bool NanIdleNotification(int)’:../node_modules/nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:6114): use IdleNotificationDeadline() [-Wdeprecated-declarations] return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms); ^ ! 2017-09-06 08:06:13.792 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: At global scope:../node_modules/nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback ^ ../node_modules/nan/nan.h:473:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCEpilogueCallback callback ^ ../node_modules/nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’ , v8::GCType gc_type_filter = v8::kGCTypeAll) { ^ ../node_modules/nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback) { ^ ../node_modules/nan/nan.h:479:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCEpilogueCallback callback) { ^ ! 2017-09-06 08:06:13.794 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void v8::Isolate::GCPrologueCallback callback ^ ../node_modules/nan/nan.h:484:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCPrologueCallback callback ^ ../node_modules/nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’ , v8::GCType gc_type_filter = v8::kGCTypeAll) { ^ ! 2017-09-06 08:06:13.796 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void v8::Isolate::GCPrologueCallback callback) { ^ ../node_modules/nan/nan.h:490:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCPrologueCallback callback) { ^ ! 2017-09-06 08:06:13.818 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ! 2017-09-06 08:06:13.820 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ! 2017-09-06 08:06:13.822 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ! 2017-09-06 08:06:13.823 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(const char*, uint32_t)’:../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ In file included from ../src/bufferutil.cc:10:0: /root/.node-gyp/6.10.3/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocal <v8::object>node::Buffer::New(v8::Isolate*, char*, size_t)’ NODE_EXTERN v8::MaybeLocal <v8::object>New(v8::Isolate* isolate, ^ ! 2017-09-06 08:06:13.826 - [32minfo[39m: iobroker In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h:672:67: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), size)’ from ‘v8::MaybeLocal<v8::object>’ to ‘v8::Local<v8::object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::object>’ to ‘v8::Local<v8::object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ! 2017-09-06 08:06:13.827 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanBufferUse(char*, uint32_t)’:../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ ! 2017-09-06 08:06:13.837 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::script>NanCompileScript(v8::Local<v8::string>, const v8::ScriptOrigin&)’:../node_modules/nan/nan.h:710:74: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ ! 2017-09-06 08:06:13.839 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::script>NanCompileScript(v8::Local<v8::string>)’:../node_modules/nan/nan.h:717:74: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ ! 2017-09-06 08:06:13.907 - [32minfo[39m: iobroker ../src/bufferutil.cc: In static member function ‘static void BufferUtil::Initialize(v8::Handle<v8::object>)’:../src/bufferutil.cc:30:52: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::functiontemplate>&, const char [7], void (&)(const v8::FunctionCallbackInfo<v8::value>&))’ is ambiguous NODE_SET_METHOD(t, "unmask", BufferUtil::Unmask); ^ ! 2017-09-06 08:06:13.908 - [32minfo[39m: iobroker ../src/bufferutil.cc:30:52: note: candidates are: 2017-09-06 08:06:13.910 - [32minfo[39m: iobroker In file included from ../src/bufferutil.cc:8:0:/root/.node-gyp/6.10.3/include/node/node.h:244:13: note: void node::NODE_SET_METHOD(v8::Local<v8::template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::template>recv, ^ /root/.node-gyp/6.10.3/include/node/node.h:257:13: note: void node::NODE_SET_METHOD(v8::Local<v8::object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::object>recv, ^ ! 2017-09-06 08:06:13.911 - [32minfo[39m: iobroker ../src/bufferutil.cc:31:48: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::functiontemplate>&, const char [5], void (&)(const v8::FunctionCallbackInfo<v8::value>&))’ is ambiguous NODE_SET_METHOD(t, "mask", BufferUtil::Mask); ^ ../src/bufferutil.cc:31:48: note: candidates are: ! 2017-09-06 08:06:13.913 - [32minfo[39m: iobroker In file included from ../src/bufferutil.cc:8:0:/root/.node-gyp/6.10.3/include/node/node.h:244:13: note: void node::NODE_SET_METHOD(v8::Local<v8::template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::template>recv, ^ /root/.node-gyp/6.10.3/include/node/node.h:257:13: note: void node::NODE_SET_METHOD(v8::Local<v8::object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::object>recv, ^ ! 2017-09-06 08:06:13.915 - [32minfo[39m: iobroker ../src/bufferutil.cc:32:50: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::functiontemplate>&, const char [6], void (&)(const v8::FunctionCallbackInfo<v8::value>&))’ is ambiguous NODE_SET_METHOD(t, "merge", BufferUtil::Merge); ^ ! 2017-09-06 08:06:13.916 - [32minfo[39m: iobroker ../src/bufferutil.cc:32:50: note: candidates are: 2017-09-06 08:06:13.917 - [32minfo[39m: iobroker In file included from ../src/bufferutil.cc:8:0:/root/.node-gyp/6.10.3/include/node/node.h:244:13: note: void node::NODE_SET_METHOD(v8::Local<v8::template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::template>recv, ^ /root/.node-gyp/6.10.3/include/node/node.h:257:13: note: void node::NODE_SET_METHOD(v8::Local<v8::object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::object>recv, ^ ! 2017-09-06 08:06:14.081 - [32minfo[39m: iobroker make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1 2017-09-06 08:06:14.091 - [32minfo[39m: iobroker gyp ERR! 2017-09-06 08:06:14.092 - [32minfo[39m: iobroker build error 2017-09-06 08:06:14.105 - [32minfo[39m: iobroker gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp 2017-09-06 08:06:14.110 - [32minfo[39m: iobroker ERR! stack at ChildProcess.emit (events.js:191:7)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 4.9.24-v7+ gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/bufferutil gyp ERR! node -v v6.10.3 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok ! 2017-09-06 08:06:24.576 - [32minfo[39m: iobroker node-pre-gyp 2017-09-06 08:06:24.579 - [32minfo[39m: iobroker ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v48-linux-arm.tar.gz node-pre-gyp 2017-09-06 08:06:24.582 - [32minfo[39m: iobroker ERR! Pre-built binaries not found for usb@1.2.0 and node@6.10.3 (node-v48 ABI) (falling back to source compile with node-gyp) 2017-09-06 08:06:54.953 - [32minfo[39m: iobroker ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: Datei oder Verzeichnis nicht gefunden #include <libudev.h> ^ ! 2017-09-06 08:06:54.954 - [32minfo[39m: iobroker compilation terminated. 2017-09-06 08:06:55.635 - [32minfo[39m: iobroker make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1 2017-09-06 08:06:55.649 - [32minfo[39m: iobroker gyp 2017-09-06 08:06:55.655 - [32minfo[39m: iobroker 2017-09-06 08:06:55.656 - [32minfo[39m: iobroker ERR! build error 2017-09-06 08:06:55.657 - [32minfo[39m: iobroker 2017-09-06 08:06:55.668 - [32minfo[39m: iobroker gyp 2017-09-06 08:06:55.669 - [32minfo[39m: iobroker ERR! stack Error:
makefailed with exit code: 2gyp 2017-09-06 08:06:55.671 - [32minfo[39m: iobroker ERR! stack at ChildProcess.onExit (/opt/iobroker/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23) 2017-09-06 08:06:55.674 - [32minfo[39m: iobroker gyp 2017-09-06 08:06:55.676 - [32minfo[39m: iobroker ERR! stack at emitTwo (events.js:106:13)gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) ! 2017-09-06 08:06:55.677 - [32minfo[39m: iobroker gyp 2017-09-06 08:06:55.679 - [32minfo[39m: iobroker ERR! System Linux 4.9.24-v7+gyp 2017-09-06 08:06:55.681 - [32minfo[39m: iobroker ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/opt/iobroker/node_modules/usb/src/binding"gyp 2017-09-06 08:06:55.683 - [32minfo[39m: iobroker ERR! cwd /opt/iobroker/node_modules/usbgyp ERR! node -v v6.10.3 ! 2017-09-06 08:06:55.685 - [32minfo[39m: iobroker gyp ERR! node-gyp -v v3.6.0gyp 2017-09-06 08:06:55.690 - [32minfo[39m: iobroker ERR! not ok 2017-09-06 08:06:55.708 - [32minfo[39m: iobroker node-pre-gyp ERR! build error 2017-09-06 08:06:55.716 - [32minfo[39m: iobroker node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/opt/iobroker/node_modules/usb/src/binding' (1)node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) ! 2017-09-06 08:06:55.718 - [32minfo[39m: iobroker node-pre-gyp ERR! System Linux 4.9.24-v7+node-pre-gyp ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd 2017-09-06 08:06:55.720 - [32minfo[39m: iobroker /opt/iobroker/node_modules/usbnode-pre-gyp ERR! node -v v6.10.3 node-pre-gyp ERR! node-pre-gyp -v v0.6.30 node-pre-gyp ERR! not ok ! 2017-09-06 08:06:59.531 - [32minfo[39m: iobroker In file included from ../node_modules/nan/nan.h:82:0, from ../src/validation.cc:15: ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle<v8::integer>) [with T = v8::Int32; v8::Handle <v8::integer>= v8::Local<v8::integer>]’: ../node_modules/nan/nan_new.h:34:64: warning: ‘v8::Local <v8::int32>v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations] To<v8::int32>(v8::Handle <v8::integer>i) { return i->ToInt32(); } ^ ! 2017-09-06 08:06:59.535 - [32minfo[39m: iobroker ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle<v8::integer>) [with T = v8::Uint32; v8::Handle <v8::integer>= v8::Local<v8::integer>]’:../node_modules/nan/nan_new.h:39:65: warning: ‘v8::Local <v8::uint32>v8::Value::ToUint32() const’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:8196): Use maybe version [-Wdeprecated-declarations] To<v8::uint32>(v8::Handle <v8::integer>i) { return i->ToUint32(); } ^ ! 2017-09-06 08:06:59.550 - [32minfo[39m: iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/validation.cc:15: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::booleanobject>::return_t NanIntern::Factory<v8::booleanobject>::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local <v8::value>v8::BooleanObject::New(bool)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:4008): Pass an isolate [-Wdeprecated-declarations] return v8::BooleanObject::New(value).As<v8::booleanobject>(); ^ ! 2017-09-06 08:06:59.567 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::script>::return_t NanIntern::Factory<v8::script>::New(v8::Local<v8::string>)’:../node_modules/nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:59.569 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::script>::return_t NanIntern::Factory<v8::script>::New(v8::Local<v8::string>, const v8::ScriptOrigin&)’:../node_modules/nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:59.576 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::string>::return_t NanIntern::Factory<v8::string>::New(const uint8_t*, int)’:../node_modules/nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Local <v8::string>v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:2332): Use maybe version [-Wdeprecated-declarations] v8::String::kNormalString, length); ^ ! 2017-09-06 08:06:59.578 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::string>::return_t NanIntern::Factory<v8::string>::New(v8::String::ExternalStringResource*)’:../node_modules/nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Local <v8::string>v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:2371): Use maybe version [-Wdeprecated-declarations] return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); ^ ! 2017-09-06 08:06:59.585 - [32minfo[39m: iobroker ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::unboundscript>::return_t NanIntern::Factory<v8::unboundscript>::New(v8::Local<v8::string>)’:../node_modules/nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Local <v8::unboundscript>v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1333): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::unboundscript>::return_t NanIntern::Factory<v8::unboundscript>::New(v8::Local<v8::string>, const v8::ScriptOrigin&)’: ../node_modules/nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Local <v8::unboundscript>v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1333): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ ! 2017-09-06 08:06:59.620 - [32minfo[39m: iobroker In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template <class t="">v8::Local _NanEnsureLocal(v8::Local)’ NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ../node_modules/nan/nan.h:256:25: note: ‘template <class t="">v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ^ ! 2017-09-06 08:06:59.622 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘bool NanIdleNotification(int)’:../node_modules/nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:6114): use IdleNotificationDeadline() [-Wdeprecated-declarations] return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms); ^ ! 2017-09-06 08:06:59.631 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: At global scope:../node_modules/nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback ^ ../node_modules/nan/nan.h:473:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCEpilogueCallback callback ^ ! 2017-09-06 08:06:59.633 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’ , v8::GCType gc_type_filter = v8::kGCTypeAll) { ^ ../node_modules/nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback) { ^ ../node_modules/nan/nan.h:479:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCEpilogueCallback callback) { ^ ../node_modules/nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void v8::Isolate::GCPrologueCallback callback ^ ../node_modules/nan/nan.h:484:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCPrologueCallback callback ^ ../node_modules/nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’ , v8::GCType gc_type_filter = v8::kGCTypeAll) { ^ ../node_modules/nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void v8::Isolate::GCPrologueCallback callback) { ^ ../node_modules/nan/nan.h:490:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCPrologueCallback callback) { ^ ! 2017-09-06 08:06:59.650 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ! 2017-09-06 08:06:59.651 - [32minfo[39m: iobroker ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ! 2017-09-06 08:06:59.653 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(const char*, uint32_t)’:../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ In file included from ../src/validation.cc:10:0: /root/.node-gyp/6.10.3/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocal <v8::object>node::Buffer::New(v8::Isolate*, char*, size_t)’ NODE_EXTERN v8::MaybeLocal <v8::object>New(v8::Isolate* isolate, ^ In file included from ../src/validation.cc:15:0: ../node_modules/nan/nan.h:672:67: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), size)’ from ‘v8::MaybeLocal<v8::object>’ to ‘v8::Local<v8::object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ! 2017-09-06 08:06:59.656 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(uint32_t)’:../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::object>’ to ‘v8::Local<v8::object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanBufferUse(char*, uint32_t)’: ../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ ! 2017-09-06 08:06:59.665 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::script>NanCompileScript(v8::Local<v8::string>, const v8::ScriptOrigin&)’:../node_modules/nan/nan.h:710:74: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ ! 2017-09-06 08:06:59.667 - [32minfo[39m: iobroker ../node_modules/nan/nan.h: In function ‘v8::Local <v8::script>NanCompileScript(v8::Local<v8::string>)’:../node_modules/nan/nan.h:717:74: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /root/.node-gyp/6.10.3/include/node/v8.h:1352): Use maybe version [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ ! 2017-09-06 08:06:59.740 - [32minfo[39m: iobroker ../src/validation.cc: In static member function ‘static void Validation::Initialize(v8::Handle<v8::object>)’:../src/validation.cc:112:62: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::functiontemplate>&, const char [12], void (&)(const v8::FunctionCallbackInfo<v8::value>&))’ is ambiguous NODE_SET_METHOD(t, "isValidUTF8", Validation::IsValidUTF8); ^ ../src/validation.cc:112:62: note: candidates are: ! 2017-09-06 08:06:59.742 - [32minfo[39m: iobroker In file included from ../src/validation.cc:8:0:/root/.node-gyp/6.10.3/include/node/node.h:244:13: note: void node::NODE_SET_METHOD(v8::Local<v8::template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::template>recv, ^ /root/.node-gyp/6.10.3/include/node/node.h:257:13: note: void node::NODE_SET_METHOD(v8::Local<v8::object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local <v8::object>recv, ^ ! 2017-09-06 08:07:00.736 - [32minfo[39m: iobroker make: *** [Release/obj.target/validation/src/validation.o] Error 1 2017-09-06 08:07:00.744 - [32minfo[39m: iobroker gyp 2017-09-06 08:07:00.751 - [32minfo[39m: iobroker 2017-09-06 08:07:00.755 - [32minfo[39m: iobroker ERR! 2017-09-06 08:07:00.756 - [32minfo[39m: iobroker 2017-09-06 08:07:00.758 - [32minfo[39m: iobroker build error 2017-09-06 08:07:00.760 - [32minfo[39m: iobroker 2017-09-06 08:07:00.778 - [32minfo[39m: iobroker gyp 2017-09-06 08:07:00.780 - [32minfo[39m: iobroker 2017-09-06 08:07:00.782 - [32minfo[39m: iobroker ERR! 2017-09-06 08:07:00.784 - [32minfo[39m: iobroker stack 2017-09-06 08:07:00.786 - [32minfo[39m: iobroker Error:
makefailed with exit code: 2 2017-09-06 08:07:00.788 - [32minfo[39m: iobroker gyp 2017-09-06 08:07:00.790 - [32minfo[39m: iobroker 2017-09-06 08:07:00.791 - [32minfo[39m: iobroker ERR! 2017-09-06 08:07:00.793 - [32minfo[39m: iobroker stack 2017-09-06 08:07:00.795 - [32minfo[39m: iobroker at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) 2017-09-06 08:07:00.797 - [32minfo[39m: iobroker gyp 2017-09-06 08:07:00.799 - [32minfo[39m: iobroker ERR! 2017-09-06 08:07:00.801 - [32minfo[39m: iobroker 2017-09-06 08:07:00.803 - [32minfo[39m: iobroker stack at emitTwo (events.js:106:13) 2017-09-06 08:07:00.812 - [32minfo[39m: iobroker gyp ERR! stack at ChildProcess.emit (events.js:191:7)gyp ERR! 2017-09-06 08:07:00.817 - [32minfo[39m: iobroker stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)gyp ERR! System Linux 4.9.24-v7+ gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/utf-8-validate gyp ERR! node -v v6.10.3 gyp ERR! node-gyp -v v3.4.0 ! 2017-09-06 08:07:00.819 - [32minfo[39m: iobroker gyp ERR! not ok 2017-09-06 08:07:33.826 - [32minfo[39m: iobroker npm 2017-09-06 08:07:33.828 - [32minfo[39m: iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/iobroker.radar/node_modules/noble/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"}) ! 2017-09-06 08:07:33.830 - [32minfo[39m: iobroker npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/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"}) ! 2017-09-06 08:07:33.832 - [32minfo[39m: iobroker npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed. ! 2017-09-06 08:07:33.834 - [32minfo[39m: iobroker npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install:
node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm 2017-09-06 08:07:33.836 - [32minfo[39m: iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.2.0 (node_modules/usb):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.2.0 install:
node-pre-gyp install --fallback-to-buildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 ! 2017-09-06 08:07:33.846 - [32minfo[39m: iobroker npm 2017-09-06 08:07:33.848 - [32minfo[39m: iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):npm WARN optional 2017-09-06 08:07:33.859 - [32minfo[39m: iobroker SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install:
node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 ! 2017-09-06 08:07:41.546 - [32minfo[39m: iobroker got /opt/iobroker/node_modules/iobroker.hm-rega/admin 2017-09-06 08:07:41.576 - [32minfo[39m: iobroker upload [1] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/index.html index.html text/html 2017-09-06 08:07:41.737 - [32minfo[39m: iobroker upload [0] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/homematic.png homematic.png image/png 2017-09-06 08:07:43.547 - [32minfo[39m: iobroker exit 0 2017-09-06 08:07:43.742 - [32minfo[39m: host.ioBroker-PI3 Update repository "default" under "http://download.iobroker.net/sources-dist.json"[/code]</v8::object></v8::object></v8::template></v8::template></v8::value></v8::functiontemplate></v8::object></v8::script></v8::string></v8::script></v8::script></v8::string></v8::script></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></class></class></v8::unboundscript></v8::string></v8::unboundscript></v8::unboundscript></v8::unboundscript></v8::string></v8::unboundscript></v8::unboundscript></v8::string></v8::string></v8::string></v8::string></v8::string></v8::string></v8::script></v8::string></v8::script></v8::script></v8::script></v8::string></v8::script></v8::script></v8::booleanobject></v8::value></v8::booleanobject></v8::booleanobject></v8::integer></v8::uint32></v8::uint32></v8::integer></v8::integer></v8::integer></v8::integer></v8::int32></v8::int32></v8::integer></v8::integer></v8::integer></anonymous></libudev.h></v8::object></v8::object></v8::template></v8::template></v8::value></v8::functiontemplate></v8::object></v8::object></v8::template></v8::template></v8::value></v8::functiontemplate></v8::object></v8::object></v8::template></v8::template></v8::value></v8::functiontemplate></v8::object></v8::script></v8::string></v8::script></v8::script></v8::string></v8::script></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></class></class></v8::unboundscript></v8::string></v8::unboundscript></v8::unboundscript></v8::unboundscript></v8::string></v8::unboundscript></v8::unboundscript></v8::string></v8::string></v8::string></v8::string></v8::string></v8::string></v8::script></v8::string></v8::script></v8::script></v8::script></v8::string></v8::script></v8::script></v8::booleanobject></v8::value></v8::booleanobject></v8::booleanobject></v8::integer></v8::uint32></v8::uint32></v8::integer></v8::integer></v8::integer></v8::integer></v8::int32></v8::int32></v8::integer></v8::integer></v8::integer>
Wenn ich das ganze Log mal nur nach "hm-rega" filtere dann bleibt nur noch:
! >![spoiler]~~[code]~~2017-09-06 08:04:00.111 - [32minfo[39m: iobroker url "https://github.com/AlGu1/ioBroker.hm-rega" 2017-09-06 08:04:01.423 - [32minfo[39m: iobroker install https://github.com/AlGu1/ioBroker.hm-rega/tarball/master 2017-09-06 08:04:02.092 - [32minfo[39m: iobroker npm install https://github.com/AlGu1/ioBroker.hm-rega/tarball/master --production --prefix "/opt/iobroker" (System call) 2017-09-06 08:07:41.546 - [32minfo[39m: iobroker got /opt/iobroker/node_modules/iobroker.hm-rega/admin 2017-09-06 08:07:41.576 - [32minfo[39m: iobroker upload [1] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/index.html index.html text/html 2017-09-06 08:07:41.737 - [32minfo[39m: iobroker upload [0] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/homematic.png homematic.png image/png 2017-09-06 08:07:43.547 - [32minfo[39m: iobroker exit 0[/code]
übrig und das scheint alles zu funktionieren. Wie Apollon schon gesagt hat, scheint das ein npm problem zu sein und da kann ich mit meinem Halbwissen nix machen.
! 3. @Jey Cee:
! Danke für den Tipp. Ich gehe aktuell bei mir so vor, dass wenn ich etwas an der "admin/index.html" ändere, dann rufe ich danach in putty auf dem iobroker den Befehl "iobroker upload hm-rega" auf und dann sehe ich im Admin-Bereich alle Änderungen.
! Wieso jemand der den Adapter über git installiert, erst alles mögliche durchstarten muss ist mir nicht ganz klar. Sollte der Installationsvorgang das dann nicht machen wenn nötig?
! Bitte gerne weiter testen, damit das möglichst bald stabil läuft.
! Danke und Gruß
! AlGu[/code][/spoiler] -
Die Warnungen kommen von zwei (optionalen) Node-Modulen, mag sein das die irgendwo in hm-rega eine indirekte Abhängigkeit sind (also von einer benutzten Library benutzt werden). Also von daher…ignore
-
Danke Apollon, dann bin ich ja beruhigt das es nicht an meinen Änderungen liegt und kann mich um die anderen Baustellen kümmern.
-
Moin,
@Eric: Welche npm Version? 2 oder 3? Bei 3 ist es so … üblicherweise hat node 4 noch npm2 und node 6 dann die 3er ... aber kann man auch einzeln upgraden ... `
npm : 2.15.11
Node : v4.8.4 `
Ich überlege, ob ich am WE mal auf Node 6 gehe (und ggf. auch auf ein 64Bit-Debian).
Mal sehen, wie das Wetter wird, usw.
Ich habe den Adapter gerade so umgebaut, dass die ganzen String-Methoden aus dem "dutycycle.fn" in den Adapter gewandert sind und somit keine Abhängigkeit zu den neu implementierten Methoden (Replace, LTrim, RTrim und Mod) der neuen ReGaHss mehr besteht. Dadurch sollte der Adapter nun auch mit älteren CCU Versionen funktionieren. `
Dann probiere ich es doch glatt nochmal aus und meldemich dann.
Gruß,
Eric
-
Hi ho,
Dann probiere ich es doch glatt nochmal aus und meldemich dann. `
habe mir jetzt die 1.6.3 gezogen und es sieht gut aus - keine Meldungen im Log und die beiden Ordner (Raspi-CCU und LAN-GW) wurden angelegt und auch befüllt.Ich lasse das jetzt mal eine Zeit so laufen.
Gruß,
Eric
Von unterwegs getippert
-
Rückinfo von mir:
alles geklappt.
Keine Fehlermeldungen im log
DC wird wie gewünscht ausgelesen.
Nun kann ich DC Cuxd wieder löschen.
Danke.
mfg
-
Ich habe diesen Rega Adapter 1.6.3 installiert. Ich habe eine CCU2 mit 2.29.22.
ioBroker läuft auf ubuntu-server mit
npm version 3.10.10
node version v6.11.3
Bei mir ist auch das Problem, dass ich DutyCycle zwar anwählen kann es aber aber nicht sichern kann oder etwas in das Feld eintragen kann.
Ausprobiert habe ich schon js-controller Neustart und Host Neustart.
Ansonsten scheint der Rega Adapter so zu laufen wie vorher auch.
-
Hallo lobomau,
danke erst mal fürs Installieren und Testen. Ich habe das Problem mit der Einstellen im Adapter jetzt identifiziert und vorerst folgenden Workaround dafür:
- Nach dem Installieren des Adapters über die URL und dem öffnen der Konfiguration im "Instanzen"-Reiter muss auch eine schon vorher vorhandene Einstellung geändert werden, damit die neuen Felder bearbeitet werden können. z.B. eine andere Checkbox "Polling" oder dessen "Intervall" ändern. Danach sollten dann auch die "DutyCycle" Einstellungen möglich sein und mit Abgespeichert werden. Das ganze muss nur einmal so gemacht werden, bis die neuen Einstellungen "DutyCycle" und dessen "Intervall" in ioBroker gespeichert sind. Danach werden beim Laden der Konfig auch die passenden Events abonniert und alles funktioniert wie gewohnt.
Viele Grüße
AlGu
-
Nun zum eigentlichen Problem: (ggf. an die Profis gerichtet:)
Wenn ich eine neue Einstellung in dem Adapter einbaue (also in "admin/index.html") dann wir ja beim öffnen der Konfig die Methode "function load(settings, onChange)" ausgeführt. Leider ist dann ja zu diesem Zeitpunkt noch nicht meine neu hinzugekommen Einstellung in der "settings" Property und wird daher nicht mit "setValue" initialisiert und die Events "change" nicht gesetzt.
Ich denke dieses Problem werden schon mehrere Adapter-Entwickler gehabt haben und vielleicht gibt es da ein einheitliches Vorgehen das zu lösen?!
Alternativ kann ich natürlich im Code prüfen ob eine Einstellung nicht in den "settings" beim "load" vorhanden ist und diese dann einzeln initialisieren. Das ist dann aber nicht mehr so schön dynamisch wie bisher und man muss bei jedem neuen Feld daran denken dies dort wieder mit einzubauen. z.B.:
function load(settings, onChange) { for (var key in settings) { if (settings.hasOwnProperty(key)) setValue(key, settings[key], onChange); } if(settings["syncDutyCycle"] == null) { setValue("syncDutyCycle", false, onChange); } if(settings["pollingIntervalDC"] == null) { setValue("pollingIntervalDC", 60, onChange); } ... }
Viele Grüße
AlGu
-
Ich denke dieses Problem werden schon mehrere Adapter-Entwickler gehabt haben und vielleicht gibt es da ein einheitliches Vorgehen das zu lösen?! `
Relevant: http://forum.iobroker.net/viewtopic.php?f=24&t=7914tl;dr: Problem ist bekannt. Eine elegante Lösung lässt noch auf sich warten:
> Geofency fixed that by handling it alone. read io-package and parse instanceObjects and create the objects by it's own, but I think js-controller should handle that
Wobei, das war bezogen auf instanceObjects. Bin mir gerade nicht 100% sicher, wie es mit .native (Konfig) aussieht. -
Undefiniert ist "undefined" und nicht "null"
Versuch das mal
Idee wäre auch eher die Fehlenden Settings vor der Schleife in das Array mit dem Defaultwert einzufügen.
also eher ein "if (settings.syncDutyCycle===undefined) settings.syncDutyCycle = false;" und dann sid sie für die schleife drin
-
Undefiniert ist "undefined" und nicht "null"
`
== null prüft sowohl auf undefined als auch null.=== null funktioniert nur wenn der Wert exakt null ist.
Alternativen wären
typeof settings.syncDutyCycle === "undefined"
und
!("syncDutyCycle" in settings)
-
hehe … ok, hast Recht
-
Hallo zusammen,
ich habe jetzt die Version 1.6.4 Veröffentlicht mit einem Fix für die Adapter-Konfiguration nach einem Update:
- Wenn der Adapter von einer älteren Version (vor 1.6.0) auf diese Version aktualisiert wird, dann sollten jetzt die neuen Einstellungen auch direkt änderbar sein und nicht mehr erst mit anderen Settings zusammen.
Ich hoffe es gibt noch jemanden, der den Adapter jetzt Testet der noch von der Version kleiner als 1.6.0 kommt. Dann kann ich sicher sein, dass der Adapter nun auch in der Konfig-Seite richtig funktioniert.
@apollon77 und AlCalzone:
Wenn es irgendwann ein einheitliches Vorgehen für Adapter-Default-Werte gibt, dann baue ich das gerne wieder um. Ich denke eine wie auch immer gebaute "adapterDefault"-Liste könnte in Zukunft auch für einen Button "Reset Defaults" oder so nützlich sein.
Viele Grüße
AlGu
-
Moin,
ich habe jetzt die Version 1.6.4 Veröffentlicht…. `
gilt die URL aus dem ersten Posting noch?Wenn ich die Nutze, bleibt es bei der Version 1.6.3.
Gruß,
Eric
-
Moin,
ja die URL ist immer noch dir richtige. Sorry hatte die Version in einer Datei nicht korrekt hochgezählt.
Habe ich nachgeholt.
Danke und Gruß
AlGu
-
Jetzt klappt es. Und alles läuft, wie es soll.
Gruß,
Eric
Von unterwegs getippert
-
Habs gerade erstmals installiert, also von ner 1.5xer … klappt alles, konnte es einstellen. Super!