NEWS

[Gelöst] Aktienkurs einlesen?



  • Hallo Zusammen,

    Bei dem Versuch die Daten aus-, bzw. einzulesen, bin ich mit meinem rudimentären JS-Wissen am Ende und setze jetzt mal auf das Schwarmwissen.

    Die URL der gewünschten Werte gibt folgendes zurück:

    {
      "companiesPriceList" : [ {
        "symbol" : "AAPL",
        "price" : 265.735
      }, {
        "symbol" : "MSFT",
        "price" : 151.84
      }, {
        "symbol" : "SAP",
        "price" : 134.76
      } ]
    }
    

    Mit var myjson = JSON.parse(body); kann ich die Werte auch mehr oder weniger sehen,

    {'companiesPriceList':[{'symbol':'LYB','price':93.42},{'symbol':'MSFT','price':152.08},{'symbol':'SAP','price':135.06}]}
    

    Nur ab da an ist Ente im Gelände für mich. Würde gerne die Werte als Objekt speichern (Name = AAPL, Wert = 265,735).

    Wenn möglich, sollte es auch funktionieren, wenn die URL um ein oder zwei Werte erweitert wird.
    Ideen wie ich das mit eurer Unterstützung ans fliegen bekommen?

    Vielen Dank und Gruß
    Rüdiger



  • @RKBroker
    warum nimmst nicht einfach den Adapter Stockmarket? Ich habs zwar nicht geschafft mir die Werte in € anzeigen zu lassen, aber in $ gehts auf alle Fälle.



  • Hi Jan1,

    Vielen Dank für die Info. Kannte den Adapter nicht. Wie dem auch sei, würde aber gerne bei financialmodelingprep.com bleiben, da dort viele Kurse oft abgerufen dürfen.

    Gruß

    Rüdiger



  • @RKBroker
    Prinzip:

    var priceList = JSON.parse(body).companiesPriceList;
    
    for(let i = 0; i < priceList.length; i++) {
        var symbol = priceList[i].symbol;
        var val = priceList[i].price; 
        if(getObject('javascript.0.Kurse.' + symbol)) setState('Kurse.' + symbol, val, true);
        else createState('Kurse.' + symbol, val, {type: 'number', unit:'$', name: symbol});
    }
    

  • Forum Testing Most Active

    @Jan1 sagte in Aktienkurs einlesen?:

    @RKBroker
    warum nimmst nicht einfach den Adapter Stockmarket? Ich habs zwar nicht geschafft mir die Werte in € anzeigen zu lassen, aber in $ gehts auf alle Fälle.

    Geht auch, denn USD ist noch (?) fest eingecodet:

    • Stockmarket-Instanz stoppen
    • alle Datenpunkte löschen
    • in /opt/iobroker/node-modules/iobroker.stockmarket main.js mit Editor bearbeiten
    • ~Zeile 73 let unit = "USD"; in let unit = "EUR"; ändern
    • speichern und Adapter neu starten

    Beim nächsten Update werden die Datenpunkte dann in € neu angelegt 😎
    Die Änderung ist natürlich mit einem Update des Adapters wieder weg...



  • @paul53 Vielen Dank!!! Das Prinzip hat zu 100% funktioniert.



  • @SBorg Cool. Werde es ausprobieren. Vielen Dank!!



  • @RKBroker
    Ich wollte deinen Stockmarket Adapter installieren.

    Scheitere aber bei der Installation:

    iobroker@iobroker:~$ sudo npm install iobroker.stockmarket
    npm WARN saveError ENOENT: no such file or directory, open '/home/iobroker/package.json'
    npm WARN enoent ENOENT: no such file or directory, open '/home/iobroker/package.json'
    npm WARN iobroker No description
    npm WARN iobroker No repository field.
    npm WARN iobroker No README data
    npm WARN iobroker No license field.
    
    

    Im Iobroker wird der Adapter auch nicht angezeigt


  • Forum Testing Most Active

    @hartwigm sagte in [Gelöst] Aktienkurs einlesen?:

    @RKBroker
    Ich wollte deinen Stockmarket Adapter installieren.

    Scheitere aber bei der Installation:

    Via Katze im Admin installieren. Dann Instanz mit + hinzufügen und upload machen

    Screenshot (870)_LI.jpg



  • auch, wenn ich mich jetzt als Anfänger oute

    Ich habe weder eine Katze noch einen Kunde. Auch ist unter Adapter kein Icon als Katze zu erkennen!io4.PNG



  • @RKBroker

    Wusste nicht, das dies die Katze ist. Das hatte ich schon mal probiert.

    Leider erfolglos, obwohl Erfolgreich gemeldet wird.

    Anbei der Debug, mit welchem ich recht wenig anfangen kann.

    Gruß Hartwig

    $ ./iobroker url "https://github.com/waoler/ioBroker.stockmarket.git" --debug
    install https://github.com/waoler/ioBroker.stockmarket/tarball/d5b3a30760ed5e24a778a041f9756b70e4e70885
    NPM version: 6.13.1
    npm install https://github.com/waoler/ioBroker.stockmarket/tarball/d5b3a30760ed5e24a778a041f9756b70e4e70885 --loglevel error --prefix "/opt/iobroker" (System call)
    > bufferutil@1.1.0 install /opt/iobroker/node_modules/bufferutil> node-gyp rebuild
    make: Entering directory '/opt/iobroker/node_modules/bufferutil/build'
      CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
    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<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Integer; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:../node_modules/nan/nan_new.h:29:66: warning: ‘v8::Local<v8::Integer> v8::Value::ToInteger() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }                                                                  ^
    In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10052:16: note: declared here Local<Integer> Value::ToInteger() const {                ^~~~~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<T> 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: error: no matching function for call to ‘v8::Integer::ToInt32()’ To<v8::Int32>(v8::Handle<v8::Integer> i)   { return i->ToInt32(); }                                                                ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;                                           ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 providedIn file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const                 Local<Int32> ToInt32(Isolate* isolate) const);                              ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided                 Local<Int32> ToInt32(Isolate* isolate) const);                              ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    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<T> 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: error: no matching function for call to ‘v8::Integer::ToUint32()’ To<v8::Uint32>(v8::Handle<v8::Integer> i)  { return i->ToUint32(); }                                                                 ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2435:44: note: candidate: v8::MaybeLocal<v8::Uint32> v8::Value::ToUint32(v8::Local<v8::Context>) const   V8_WARN_UNUSED_RESULT MaybeLocal<Uint32> ToUint32(                                            ^~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2435:44: note:   candidate expects 1 argument, 0 provided
    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: error: no matching function for call to ‘v8::BooleanObject::New(bool&)’   return v8::BooleanObject::New(value).As<v8::BooleanObject>();                                      ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:5035:23: note: candidate: static v8::Local<v8::Value> v8::BooleanObject::New(v8::Isolate*, bool)   static Local<Value> New(Isolate* isolate, bool value);                       ^~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:5035:23: note:   candidate expects 2 arguments, 1 providedIn 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:49:60: error: expected primary-expression before ‘>’ token   return v8::BooleanObject::New(value).As<v8::BooleanObject>();                                                            ^../node_modules/nan/nan_implementation_12_inl.h:49:62: error: expected primary-expression before ‘)’ token   return v8::BooleanObject::New(value).As<v8::BooleanObject>();                                                              ^
    ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::RegExp>::return_t NanIntern::Factory<v8::RegExp>::New(v8::Handle<v8::String>, v8::RegExp::Flags)’:../node_modules/nan/nan_implementation_12_inl.h:158:40: warning: ‘static v8::Local<v8::RegExp> v8::RegExp::New(v8::Local<v8::String>, v8::RegExp::Flags)’ is deprecated: Use maybe version [-Wdeprecated-declarations]   return v8::RegExp::New(pattern, flags);                                        ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:5110:38: note: declared here                        Local<RegExp> New(Local<String> pattern, Flags flags));                                      ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    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::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)’:../node_modules/nan/nan_implementation_12_inl.h:166:69: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’   return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);                                                                     ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn 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::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: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’   return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);                                                                     ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 provided
    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::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:../node_modules/nan/nan_implementation_12_inl.h:206:42: error: no matching function for call to ‘v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*&, v8::String::NewStringType, int&)’         v8::String::kNormalString, length);                                          ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2802:51: note: candidate: static v8::MaybeLocal<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int)   static V8_WARN_UNUSED_RESULT MaybeLocal<String> NewFromOneByte(                                                   ^~~~~~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2802:51: note:   no known conversion for argument 3 from ‘v8::String::NewStringType’ to ‘v8::NewStringType’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::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)’:../node_modules/nan/nan_implementation_12_inl.h:217:66: error: no matching function for call to ‘v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*&)’   return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);                                                                  ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2861:21: note: candidate: static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalOneByteStringResource*)       Local<String> NewExternal(Isolate* isolate,                     ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator                                                ^~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2861:21: note:   no known conversion for argument 2 from ‘v8::String::ExternalStringResource*’ to ‘v8::String::ExternalOneByteStringResource*’       Local<String> NewExternal(Isolate* isolate,                     ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator                                                ^~~~~~~~~~
    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::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)’:../node_modules/nan/nan_implementation_12_inl.h:237:30: error: ‘CompileUnbound’ is not a member of ‘v8::ScriptCompiler’   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:30: error: ‘CompileUnbound’ is not a member of ‘v8::ScriptCompiler’   return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);                              ^~~~~~~~~~~~~~
    In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘uint32_t NanUInt32OptionValue(v8::Local<v8::Object>, v8::Handle<v8::String>, uint32_t)’:../node_modules/nan/nan.h:248:43: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]       ? optionsObj->Get(opt)->Uint32Value()                                           ^
    In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2477:47: note: declared here   V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);                                               ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~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<T> _NanEnsureLocal(v8::Local<T>)’ NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {                         ^~~~~~~~~~~~~~~../node_modules/nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {                         ^~~~~~~~~~~~~~~../node_modules/nan/nan.h: In function ‘bool NanIdleNotification(int)’:../node_modules/nan/nan.h:289:39: error: ‘class v8::Isolate’ has no member named ‘IdleNotification’; did you mean ‘IdleNotificationDeadline’?     return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);                                       ^~~~~~~~~~~~~~~~                                       IdleNotificationDeadline../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:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’../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:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’../node_modules/nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void       v8::Isolate::GCPrologueCallback callback                    ^~~~~~~~~~~~~~~~~~../node_modules/nan/nan.h:484:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’../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:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’../node_modules/nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {               ^~~~~~~~~~~~~~~~../node_modules/nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {                               ^../node_modules/nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:../node_modules/nan/nan.h:570:42: error: ‘data’ was not declared in this scope       _NanWeakCallbackInfo<T, P> *info = data.GetParameter();                                          ^~~~../node_modules/nan/nan.h: At global scope:../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared     , node::smalloc::FreeCallback callback             ^~~~~~~../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:50: note: suggested alternative: ‘calloc’         v8::Isolate::GetCurrent(), data, length, callback, hint);                                                  ^~~~~~~~                                                  calloc../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope         v8::Isolate::GetCurrent(), data, length, callback, hint);                                                            ^~~~../node_modules/nan/nan.h:665:60: note: suggested alternative: ‘uint’         v8::Isolate::GetCurrent(), data, length, callback, hint);                                                            ^~~~                                                            uint../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:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node_buffer.h:68: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/bufferutil.cc:16:0:../node_modules/nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)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:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)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:26: error: ‘Use’ is not a member of ‘node::Buffer’     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);                          ^~~
    ../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: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);                                                                          ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:../node_modules/nan/nan.h:717:74: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);                                                                          ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
    /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanRunScript(v8::Handle<v8::UnboundScript>)’:../node_modules/nan/nan.h:723:48: warning: ‘v8::Local<v8::Value> v8::Script::Run()’ is deprecated: Use maybe version [-Wdeprecated-declarations]     return script->BindToCurrentContext()->Run();                                                ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1271:51: note: declared here   V8_DEPRECATED("Use maybe version", Local<Value> Run());                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanRunScript(v8::Handle<v8::Script>)’:../node_modules/nan/nan.h:729:24: warning: ‘v8::Local<v8::Value> v8::Script::Run()’ is deprecated: Use maybe version [-Wdeprecated-declarations]     return script->Run();                        ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1271:51: note: declared here   V8_DEPRECATED("Use maybe version", Local<Value> Run());                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanMakeCallback(v8::Handle<v8::Object>, v8::Handle<v8::Function>, int, v8::Handle<v8::Value>*)’:../node_modules/nan/nan.h:738:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]         v8::Isolate::GetCurrent(), target, func, argc, argv));                                                            ^In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:177:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanMakeCallback(v8::Handle<v8::Object>, v8::Handle<v8::String>, int, v8::Handle<v8::Value>*)’:../node_modules/nan/nan.h:747:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]         v8::Isolate::GetCurrent(), target, symbol, argc, argv));                                                              ^In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:170:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanMakeCallback(v8::Handle<v8::Object>, const char*, int, v8::Handle<v8::Value>*)’:../node_modules/nan/nan.h:756:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]         v8::Isolate::GetCurrent(), target, method, argc, argv));                                                              ^In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:163:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~
    In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In member function ‘v8::Handle<v8::Value> NanCallback::Call_(v8::Isolate*, v8::Handle<v8::Object>, int, v8::Handle<v8::Value>*) const’:../node_modules/nan/nan.h:1569:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]     ));     ^../node_modules/nan/nan.h:398:59: note: in definition of macro ‘NanEscapeScope’ # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))                                                           ^~~In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:177:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~
    In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In function ‘void* _NanRawString(v8::Handle<v8::Value>, Nan::Encoding, size_t*, void*, size_t, int)’:../node_modules/nan/nan.h:2164:38: warning: ‘v8::String::Value::Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]         v8::String::Value value(toStr);                                      ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2916:51: note: declared here     V8_DEPRECATED("Use Isolate version", explicit Value(Local<v8::Value> obj));                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h:2198:38: warning: ‘v8::String::Value::Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]         v8::String::Value value(toStr);                                      ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2916:51: note: declared here     V8_DEPRECATED("Use Isolate version", explicit Value(Local<v8::Value> obj));                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: In constructor ‘NanTap::NanTap(v8::Handle<v8::Value>)’:../node_modules/nan/nan.h:2292:41: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     NanAssignPersistent(t_, t->ToObject());                                         ^
    In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../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);                                                    ^
    In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:372:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,             ^~~~~~~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:386:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,             ^~~~~~~~~~~~~~~../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);                                                ^In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:372:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,             ^~~~~~~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:386:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,             ^~~~~~~~~~~~~~~../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);                                                  ^In file included from ../src/bufferutil.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:372:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,             ^~~~~~~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:386:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,             ^~~~~~~~~~~~~~~
    ../src/bufferutil.cc: In static member function ‘static void BufferUtil::Merge(const v8::FunctionCallbackInfo<v8::Value>&)’:../src/bufferutil.cc:49:49: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> bufferObj = args[0]->ToObject();                                                 ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../src/bufferutil.cc:56:51: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]       Local<Object> src = array->Get(i)->ToObject();                                                   ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../src/bufferutil.cc: In static member function ‘static void BufferUtil::Unmask(const v8::FunctionCallbackInfo<v8::Value>&)’:../src/bufferutil.cc:67:50: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> buffer_obj = args[0]->ToObject();                                                  ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../src/bufferutil.cc:69:48: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> mask_obj = args[1]->ToObject();                                                ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~
    ../src/bufferutil.cc: In static member function ‘static void BufferUtil::Mask(const v8::FunctionCallbackInfo<v8::Value>&)’:../src/bufferutil.cc:88:50: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> buffer_obj = args[0]->ToObject();                                                  ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../src/bufferutil.cc:89:48: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> mask_obj = args[1]->ToObject();                                                ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../src/bufferutil.cc:91:50: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> output_obj = args[2]->ToObject();                                                  ^In file included from ../src/bufferutil.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~../src/bufferutil.cc:92:51: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     unsigned int dataOffset = args[3]->Int32Value();                                                   ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);                                              ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~../src/bufferutil.cc:93:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     unsigned int length = args[4]->Int32Value();                                               ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/bufferutil.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);                                              ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    bufferutil.target.mk:105: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failedmake: Leaving directory '/opt/iobroker/node_modules/bufferutil/build'make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 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:194:23)gyp ERR! stack     at ChildProcess.emit (events.js:198:13)gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    gyp ERR! System Linux 4.15.0-70-genericgyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/bufferutilgyp ERR! node -v v10.17.0gyp ERR! 
    node-gyp -v v5.0.5gyp ERR! not ok 
    > utf-8-validate@1.1.0 install /opt/iobroker/node_modules/utf-8-validate> node-gyp rebuild
    make: Entering directory '/opt/iobroker/node_modules/utf-8-validate/build'
      CXX(target) Release/obj.target/validation/src/validation.o
    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<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Integer; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:../node_modules/nan/nan_new.h:29:66: warning: ‘v8::Local<v8::Integer> v8::Value::ToInteger() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }                                                                  ^
    In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10052:16: note: declared here Local<Integer> Value::ToInteger() const {                ^~~~~
    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<T> 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: error: no matching function for call to ‘v8::Integer::ToInt32()’ To<v8::Int32>(v8::Handle<v8::Integer> i)   { return i->ToInt32(); }                                                                ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;                                           ^~~~~~~
    /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
    In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const                 Local<Int32> ToInt32(Isolate* isolate) const);                              ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided                 Local<Int32> ToInt32(Isolate* isolate) const);                              ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    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<T> 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: error: no matching function for call to ‘v8::Integer::ToUint32()’ To<v8::Uint32>(v8::Handle<v8::Integer> i)  { return i->ToUint32(); }                                                                 ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2435:44: note: candidate: v8::MaybeLocal<v8::Uint32> v8::Value::ToUint32(v8::Local<v8::Context>) const   V8_WARN_UNUSED_RESULT MaybeLocal<Uint32> ToUint32(                                            ^~~~~~~~
    /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2435:44: note:   candidate expects 1 argument, 0 provided
    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: error: no matching function for call to ‘v8::BooleanObject::New(bool&)’   return v8::BooleanObject::New(value).As<v8::BooleanObject>();                                      ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:5035:23: note: candidate: static v8::Local<v8::Value> v8::BooleanObject::New(v8::Isolate*, bool)   static Local<Value> New(Isolate* isolate, bool value);                       ^~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:5035:23: note:   candidate expects 2 arguments, 1 providedIn 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:49:60: error: expected primary-expression before ‘>’ token   return v8::BooleanObject::New(value).As<v8::BooleanObject>();                                                            ^../node_modules/nan/nan_implementation_12_inl.h:49:62: error: expected primary-expression before ‘)’ token   return v8::BooleanObject::New(value).As<v8::BooleanObject>();                                                              ^../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::RegExp>::return_t NanIntern::Factory<v8::RegExp>::New(v8::Handle<v8::String>, v8::RegExp::Flags)’:../node_modules/nan/nan_implementation_12_inl.h:158:40: warning: ‘static v8::Local<v8::RegExp> v8::RegExp::New(v8::Local<v8::String>, v8::RegExp::Flags)’ is deprecated: Use maybe version [-Wdeprecated-declarations]   return v8::RegExp::New(pattern, flags);                                        ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:5110:38: note: declared here                        Local<RegExp> New(Local<String> pattern, Flags flags));                                      ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    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::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)’:../node_modules/nan/nan_implementation_12_inl.h:166:69: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’   return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);                                                                     ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn 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::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: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’   return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);                                                                     ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn 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::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:../node_modules/nan/nan_implementation_12_inl.h:206:42: error: no matching function for call to ‘v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*&, v8::String::NewStringType, int&)’         v8::String::kNormalString, length);                                          ^
    In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2802:51: note: candidate: static v8::MaybeLocal<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int)   static V8_WARN_UNUSED_RESULT MaybeLocal<String> NewFromOneByte(                                                   ^~~~~~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2802:51: note:   no known conversion for argument 3 from ‘v8::String::NewStringType’ to ‘v8::NewStringType’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::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)’:../node_modules/nan/nan_implementation_12_inl.h:217:66: error: no matching function for call to ‘v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*&)’   return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);                                                                  ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2861:21: note: candidate: static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalOneByteStringResource*)       Local<String> NewExternal(Isolate* isolate,                     ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator                                                ^~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2861:21: note:   no known conversion for argument 2 from ‘v8::String::ExternalStringResource*’ to ‘v8::String::ExternalOneByteStringResource*’       Local<String> NewExternal(Isolate* isolate,                     ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator                                                ^~~~~~~~~~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::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)’:../node_modules/nan/nan_implementation_12_inl.h:237:30: error: ‘CompileUnbound’ is not a member of ‘v8::ScriptCompiler’   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:30: error: ‘CompileUnbound’ is not a member of ‘v8::ScriptCompiler’   return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);                              ^~~~~~~~~~~~~~
    In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘uint32_t NanUInt32OptionValue(v8::Local<v8::Object>, v8::Handle<v8::String>, uint32_t)’:../node_modules/nan/nan.h:248:43: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]       ? optionsObj->Get(opt)->Uint32Value()                                           ^
    In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2477:47: note: declared here   V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);                                               ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~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<T> _NanEnsureLocal(v8::Local<T>)’ NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {                         ^~~~~~~~~~~~~~~../node_modules/nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {                         ^~~~~~~~~~~~~~~
    ../node_modules/nan/nan.h: In function ‘bool NanIdleNotification(int)’:../node_modules/nan/nan.h:289:39: error: ‘class v8::Isolate’ has no member named ‘IdleNotification’; did you mean ‘IdleNotificationDeadline’?     return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);                                       ^~~~~~~~~~~~~~~~                                       IdleNotificationDeadline../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:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
    ../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:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’../node_modules/nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void       v8::Isolate::GCPrologueCallback callback                    ^~~~~~~~~~~~~~~~~~../node_modules/nan/nan.h:484:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’../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:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’../node_modules/nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {               ^~~~~~~~~~~~~~~~../node_modules/nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {                               ^../node_modules/nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:../node_modules/nan/nan.h:570:42: error: ‘data’ was not declared in this scope       _NanWeakCallbackInfo<T, P> *info = data.GetParameter();                                          ^~~~
    ../node_modules/nan/nan.h: At global scope:../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared     , node::smalloc::FreeCallback callback             ^~~~~~~../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:50: note: suggested alternative: ‘calloc’         v8::Isolate::GetCurrent(), data, length, callback, hint);                                                  ^~~~~~~~                                                  calloc../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope         v8::Isolate::GetCurrent(), data, length, callback, hint);                                                            ^~~~
    ../node_modules/nan/nan.h:665:60: note: suggested alternative: ‘uint’         v8::Isolate::GetCurrent(), data, length, callback, hint);                                                            ^~~~                                                            uint../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:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node_buffer.h:68: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:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)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:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)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:26: error: ‘Use’ is not a member of ‘node::Buffer’     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);                          ^~~../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: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);                                                                          ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
    /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:../node_modules/nan/nan.h:717:74: error: no matching function for call to ‘v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*)’     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);                                                                          ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1510:51: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note: candidate: static v8::MaybeLocal<v8::Script> v8::ScriptCompiler::Compile(v8::Local<v8::Context>, v8::ScriptCompiler::StreamedSource*, v8::Local<v8::String>, const v8::ScriptOrigin&)   static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(                                                   ^~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1537:51: note:   candidate expects 4 arguments, 2 providedIn file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanRunScript(v8::Handle<v8::UnboundScript>)’:../node_modules/nan/nan.h:723:48: warning: ‘v8::Local<v8::Value> v8::Script::Run()’ is deprecated: Use maybe version [-Wdeprecated-declarations]     return script->BindToCurrentContext()->Run();                                                ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1271:51: note: declared here   V8_DEPRECATED("Use maybe version", Local<Value> Run());                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanRunScript(v8::Handle<v8::Script>)’:../node_modules/nan/nan.h:729:24: warning: ‘v8::Local<v8::Value> v8::Script::Run()’ is deprecated: Use maybe version [-Wdeprecated-declarations]     return script->Run();                        ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:1271:51: note: declared here   V8_DEPRECATED("Use maybe version", Local<Value> Run());                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanMakeCallback(v8::Handle<v8::Object>, v8::Handle<v8::Function>, int, v8::Handle<v8::Value>*)’:../node_modules/nan/nan.h:738:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]         v8::Isolate::GetCurrent(), target, func, argc, argv));                                                            ^In file included from ../src/validation.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:177:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanMakeCallback(v8::Handle<v8::Object>, v8::Handle<v8::String>, int, v8::Handle<v8::Value>*)’:../node_modules/nan/nan.h:747:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]         v8::Isolate::GetCurrent(), target, symbol, argc, argv));                                                              ^In file included from ../src/validation.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:170:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~
    In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> NanMakeCallback(v8::Handle<v8::Object>, const char*, int, v8::Handle<v8::Value>*)’:../node_modules/nan/nan.h:756:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]         v8::Isolate::GetCurrent(), target, method, argc, argv));                                                              ^In file included from ../src/validation.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:163:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~
    In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In member function ‘v8::Handle<v8::Value> NanCallback::Call_(v8::Isolate*, v8::Handle<v8::Object>, int, v8::Handle<v8::Value>*) const’:../node_modules/nan/nan.h:1569:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]     ));     ^../node_modules/nan/nan.h:398:59: note: in definition of macro ‘NanEscapeScope’ # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))                                                           ^~~In file included from ../src/validation.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:177:50: note: declared here                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(                                                  ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’     __attribute__((deprecated(message))) declarator                                          ^~~~~~~~~~
    In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In function ‘void* _NanRawString(v8::Handle<v8::Value>, Nan::Encoding, size_t*, void*, size_t, int)’:../node_modules/nan/nan.h:2164:38: warning: ‘v8::String::Value::Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]         v8::String::Value value(toStr);                                      ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2916:51: note: declared here     V8_DEPRECATED("Use Isolate version", explicit Value(Local<v8::Value> obj));                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h:2198:38: warning: ‘v8::String::Value::Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]         v8::String::Value value(toStr);                                      ^In file included from /home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:26:0,                 from ../src/validation.cc:7:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:2916:51: note: declared here     V8_DEPRECATED("Use Isolate version", explicit Value(Local<v8::Value> obj));                                                   ^/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~
    In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: In constructor ‘NanTap::NanTap(v8::Handle<v8::Value>)’:../node_modules/nan/nan.h:2292:41: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     NanAssignPersistent(t_, t->ToObject());                                         ^
    In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~
    ../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);                                                              ^
    In file included from ../src/validation.cc:8:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:372:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,             ^~~~~~~~~~~~~~~/home/iobroker/.cache/node-gyp/10.17.0/include/node/node.h:386:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,             ^~~~~~~~~~~~~~~
    ../src/validation.cc: In static member function ‘static void Validation::IsValidUTF8(const v8::FunctionCallbackInfo<v8::Value>&)’:../src/validation.cc:132:50: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]     Local<Object> buffer_obj = args[0]->ToObject();                                                  ^In file included from ../src/validation.cc:7:0:/home/iobroker/.cache/node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const {               ^~~~~
    ../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]       case 5 : ch += (uint8_t) value[i++]; ch <<= 6;                                            ~~~^~~~~
    ../src/validation.cc:83:7: note: here       case 4 : ch += (uint8_t) value[i++]; ch <<= 6;       ^~~~../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]       case 4 : ch += (uint8_t) value[i++]; ch <<= 6;                                            ~~~^~~~~../src/validation.cc:84:7: note: here       case 3 : ch += (uint8_t) value[i++]; ch <<= 6;       ^~~~../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]       case 3 : ch += (uint8_t) value[i++]; ch <<= 6;                                            ~~~^~~~~../src/validation.cc:85:7: note: here       case 2 : ch += (uint8_t) value[i++]; ch <<= 6;       ^~~~
    ../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]       case 2 : ch += (uint8_t) value[i++]; ch <<= 6;                                            ~~~^~~~~../src/validation.cc:86:7: note: here       case 1 : ch += (uint8_t) value[i++]; ch <<= 6;       ^~~~../src/validation.cc:86:47: warning: this statement may fall through [-Wimplicit-fallthrough=]       case 1 : ch += (uint8_t) value[i++]; ch <<= 6;                                            ~~~^~~~~../src/validation.cc:87:7: note: here       case 0 : ch += (uint8_t) value[i];       ^~~~
    ../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:../src/validation.cc:51:11: warning: this statement may fall through [-Wimplicit-fallthrough=]   case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;           ^~../src/validation.cc:52:3: note: here   case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;   ^~~~../src/validation.cc:52:11: warning: this statement may fall through [-Wimplicit-fallthrough=]   case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;           ^~../src/validation.cc:53:3: note: here   case 2: if ((a = (*--srcptr)) > 0xBF) return 0;   ^~~~../src/validation.cc:60:18: warning: this statement may fall through [-Wimplicit-fallthrough=]       default:   if (a < 0x80) return 0;                  ^~../src/validation.cc:63:3: note: here   case 1: if (*source >= 0x80 && *source < 0xC2) return 0;   ^~~~
    validation.target.mk:105: recipe for target 'Release/obj.target/validation/src/validation.o' failedmake: *** [Release/obj.target/validation/src/validation.o] Error 1make: Leaving directory '/opt/iobroker/node_modules/utf-8-validate/build'
    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:194:23)gyp ERR! stack     at ChildProcess.emit (events.js:198:13)gyp
     ERR! stack
         at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)gyp ERR! System Linux 4.15.0-70-genericgyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/utf-8-validategyp ERR! node -v v10.17.0gyp ERR! node-gyp -v v5.0.5gyp ERR! not ok 
    + iobroker.stockmarket@0.0.2updated 1 package and audited 6339 packages in 26.903s
    6 packages are looking for funding  run `npm fund` for details
    found 25 vulnerabilities (18 low, 7 high)  run `npm audit fix` to fix them, or `npm audit` for details
    upload [5] stockmarket.admin /opt/iobroker/node_modules/iobroker.stockmarket/admin/words.js words.js application/javascript
    upload [4] stockmarket.admin /opt/iobroker/node_modules/iobroker.stockmarket/admin/tsconfig.json tsconfig.json application/json
    upload [3] stockmarket.admin /opt/iobroker/node_modules/iobroker.stockmarket/admin/style.css style.css text/css
    upload [2] stockmarket.admin /opt/iobroker/node_modules/iobroker.stockmarket/admin/stockmarket.png stockmarket.png image/png
    upload [1] stockmarket.admin /opt/iobroker/node_modules/iobroker.stockmarket/admin/index_m.html index_m.html text/html
    upload [0] stockmarket.admin /opt/iobroker/node_modules/iobroker.stockmarket/admin/admin.d.ts admin.d.ts video/mp2t
    process exited with code 0
    

    io6.PNG


  • Forum Testing Most Active

    @hartwigm sagte in [Gelöst] Aktienkurs einlesen?:

    Leider erfolglos, obwohl Erfolgreich gemeldet wird.

    process exited with code 0

    Ist so ok, jetzt Instanz hinzufügen mit den + ICON

    Dann upload machen mit Pfeil nach Oben , Expertenmodus einschalten!


  • Forum Testing Most Active Global Moderator Administrators

    @hartwigm sagte in [Gelöst] Aktienkurs einlesen?:

    Wusste nicht, das dies die Katze ist.

    Das ist Octocat!
    Download.png

    Das Logo von GitHub
    9919.png


  • Forum Testing Most Active

    @Homoran

    Ev, bei mouseover ein Hinweis zusätzlich (cat)


  • Forum Testing Most Active Global Moderator Administrators

    @sigi234 sagte in [Gelöst] Aktienkurs einlesen?:

    @Homoran

    Ev, bei mouseover ein Hinweis zusätzlich (cat)

    Nope!
    Da steht

    Installieren aus eigener URL

    was natürlich auch GitHub mit einschließt

    Darüber kann alles von irgendwo installiert werden was NICHT in dem eingestellten Repo liegt.

    "Die Katze" sollte man sich eher abgewöhnen.



  • Ich habe nun den Adapter und auch den API Key eingeben.

    Bei der Aktiennummer habe ich mal die WKN eingeben. Bekomme aber einen Fehlermeldung.
    Ebenso mit des ISIN:

    io10.PNG

    Es werden keine Objekte angelegt!



  • @hartwigm
    Was da einzutragen ist steht in der Adapter Doku und die WKN ist es nicht.


  • Starter

    Hallo
    habe Adapter instaliert

    Unbenannt1.JPG
    instanzen

    ec4947d6-eeb3-4665-ab59-e9c877c74bbc-image.png

    und jetzt ??? in Objekten ist nichts,wo kann ich die Werte in iobroker auslesen .
    sorry bin leider nicht so weit



  • @arnold
    Das dauert recht lange bis der sich die Werte zieht, hatte auch erst gedacht es geht nichts.


  • Starter

    @Jan1 aberrrrr wo soll ich nachsehen ? wie lange soll ich warten 1 Tag

    a2bdf33b-6dd9-4c3e-a3de-086bf43fda4f-image.png

    danke für jede hilfe


Log in to reply
 

Suggested Topics

  • 291
  • 5
  • 5
  • 5
  • 3
  • 13
  • 6
  • 9

1.9k
Online

32.2k
Users

38.9k
Topics

526.7k
Posts