NEWS
Jeelink Adapter startet nicht mehr
-
habe auch 10 Sensoren, wenn es keine andere Lösung gibt werde ich auf einen Raspberry Pi wieder FHEM drauf machen und die Sensoren über den FHEM Adapter einbinden.
-
Bleib doch zunächst mal auf node12. Da muss man ja noch nicht von runterspringen. Bis das erforderlich wird hat sich vermutlich bei dem Adapter schon was getan.
-
bin ja schon auf node14, kann man einfach wieder zurück auf die 12er version?
-
@chris76e
Klar. Schau in meiner Signatur, da steht drin wie man es macht. -
@foxthefox
Ich hätte auch gerne wieder einen funktionalen jeelink Adapter -
@rolandm
War
ZULETZT ONLINE 19. MAI 2021 -
@thomas-braun sagte in Jeelink Adapter startet nicht mehr:
@chris76e
Klar. Schau in meiner Signatur, da steht drin wie man es macht.Ganz verstanden habe ich es nicht. Früher stand immer dabei, dass man die alte Node komplett deinstallieren sollte. Das Vorgehen finde ich in den neueren Anleitungen nicht mehr.
Reicht jetzt einfach bei installiertem 14er die Eingabe von unten stehenden Befehlen, wie es in den neueren Anleitungen steht und die 14er ist durch die 12er ersetzt???
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejs
-
Geht nicht, in deinem Fall.
Die node12 muss von Hand gezielt angegeben werden.
Also den Eintrag zu node14 in der nodesource.list auskommentieren oder durch 12 ersetzen und dann die genaue Version 12 installieren. -
@thomas-braun sagte in Jeelink Adapter startet nicht mehr:
Geht nicht, in deinem Fall.
Die node12 muss von Hand gezielt angegeben werden.
Also den Eintrag zu node14 in der nodesource.list auskommentieren oder durch 12 ersetzen und dann die genaue Version 12 installieren.Sorry...
Meinte ich auch...
Hatte vergessen die 14 durch 12 zu ersetzen -
@berchemer
Geht aber trotzdem nicht. Niedrigere Versionsnummern müssen explizit angegeben werden. Wir genau steht in meinem How To drin. -
Sorry, aber bin mit der Anleitung nicht klar gekommen
Für mich hat es funktioniert indem ich die nodejs 14 komplett deinstalliert und danach die 12er neu installiert habe.cd /opt/iobroker iob stop sudo apt-get --purge remove nodejs sudo apt-get autoremove sudo reboot
cd /opt/iobroker iob stop curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs sudo reboot
Nun habe ich die Ausgaben:
node -v v12.22.7 npm -v 6.14.15
Das ist ja schon mal schön.
Ändert aber nicht an der unschönen folgenden Ausgabe im Log, wenn ich versuche den Jeelink-Adapter zu starten:
2021-11-26 10:00:27.707 error instance system.adapter.jeelink.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2021-11-26 10:00:27.707 error Caught by controller[0]: } 2021-11-26 10:00:27.707 error Caught by controller[0]: ] 2021-11-26 10:00:27.707 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/binding/node-v72-linux-x64/bindings.node' 2021-11-26 10:00:27.707 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/compiled/12.22.7/linux/x64/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/default/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Release/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Release/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Debug/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Debug/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Release/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Debug/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: tries: [ 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) { 2021-11-26 10:00:27.705 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/index.js:14:22) 2021-11-26 10:00:27.705 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/linux.js:1:36) 2021-11-26 10:00:27.705 error Caught by controller[0]: at bindings (/opt/iobroker/node_modules/bindings/bindings.js:126:9) 2021-11-26 10:00:27.705 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/binding/node-v72-linux-x64/bindings.node 2021-11-26 10:00:27.705 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node 2021-11-26 10:00:27.705 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/compiled/12.22.7/linux/x64/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/default/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Release/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Release/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Debug/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Debug/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Release/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Debug/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: Error: Could not locate the bindings file. Tried: 2021-11-26 10:00:27.703 error Caught by controller[0]: ^ 2021-11-26 10:00:27.703 error Caught by controller[0]: throw err; 2021-11-26 10:00:27.703 error Caught by controller[0]: /opt/iobroker/node_modules/bindings/bindings.js:135 2021-11-26 10:00:27.577 info instance system.adapter.jeelink.0 started with pid 12700
Hätte hier Jemand eine Lösung für???
-
@berchemer sagte in Jeelink Adapter startet nicht mehr:
Sorry, aber bin mit der Anleitung nicht klar gekommen
Konkret?
-
@thomas-braun sagte in Jeelink Adapter startet nicht mehr:
@berchemer sagte in Jeelink Adapter startet nicht mehr:
Sorry, aber bin mit der Anleitung nicht klar gekommen
Konkret?
Mit den Änderungen in der Datei und so weiter... Vielleicht war ich auch nicht präzise genug. Ändern in der Datei in 12 statt 14 hat nicht zu den von mir gewünschten Erfolgen geführt oder wie auch immer. Soll keine Kritik sein. Wird sicherlich an meiner Ungeduld gelegen haben
-
Ich fürchte besser kann ich das nicht beschreiben. Es steht jeder wesentliche Befehl für eine gezielte Installation einer bestimmten Versionsnummer drin.
Zum aktuellen Problem: Da muss das binding neugebaut werden.
-
@thomas-braun sagte in Jeelink Adapter startet nicht mehr:
Ich fürchte besser kann ich das nicht beschreiben. Es steht jeder wesentliche Befehl für eine gezielte Installation einer bestimmten Versionsnummer drin.
Wie gesagt, war ich wahrscheinlich zu ungenau
Zum aktuellen Problem: Da muss das binding neugebaut werden.
Hier nehme ich gerne Tipps an, wie ich das machen sollte.
Möglicherweise war es dann gar kein 12er oder 14er NodeJS-Problem und es könnte das Binding auch mit einer 14er neu aufgebaut werden???
-
Mir ist schon klar, dass man eher nicht pushen sollte, aber gibt es nicht bitte Jemanden, der kurz beschreiben kann, wie man das "Binding-Neu-Erstellen" - hier im Zusammenhang mit den Jeelink-Adapter nach dem Downgrade auf 12er NodeJS - beschreiben kann???
Habe hier zwischenzeitlich einiges an Skripten geändert und will nicht unbedingt nach dem Rückspielen des Backup vom Wochenende (mit funktionierendem Jeelink) alle Skripte erneut anfassen und korrigieren -
@berchemer sagte in Jeelink Adapter startet nicht mehr:
Ändert aber nichts an der unschönen folgenden Ausgabe im Log, wenn ich versuche den Jeelink-Adapter zu starten:
2021-11-26 10:00:27.707 error instance system.adapter.jeelink.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2021-11-26 10:00:27.707 error Caught by controller[0]: } 2021-11-26 10:00:27.707 error Caught by controller[0]: ] 2021-11-26 10:00:27.707 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/binding/node-v72-linux-x64/bindings.node' 2021-11-26 10:00:27.707 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/compiled/12.22.7/linux/x64/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/default/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Release/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Release/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Debug/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Debug/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Release/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Debug/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/bindings.node', 2021-11-26 10:00:27.706 error Caught by controller[0]: tries: [ 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) { 2021-11-26 10:00:27.705 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/index.js:14:22) 2021-11-26 10:00:27.705 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) 2021-11-26 10:00:27.705 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/linux.js:1:36) 2021-11-26 10:00:27.705 error Caught by controller[0]: at bindings (/opt/iobroker/node_modules/bindings/bindings.js:126:9) 2021-11-26 10:00:27.705 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/lib/binding/node-v72-linux-x64/bindings.node 2021-11-26 10:00:27.705 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node 2021-11-26 10:00:27.705 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/compiled/12.22.7/linux/x64/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/default/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Release/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Release/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/Debug/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/out/Debug/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Release/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/Debug/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings/build/bindings.node 2021-11-26 10:00:27.704 error Caught by controller[0]: Error: Could not locate the bindings file. Tried: 2021-11-26 10:00:27.703 error Caught by controller[0]: ^ 2021-11-26 10:00:27.703 error Caught by controller[0]: throw err; 2021-11-26 10:00:27.703 error Caught by controller[0]: /opt/iobroker/node_modules/bindings/bindings.js:135 2021-11-26 10:00:27.577 info instance system.adapter.jeelink.0 started with pid 12700
Hätte hier Jemand eine Lösung für???
Ich habe jetzt für mich die Lösung gefunden, nachdem ich mich durch unterschiedliche Beiträge durchgewühlt habe. Falls es einem Anderen hilft:
In dem oberen Beispiel hatte ich ja auf NodeJs 12.x downgedatet, um den Jeelink-Adapter weiter nutzen zu können. danach kamen immer noch die Fehlermeldungen beim Start des Jeelink-Adapters, wie nach dem Upgrade auf nodejs 14.x und der Adapter startete nicht mehr.
Mit nodejs 12.x habe ich jetzt Folgendes eingegeben
cd /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialport/bindings npm install --production
und nach eine reboot lief der Jeelink-Adapter wieder an.
Für mich also für den Moment alles wieder gut.Wenn ich Zeit habe versuche ich mal erneut das Update auf 14.x und gehe erneut so vor, wie oben beschrieben. Vielleicht geht der Jeelink-Adapter dann ja auch mit der 14.x
Sollte das Jemand vor mir probieren, wäre es schön, die Reaktion des Systems hier auch wieder zu geben, damit man sich ggf. doppelte Arbeit sparen kannSchönen Sonntag noch
-
mit 14.x funktioniert es bei mir nicht
> @serialport/bindings@2.0.8 install /opt/iobroker/node_modules/iobroker.jeelink /node_modules/@serialport/bindings > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=14.18.1 runtime =node arch=x64 libc= platform=linux) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@ser ialport/bindings/build“ wird betreten CXX(target) Release/obj.target/bindings/src/serialport.o ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_ME THOD_ARGS_TYPE)’: ../src/serialport.cpp:78:69: warning: cast between incompatible function types f rom ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {a ka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOp en); ^~~~~~~~~~~ ~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_ METHOD_ARGS_TYPE)’: ../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUp date); ^~~~~~~~~~~ ~~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_M ETHOD_ARGS_TYPE)’: ../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterCl ose); ^~~~~~~~~~~ ~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_M ETHOD_ARGS_TYPE)’: ../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFl ush); ^~~~~~~~~~~ ~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_MET HOD_ARGS_TYPE)’: ../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet ); ^~~~~~~~~~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_MET HOD_ARGS_TYPE)’: ../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet ); ^~~~~~~~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’: ../src/serialport.cpp:329:96: error: no matching function for call to ‘v8::Objec t::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’ an::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts)); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h :67, from ../node_modules/nan/nan.h:58, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value> , v8::Local<v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candid ate expects 3 arguments, 2 provided /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local< v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candid ate expects 3 arguments, 2 provided ../src/serialport.cpp:330:96: error: no matching function for call to ‘v8::Objec t::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’ an::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr)); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h :67, from ../node_modules/nan/nan.h:58, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value> , v8::Local<v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candid ate expects 3 arguments, 2 provided /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local< v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candid ate expects 3 arguments, 2 provided ../src/serialport.cpp:331:96: error: no matching function for call to ‘v8::Objec t::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’ an::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd)); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h :67, from ../node_modules/nan/nan.h:58, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value> , v8::Local<v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candid ate expects 3 arguments, 2 provided /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local< v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candid ate expects 3 arguments, 2 provided ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan: :NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] eue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGe tBaudRate); ^~~~~~~~~~~ ~~~~~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’: ../src/serialport.cpp:378:106: error: no matching function for call to ‘v8::Obje ct::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’ ::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate)); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h :67, from ../node_modules/nan/nan.h:58, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value> , v8::Local<v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candid ate expects 3 arguments, 2 provided /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candidat e: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local< v8::Value>)’ V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^~~ /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candid ate expects 3 arguments, 2 provided ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_M ETHOD_ARGS_TYPE)’: ../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ { aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDr ain); ^~~~~~~~~~~ ~~~ ../src/serialport.cpp: At global scope: ../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { ^ ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { ^ In file included from ../node_modules/nan/nan.h:58, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:787:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION _ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_fu nc’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast -function-type] (node::addon_register_func) (regfunc), \ ^ /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:821:3: note: in expan sion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~ ../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(serialport, init); ^~~~~~~~~~~ make: *** [bindings.target.mk:114: Release/obj.target/bindings/src/serialport.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/iobroker.jeelink/node_modules/@ser ialport/bindings/build“ wird verlassen gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module s/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:282:12) gyp ERR! System Linux 4.19.0-18-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/iobroker.jeelink/node_modules/@serialpor t/bindings gyp ERR! node -v v14.18.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @serialport/bindings@2.0.8 install: `prebuild-install --tag-prefix @ser ialport/bindings@ || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @serialport/bindings@2.0.8 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
-
Kann mal Jemand den Adapter von meinen Git aus Testen?
Habe keine Hardware dafür da..
https://github.com/o0shojo0o/ioBroker.jeelink#Edit
Ich habe mir mal einen JeeLink Gateway gelötet und es tut wieder mit einer neuen Version des Serial Paketes und Node v14.
Habe mal einen Pull requests im Git erstellt! -
Ich hab deine Version unter V12 installiert, danach auf die V14 umgestellt.
Das Rebuild funktionierte automatisch.
Daumen hoch. Deine Version läuft.Vielen Dank