Danke für den Hinweis, hatte tatsächlich den socket.io vergessen zu installieren. Danke
NEWS
Best posts made by eddieari
-
RE: Test Adapter iQontrol 2.0.x Vis (Entwicklungs-Thread)
Latest posts made by eddieari
-
RE: gyp ERR! build error
@thomas-braun sagte in gyp ERR! build error:
Hast du zufällig den terminal-Adapter installiert?
Schubs den mal aus dem System raus. Ist ohnehin meist entbehrlich, ein Terminal hast du auf deinem Pi ja eh laufen, da braucht es nicht auch noch einen Adapter.Hallo Thomas,
dank deines Tipps ist der Fehler jetzt weg.
Vielen Dank dafür.
Kurze Frage: Wie bist du darauf gekommen.Gruß
Thomas -
gyp ERR! build error
Hallo,
bei jedem Adapterupdate bekomme ich eine ähnliche Fehlermeldung wie diese:
$ ./iobroker upgrade daswetter Update daswetter from @3.0.5 to @3.0.6 host.raspberrypi Adapter "system.adapter.daswetter.0" is stopped. NPM version: 6.14.12 npm install iobroker.daswetter@3.0.6 --loglevel error --prefix "/opt/iobroker" (System call) ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1026:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1026:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:../authenticate_pam.cc:147:83: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc: At global scope:../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) { ^~~~~~../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) { ^~~~~~ rand_r../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> exports) { ^../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) { ^~~~~~~In file included from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:736:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:736:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~ make: *** [authenticate_pam.target.mk:109: Release/obj.target/authenticate_pam/authenticate_pam.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:314:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 5.10.17-v7l+gyp 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/authenticate-pamgyp ERR! node -v v12.22.1gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok Update "system.adapter.daswetter.0" upload [450] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/galeria2-Beaufort/75.png icons/viento-wind/galeria2-Beaufort/75.png image/png upload [400] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/galeria2-Beaufort/3.png icons/viento-wind/galeria2-Beaufort/3.png image/png upload [350] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/galeria1/16.png icons/viento-wind/galeria1/16.png image/png upload [300] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/Beaufort-White/60.png icons/viento-wind/Beaufort-White/60.png image/png upload [250] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/Beaufort-White/15.png icons/viento-wind/Beaufort-White/15.png image/png upload [200] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria6/11.svg icons/tiempo-weather/galeria6/11.svg image/svg+xml upload [150] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria5/PNG/White/9.png icons/tiempo-weather/galeria5/PNG/White/9.png image/png upload [100] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria4/3.png icons/tiempo-weather/galeria4/3.png image/png upload [90] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria4/11.png icons/tiempo-weather/galeria4/11.png image/png upload [80] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria3/2.png icons/tiempo-weather/galeria3/2.png image/png upload [70] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria3/10.png icons/tiempo-weather/galeria3/10.png image/png upload [60] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria2/19.png icons/tiempo-weather/galeria2/19.png image/png upload [50] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria2/1.png icons/tiempo-weather/galeria2/1.png image/png upload [40] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria1/18.png icons/tiempo-weather/galeria1/18.png image/png upload [30] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/9.png icons/luna-moon/9.png image/png upload [20] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/26.png icons/luna-moon/26.png image/png upload [19] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/25.png icons/luna-moon/25.png image/png upload [18] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/24.png icons/luna-moon/24.png image/png upload [17] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/23.png icons/luna-moon/23.png image/png upload [16] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/22.png icons/luna-moon/22.png image/png upload [15] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/21.png icons/luna-moon/21.png image/png upload [14] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/20.png icons/luna-moon/20.png image/png upload [13] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/2.png icons/luna-moon/2.png image/png upload [12] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/19.png icons/luna-moon/19.png image/png upload [11] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/18.png icons/luna-moon/18.png image/png upload [10] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/17.png icons/luna-moon/17.png image/png upload [9] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/16.png icons/luna-moon/16.png image/png upload [8] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/15.png icons/luna-moon/15.png image/png upload [7] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/14.png icons/luna-moon/14.png image/png upload [6] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/13.png icons/luna-moon/13.png image/png upload [5] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/12.png icons/luna-moon/12.png image/png upload [4] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/11.png icons/luna-moon/11.png image/png upload [3] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/10.png icons/luna-moon/10.png image/png upload [2] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/1.png icons/luna-moon/1.png image/png upload [1] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/0.png icons/luna-moon/0.png image/png upload [0] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/daswettercom.png daswettercom.png image/png Adapter "daswetter" updated host.raspberrypi Adapter "system.adapter.daswetter.0" is started process exited with code 0
Die Updates laufen zwar durch, was gut ist.
Was muss ich tun, um diesen Fehler zu beheben?
Wie kann ich diesen zuküftig vermeiden?Danke für eure Hilfe.
Gruß
Thomas -
RE: Skript zeigt state "false" not found
@liv-in-sky sagte in Skript zeigt state "false" not found:
du darfst als OjectID nicht den Wert von nehmen - denn dann ist die id "false"
sondern:
Danke für deine Hilfe liv-in-sky. Das stimmt natürlich! Manchmal sieht man selber den Wald vor lauter Bäumen nicht
-
Skript zeigt state "false" not found
Hallo,
ich habe folgendes Blocky erstellt.
Leider bekomme ich eine Warnung und der Ablauf wird nicht ausgeführt
javascript.0 2021-04-28 08:37:47.751 warn (2708) at processTimers (internal/timers.js:497:7) javascript.0 2021-04-28 08:37:47.750 warn (2708) at listOnTimeout (internal/timers.js:556:17) javascript.0 2021-04-28 08:37:47.750 warn (2708) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1485:29) javascript.0 2021-04-28 08:37:47.750 warn (2708) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20) javascript.0 2021-04-28 08:37:47.749 warn (2708) State "false" not found javascript.0 2021-04-28 08:37:47.748 info (2708) script.js.common.Steuerungen.Bewässerung.Bewäserungzeit: registered 0 subscriptions and 0 schedules javascript.0 2021-04-28 08:37:47.748 warn (2708) at script.js.common.Steuerungen.Bewässerung.Bewäserungzeit:11:3 javascript.0 2021-04-28 08:37:47.748 warn (2708) at script.js.common.Steuerungen.Bewässerung.Bewäserungzeit:6:3 javascript.0 2021-04-28 08:37:47.747 warn (2708) at setStateDelayed (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1471:25) javascript.0 2021-04-28 08:37:47.747 warn (2708) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20) javascript.0 2021-04-28 08:37:47.745 warn (2708) State "false" not found javascript.0 2021-04-28 08:37:47.737 info (2708) Start javascript script.js.common.Steuerungen.Bewässerung.Bewäserungzeit
Hat jemand eine Idee woran das liegen könnte?
Danke
Thomas -
telegram Adapter startet ständig sporadisch neu
Hallo,
seit neustem habe ich ein sporadisches Starten des telegram adapters 1.7.0. Dies geht soweit, dass der Adapter zeitweise nicht mehr startet und manuell gestartet werden muss.
Der Log zeigt folgendes:
2021-02-23 09:45:21.468 - error: telegram.0 (29604) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2021-02-23 09:45:21.469 - error: telegram.0 (29604) unhandled promise rejection: ETELEGRAM: 403 Forbidden: bot can't initiate conversation with a user 2021-02-23 09:45:21.469 - error: telegram.0 (29604) Error: ETELEGRAM: 403 Forbidden: bot can't initiate conversation with a user at /opt/iobroker/node_modules/node-telegram-bot-api/src/telegram.js:284:15 at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:729:18) at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:461:21) 2021-02-23 09:45:21.469 - error: telegram.0 (29604) Exception-Code: ETELEGRAM: ETELEGRAM: 403 Forbidden: bot can't initiate conversation with a user
Ich hoffe jemand kann mir einen Hinweis geben, wie ich die Situation verbessere.
Gruß & Danke
Thomas -
Ring adapter keine Snapshots
Hallo mein Ring adapter (Version 1.1.3) funktioniert soweit, dass es den Video Live stream richtig ablegt. Allerdings nimmt er keinen Snapshot (jpg) auf. Hier kommt folgende Fehlermeldung im Log:
Kann mir da jemand weiterhelfen?
Gruß
Systemdata Bitte Ausfüllen Hardwaresystem: Pi4 Arbeitsspeicher: 4GB Festplattenart: SD-Karte Betriebssystem: raspian Node-Version: v12.18.3 Nodejs-Version: v12.18.3 NPM-Version: 6.14.6 Installationsart: Skript Image genutzt: Ja Ort/Name der Imagedatei: Link -
JS / Blocky Zeitsteuerung funktioniert nicht
Hallo,
wenn ich ein einfaches Skript mit Zeitsteuerung erstelle funktioniert dieses nicht.
Beispiel siehe Anhang.Ersetze ich das Zeitmodul mit einem anderem Trigger funktioniert es.
Für mich hat es fast den Anschein, als würde das Zeitsteuerungs Blocky / JS nicht funktionieren:Nutze:
Admin 4.0.5
Node.js: v12.16.2
NPM: 6.14.4
Script Engine 4.4.3Hoffe jemand kann da weiterhelfen.
Danke
-
Geräte vom Zigbee Adapter übertrage
Hallo,
hab das Problem, dass ich meinen Raspberry neu aufgesetzt habe. Hierbei habe ich die alte SD Karte und damit auch alle files. Nun würde ich gern die Geräte das zigbee adapters von alt auf neu übertragen. Gibt es da eine Möglichkeit? Danke vorab für eure Hilfe.
-
RE: Test Adapter iQontrol 2.0.x Vis (Entwicklungs-Thread)
Danke für den Hinweis, hatte tatsächlich den socket.io vergessen zu installieren. Danke
-
RE: Test Adapter iQontrol 2.0.x Vis (Entwicklungs-Thread)
Hallo,
nach der Installation von iQontrol bekomme ich nur einen Ladekreisel, wenn ich es starte.
Alle Maßnahmen des Trouble Shootings habe ich durchgeführt. Ohne Erfolg.
Die Console des Browsers gibt folgende Fehler aus:
Kann da jemand weiterhelfen?