NEWS
[Aufruf] hm-rega Erweiterung
-
MOD-Edit by eric2905; 05.09.2017 / 20:20; Betreff um "[Aufruf]" erweitert
Hallo zusammen,
ich habe den "hm-rega"-Adapter etwas erweitert und die Infos aus dem "listBidcosInterfaces" in das hm-rega.X Objekt eingebaut. Dadurch braucht man keine TCL-Skript auf der CCU mehr um den DUTYCYCLE, den jeweiligen Verbindungsstatus "CONNECTED" (vor allem bei Gateways interessant), den DEFAULT und die FIRMEWARE_VERSION auszulesen. In dem Admin-Bereich des Adapters kann man das Polling für "DutyCycle" separat aktivieren und das Intervall einstellen.
Da dies meine erste Anpassung an einem Adapter für ioBroker ist, bin ich über jede Hilfe und Verbesserung dankbar. Testen kann man meine Anpassung über den Fork:
https://github.com/AlGu1/ioBroker.hm-rega
und einer Installation über den Adapter-Bereich (Installieren aus eigenem URL).
Bitte gebt mir gerne Feedback zu der Anpassung und auch gerne noch Verbesserungsvorschläge.
UPDATE:
Da das neue "dutycycle.fn" Skript, das die Daten aus der CCU ausliest, einige neue Methoden der Skript-Sprache nutzt (z.B. die Math-Methode "Mod(y)", "RTrim()", "Replace()", usw."). Muss mind. die CCU ReGaHss Beta 19 installiert sein, weil hier ein Fehler bei dem "system.Exec()" behoben wurde.https://homematic-forum.de/forum/viewto … 26&t=36623
Viele Grüße
-
Da mach ich doch heute Abend glatt mal ein neues Snapshot auf meinem esxi und probiere das hemmungslos aus
Gruß,
Eric
-
….. Muss mind. die CCU ReGaHss Beta 19 installiert sein, ..... `
Ich benutze kein raspberrymatic.
Bei mir:
Normale ccu2
iobroker auf Windows
Kann ich die Erweiterung (insb. Duty Cycle) trotzdem installieren.
Danke im Voraus für die Antwort.
mfg
Dieter
-
Hallo bahnuhr,
ich befürchte das wird dann bei dir nicht klappen. Du müsstest erst die Beta19 der ReGaHss installieren und damit sollte es dann gehen. Denn erst in der Beta19 hat Jens einen Fehler behoben, der diese Erweiterung möglich macht:
"reworked system.Exec() to execute the supplied command in the context of a full shell rather than calling the command directly. This enables system.Exec() to execute commands with more than 9 arguments and to use complex shell syntax (such as shell pipes "|", redirections ">" and ";" to execute more than one command). Furthermore, errors on command execution should be reported and handled more properly now."
Falls du doch Testest, dann gerne die Fehlermeldung hier posten. Vielleicht kann ich noch einen Workaround erstellen. Oder zumindest hilft es anderen wenn sie den gleichen Fehler haben.
P.S.: Ich benutze auch nur die CCU2, dort aber mit der aktuelle ReGaHss aus dem Thread von Jens.
Danke und Gruß
AlGu
-
@AlGu: Wenn das aktuell aber wirklich so ein "limitierter Usecase" ist, muss das mit in die Doku und auch irgendwie im Admin ersichtlich sein.
Was passiert denn wenn man die originale CCU ohne Beta-RegaHss hat? Geht was kaputt?
-
Im schlimmsten Fall funktioniert dann das "dutycycle.fn" Skript nicht richtig und der Adapter sollte das mit "Cannot parse answer for dutycycle: …" im Log anzeigen. Ich Teste Morgen das ganze mit einer 2. CCU und einer normalen ReGaHss. Vielleicht kann ich das Skript dann auch entsprechend umbauen, damit es mit allen Versionen funktioniert. Falls das nicht klappt, werde ich einen Hinweis einbauen.
-
ok, dann werde ich ersteinmal nichts ändern.
Greife derzeit DC über cuxd ab.
mfg
-
Hallo bahnuhr,
du könntest bitte mal auf deiner CCU das folgende Skript testen:
string stdout; string stderr; system.Exec("/bin/sh -c '" # 'echo "load tclrpc.so; puts [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces ]" |tclsh' # "'", &stdout, &stderr); WriteLine(stdout);
Wenn das bei dir klappt und das Ergebnis so aussieht: (Natürlich mit etwas anderen Werten)
{ADDRESS MEQ123456 CONNECTED 1 DEFAULT 1 DESCRIPTION {} DUTY_CYCLE 4 FIRMWARE_VERSION 2.8.5 TYPE CCU2} {ADDRESS NEQ123456 CONNECTED 1 DEFAULT 0 DESCRIPTION {} DUTY_CYCLE 0 FIRMWARE_VERSION 1.4.1 TYPE HMLGW2}
Dann sollte meine Erweiterung mit dem nächsten Fix auch ohne Beta ReGeHSS funktionieren und nur noch als Voraussetzung eine CCU mit der Firmware ab Version 2.29.18 haben. (Wegen den Replace-, RTrim-, LTrim- und Mod-Befehlen)
-
Danke für die Info.
Habe aber noch die 2.27.8 drauf.
Müsste ich wohl mal updaten.
Bis dahin.
mfg
Dieter
-
Hallo zusammen,
ich habe jetzt einen Fix eingestellt, der ohne die Beta 19 der ReGaHss auskommt. Wer gerne Testen möchte kann sich die aktuelle Version 1.6.2 gerne aus meinem Fork installieren.
Weitere Anpassungen die noch folgen:
-
Hinweis in den Admin-Bereich für diese Erweiterung: "Die DutyCycle Funktion wird nur mit einer CCU/RaspberryMatic Firmware ab 2.29.18 unterstützt!"
-
Tests mit Verschiedenen Systemen (hier bitte ich alle die gerne Testen möchten, mir kurz ihre CCU/RaspberryMatic Version zu nennen und ob es Fehler gibt oder alles läuft)
Viele Grüße
AlGu
-
-
So, dann hier meine ersten Rückmeldungen.
Im Log finde ich folgendes:
! ````
iobroker 2017-09-05 20:12:51.242 info exit 0
iobroker 2017-09-05 20:12:51.166 info upload [0] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/homematic.png homematic.png image/png
iobroker 2017-09-05 20:12:51.081 info upload [1] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/index.html index.html text/html
iobroker 2017-09-05 20:12:51.054 info got /opt/iobroker/node_modules/iobroker.hm-rega/admin
iobroker 2017-09-05 20:12:51.014 info └── request@2.81.0 (tunnel-agent@0.6.0, caseless@0.12.0, safe-buffer@5.1.1, performance-now@0.2.0, uuid@3.1.0, qs@6.4.0, tough-cookie@2.3.2, form-data@2.1.4, har-validator@4.2.1)
iobroker 2017-09-05 20:12:51.014 info ├── xml2js@0.4.19 (sax@1.2.4, xmlbuilder@9.0.4)
iobroker 2017-09-05 20:12:51.014 info ├── iconv-lite@0.4.18
iobroker 2017-09-05 20:12:51.014 info iobroker.hm-rega@1.6.2 iobroker/node_modules/iobroker.hm-rega├── extend@3.0.1
iobroker 2017-09-05 20:12:50.743 info npm WARN unmet dependency which is version 0.2.0
iobroker 2017-09-05 20:12:50.743 info npm WARN unmet dependency /opt/iobroker/node_modules/iobroker.feiertage/node_modules/request/node_modules/http-signature/node_modules/assert-plus,
iobroker 2017-09-05 20:12:50.743 info unmet dependency which is version 0.2.2npm WARN unmet dependency /opt/iobroker/node_modules/iobroker.feiertage/node_modules/request/node_modules/http-signature/node_modules/sshpk requires assert-plus@'^1.0.0' but will load
iobroker 2017-09-05 20:12:50.738 info
iobroker 2017-09-05 20:12:50.737 info npm WARN unmet dependency /opt/iobroker/node_modules/json-schema,npm WARN
iobroker 2017-09-05 20:12:50.736 info npm WARN unmet dependency /opt/iobroker/node_modules/iobroker.feiertage/node_modules/request/node_modules/http-signature/node_modules/jsprim requires json-schema@'0.2.3' but will load
iobroker 2017-09-05 20:12:50.734 info npm WARN unmet dependency which is version 0.2.0
iobroker 2017-09-05 20:12:50.733 info npm WARN unmet dependency /opt/iobroker/node_modules/iobroker.feiertage/node_modules/request/node_modules/http-signature/node_modules/assert-plus,
iobroker 2017-09-05 20:12:50.730 info WARN unmet dependency /opt/iobroker/node_modules/iobroker.feiertage/node_modules/request/node_modules/http-signature/node_modules/jsprim requires assert-plus@'1.0.0' but will load
iobroker 2017-09-05 20:12:50.725 info npm
iobroker 2017-09-05 20:12:36.020 info npm install https://github.com/AlGu1/ioBroker.hm-rega/tarball/master --production --prefix '/opt/iobroker' (System call)
iobroker 2017-09-05 20:12:35.896 info install https://github.com/AlGu1/ioBroker.hm-rega/tarball/master
iobroker 2017-09-05 20:12:34.842 info url 'https://github.com/AlGu1/ioBroker.hm-rega' --debugIm Admin-Interface ist zwar die Checkbox da und kann auch angehakt werden, allerdings nimmt das Zeitfeld keine Eingaben an. Und die Schaltflächen für Speichern, use. werden nicht aktiv - ich kann nur abbrechen (ohne Hinweis auf nicht gesicherte Änderungen).   Umgebung: ioBroker auf esxi-VM
root@iobroker:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessienpm : 2.15.11 Node : v4.8.4 CCU: RaspberryMatic (nicht ganz aktuell) : 2.29.18.20170731 Auf einem Pi3 mit Funkmodul Gruß, Eric
-
Nachtrag / Ergänzung:
Nachdem ich den Host reboot habe, kann ich zumindest den Timeout-Wert eintragen (Feld ist jetzt beschreibbar).
Aber die Schaltflächen zum Speichern der Änderungen bleiben aus.
Ich musste erst einen anderen Wert ändern, um speichern zu können.
Die geänderten Werte bleiben im Admin-Interface aber erhalten.
Aber die Werte tauchen in den Objekten nicht auf unf ich finde diese Meldung im Log:
hm-rega.1 2017-09-05 20:34:16.186 error Cannot parse answer for dutycycle:
Gruß,
Eric
-
Hi Eric,
vielen Dank schon mal für das Testen und ich denke ich habe den Fehler für "Cannot parse answer for dutycycle" schon gefunden:
Das RaspberryMatic Projekt ist erst mit der Version https://github.com/jens-maus/RaspberryMatic/releases/tag/2.29.22.20170902 in der Lage die "Replace(), LTrim(), RTrim() und Mod()" Befehle zu nutzen.
Leider habe ich da nicht genau genug nachgeschaut und dachte wenn die Versionsnummer der CCU das kann (dort sind ab 2.29.18 die Methoden implementiert), dann sollte RaspberryMatic es schon erst recht können. Ich werde Morgen versuchen einen Fix dafür zu bauen, der dann auch auf älteren Versionen läuft.
Das mit den "Info"-Einträgen im Log hatte ich bei mir auch. Da muss ich aber ehrlich sagt auf die erfahrenen Adapter-Programmierer hoffen, dass die mir da helfen können.
Den Fehler mit dem Bearbeiten der Admin-Seite versuche ich nach zu stellen auf meiner 2. CCU und kann dann vielleicht erkennen woran das liegt.
Danke und Gruß
AlGu
-
Hallo bahnuhr,
du könntest bitte mal auf deiner CCU das folgende Skript testen:
string stdout; string stderr; system.Exec("/bin/sh -c '" # 'echo "load tclrpc.so; puts [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces ]" |tclsh' # "'", &stdout, &stderr); WriteLine(stdout);
Wenn das bei dir klappt und das Ergebnis so aussieht: (Natürlich mit etwas anderen Werten)
{ADDRESS MEQ123456 CONNECTED 1 DEFAULT 1 DESCRIPTION {} DUTY_CYCLE 4 FIRMWARE_VERSION 2.8.5 TYPE CCU2} {ADDRESS NEQ123456 CONNECTED 1 DEFAULT 0 DESCRIPTION {} DUTY_CYCLE 0 FIRMWARE_VERSION 1.4.1 TYPE HMLGW2}
Dann sollte meine Erweiterung mit dem nächsten Fix auch ohne Beta ReGeHSS funktionieren und nur noch als Voraussetzung eine CCU mit der Firmware ab Version 2.29.18 haben. (Wegen den Replace-, RTrim-, LTrim- und Mod-Befehlen) `
Ich bin zwar nicht bahnuhr, aber ich habe dein Script auf der CCU mal ausprobiert. Als Antwort kommt:
{ADDRESS LEQxxxxxxx CONNECTED 1 DEFAULT 1 DESCRIPTION CCU2-Coprocessor DUTY_CYCLE 5 FIRMWARE_VERSION 2.8.5 TYPE CCU2}
Enrico
-
Hi,
Das RaspberryMatic Projekt ist erst mit der Version https://github.com/jens-maus/RaspberryMatic/releases/tag/2.29.22.20170902 in der Lage die "Replace(), LTrim(), RTrim() und Mod()" Befehle zu nutzen. `
ich werde wohl morgen / übermorgen auf die neue RaspberryMatic-Version wechseln und dann nochmal testen.Ich warte aber noch, ob Du noch einen Fix einbauen kannst, damit ich den zuerst testen kann.
Gruß,
Eric
Von unterwegs getippert
-
MOD-Edit by eric2905; 06.09.2017 / 04:30; Quote-Starttag korrigiert (] fehlte). Quote wurde in Tapatalk nicht angezeigt
Das mit den "Info"-Einträgen im Log hatte ich bei mir auch. Da muss ich aber ehrlich sagt auf die erfahrenen Adapter-Programmierer hoffen, dass die mir da helfen können. `
Die gleichen? Das habt Ihr die gleichen Adapter instralliert die dafür verantwortlich sind (lese da was von "feiertage")
Die ganzen npm "warns" kommen wahrscheinlich bei jeglicher npm aktion weil seit node 6 das npm anders tickt und damit jedes mal die Abhängigkeiten von allem prüft. Scheinbar verursacht ein Adapter diese Warnungen und die kommen dann immer. Also von daher … sind nur Wanungen
-
Moin,
Die ganzen npm "warns" kommen wahrscheinlich bei jeglicher npm aktion weil seit node 6 das npm anders tickt und damit jedes mal die Abhängigkeiten von allem prüft. Scheinbar verursacht ein Adapter diese Warnungen und die kommen dann immer. `
Mein System läuft aber noch mit Node v4.
Oder meinst Du, das der fragliche Adapter (Feiertage) mit Node v6 erstellt wurde und es daher zu den Meldungen auf einem v4 Host kommt?
Gruß,
Eric
Von unterwegs getippert
-
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]