@david-g
Danke, ich habs mit iFrame und Vis nun endlich hingekriegt.
link text
Einen Stream einbinden (ist eine Netatmo presence) war mir dann etwas zu kompliziert.
@david-g
Danke, ich habs mit iFrame und Vis nun endlich hingekriegt.
link text
Einen Stream einbinden (ist eine Netatmo presence) war mir dann etwas zu kompliziert.
@garfonso
Hi
Ich suche eine Lösung für genau den Fall der hier beschrieben wird. Irgendwie bin ich auf dem Holzweg mit dem Datatype "image" Wie mache ich das?
Ich habe nur Datatype "File" zur Auswahl.
Gruss
Michael
@thomas-braun
Kernel wurde auf 6.1 aktualisiert. An 64bit habe ich mich aus Zeitgründen nicht herangewagt. Anyway, aus meiner Sicht immer klar, dass es nicht an einer bestimmten Version liegen kann.
Ich konnte es lösen, cacheValue wurde nicht auf null geprüft.
das Problem war folgender Schnipsel im main.js
if (cacheValue ....
cacheChanged(stateName, callback) {
// save level if we are switching off
if (stateName === this.parameters.levelState) {
const cacheValue = this.readValueFromCache(stateName);
if (cacheValue && parseFloat(cacheValue.val) > 0) {
this.lastOnLevel = cacheValue;
}
}
super.cacheChanged(stateName, callback);
}
@thomas-braun
nodefix habe ich gemacht. Ist den 64bit die Ursache? Es hat ja vor kurzem noch funktioniert. Es klingt mir nach irgendeinem Javascript Problem, das ist aber leider nicht mein Spezialgebiet.
hier zur Vollständigkeit das aktuelle Summary:
======================= SUMMARY =======================
v.2023-10-10
Static hostname: jportal1
Icon name: computer
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 5.10.103-v7l+
Architecture: arm
Installation: native
Kernel: armv7l
Userland: armhf
Timezone: Europe/Zurich (CEST, +0200)
User-ID: 1000
X-Server: false
Boot Target: graphical.target
Pending OS-Updates: 0
Pending iob updates: 0
Nodejs-Installation: /usr/bin/nodejs v18.18.1
/usr/bin/node v18.18.1
/usr/bin/npm 9.8.1
/usr/bin/npx 9.8.1
/usr/bin/corepack 0.19.0
Recommended versions are nodejs 18.18.1 and npm 9.8.1
Your nodejs installation is correct
MEMORY:
total used free shared buff/cache available
Mem: 4.0G 1.4G 1.9G 1.2M 903M 2.6G
Swap: 104M 0B 104M
Total: 4.1G 1.4G 2.0G
Active iob-Instances: 27
Active repo(s): Stable (default)
ioBroker Core: js-controller 5.0.12
admin 6.10.1
ioBroker Status: iobroker is running on this host.
Objects type: jsonl
States type: jsonl
Status admin and web instance:
+ system.adapter.admin.0 : admin : jportal1 - enabled, port: 8081, bind: 0.0.0.0, run as: admin
+ system.adapter.web.0 : web : jportal1 - enabled, port: 8082, bind: 0.0.0.0, run as: admin
Objects: 10689
States: 8913
Size of iob-Database:
24M /opt/iobroker/iobroker-data/objects.jsonl
8.8M /opt/iobroker/iobroker-data/objects.json.migrated
8.8M /opt/iobroker/iobroker-data/objects.json.bak.migrated
19M /opt/iobroker/iobroker-data/states.jsonl
1.2M /opt/iobroker/iobroker-data/states.json.migrated
1.2M /opt/iobroker/iobroker-data/states.json.bak.migrated
=================== END OF SUMMARY ====================
@thomas-braun
so, ich habs durchgezogen, ging problemlos, insbesondere dank diesem super Forum
yahka.0 2023-10-12 21:59:42.981 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
yahka.0 2023-10-12 21:59:42.980 info terminating
yahka.0 2023-10-12 21:59:42.979 info cleaned up ...
yahka.0 2023-10-12 21:59:42.979 info cleaning up ...
yahka.0 2023-10-12 21:59:42.943 error Cannot read properties of null (reading 'val')
yahka.0 2023-10-12 21:59:42.943 error TypeError: Cannot read properties of null (reading 'val') at TIoBrokerInOutFunction_Homematic_Dimmer_On.cacheChanged (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.functions/iofunc.homematic.dimmer.ts:38:39) at TIoBrokerInOutFunction_Homematic_Dimmer_On.subscriptionEvent (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.functions/functions.base.ts:61:14) at changeInterceptor (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:145:75) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:160:21) at processImmediate (node:internal/timers:478:21)
yahka.0 2023-10-12 21:59:42.941 error uncaught exception: Cannot read properties of null (reading 'val')
iob diag:
======================= SUMMARY =======================
v.2023-10-10
Static hostname: jportal1
Icon name: computer
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 5.10.103-v7l+
Architecture: arm
Installation: native
Kernel: armv7l
Userland: armhf
Timezone: Europe/Zurich (CEST, +0200)
User-ID: 1000
X-Server: false
Boot Target: graphical.target
Pending OS-Updates: 0
Pending iob updates: 1
Nodejs-Installation: /usr/bin/nodejs v18.17.1
/usr/bin/node v18.17.1
/usr/bin/npm 9.6.7
/usr/bin/npx 9.6.7
/usr/bin/corepack 0.18.0
Recommended versions are nodejs 18.18.1 and npm 9.8.1
Your nodejs installation is correct
MEMORY:
total used free shared buff/cache available
Mem: 4.0G 1.5G 1.6G 1.2M 1.1G 2.6G
Swap: 104M 0B 104M
Total: 4.1G 1.5G 1.7G
Active iob-Instances: 28
Active repo(s): Stable (default)
ioBroker Core: js-controller 5.0.12
admin 6.10.1
ioBroker Status: iobroker is running on this host.
Objects type: jsonl
States type: jsonl
Status admin and web instance:
+ system.adapter.admin.0 : admin : jportal1 - enabled, port: 8081, bind: 0.0.0.0, run as: admin
+ system.adapter.web.0 : web : jportal1 - enabled, port: 8082, bind: 0.0.0.0, run as: admin
Objects: 10654
States: 8881
Size of iob-Database:
19M /opt/iobroker/iobroker-data/objects.jsonl
8.8M /opt/iobroker/iobroker-data/objects.json.migrated
8.8M /opt/iobroker/iobroker-data/objects.json.bak.migrated
12M /opt/iobroker/iobroker-data/states.jsonl
1.2M /opt/iobroker/iobroker-data/states.json.migrated
1.2M /opt/iobroker/iobroker-data/states.json.bak.migrated
=================== END OF SUMMARY ====================
@thomas-braun
hab ich mittelfristig vor, aber ist das die Ursache?
sorry, ist korrigiert.
genügt das Summary?
======================= SUMMARY =======================
v.2023-10-10
Static hostname: jportal1
Icon name: computer
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 5.10.103-v7l+
Architecture: arm
Installation: native
Kernel: armv7l
Userland: armhf
Timezone: Europe/Zurich (CEST, +0200)
User-ID: 1000
X-Server: false
Boot Target: graphical.target
Pending OS-Updates: 0
Pending iob updates: 1
Nodejs-Installation: /usr/bin/nodejs v18.17.1
/usr/bin/node v18.17.1
/usr/bin/npm 9.6.7
/usr/bin/npx 9.6.7
/usr/bin/corepack 0.18.0
Recommended versions are nodejs 18.18.1 and npm 9.8.1
Your nodejs installation is correct
MEMORY:
total used free shared buff/cache available
Mem: 3.8G 1.6G 736M 6.0M 1.5G 2.1G
Swap: 99M 4.0M 95M
Total: 3.9G 1.6G 832M
Active iob-Instances: 27
Active repo(s): Stable (default)
ioBroker Core: js-controller 5.0.12
admin 6.10.1
ioBroker Status: iobroker is running on this host.
Objects type: jsonl
States type: jsonl
Status admin and web instance:
+ system.adapter.admin.0 : admin : jportal1 - enabled, port: 8081, bind: 0.0.0.0, run as: admin
+ system.adapter.web.0 : web : jportal1 - enabled, port: 8082, bind: 0.0.0.0, run as: admin
Objects: 10558
States: 8763
Size of iob-Database:
25M /opt/iobroker/iobroker-data/objects.jsonl
8.8M /opt/iobroker/iobroker-data/objects.json.migrated
8.8M /opt/iobroker/iobroker-data/objects.json.bak.migrated
16M /opt/iobroker/iobroker-data/states.jsonl
1.2M /opt/iobroker/iobroker-data/states.json.migrated
1.2M /opt/iobroker/iobroker-data/states.json.bak.migrated
=================== END OF SUMMARY ====================
was ich sonst grad in iob diag noch gesehen habe:
Errors in npm tree:
npm ERR! code ELSPROBLEMS
npm ERR! missing: jimp@^0.22.10, required by iobroker.javascript@7.1.4
npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-11T21_05_40_796Z-debug-0.log
Hallo
Ich habe die Anfrage hier bereits gestellt, jedoch scheint auf Github aktuell nicht viel zu passieren und evtl. kommt ist die Fehlerursache auch woanders.
Folgender Fall:
Ich nutze meine IoBroker instanz schon recht lange, auch Yahka hat immer gut funktioniert. Vorgestern habe lediglich einen Shelly Device hinzugefügt und anschliessend festgestellt, dass Yahka nicht mehr gut. Bevor ich an die Fehlersuche ging habe ich Linux, IoBroker und sämtliche Adapter auf den aktuellen Stand gebracht. Das Problem blieb, ich kämpfe mit folgender Fehlermeldung:
host.jportal1 2023-10-09 23:25:12.265 error instance system.adapter.yahka.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
yahka.0 2023-10-09 23:25:12.041 info terminating
yahka.0 2023-10-09 23:25:11.539 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
yahka.0 2023-10-09 23:25:11.538 info terminating
yahka.0 2023-10-09 23:25:11.537 info cleaned up ...
yahka.0 2023-10-09 23:25:11.537 info cleaning up ...
yahka.0 2023-10-09 23:25:11.508 error Cannot read properties of null (reading 'val')
yahka.0 2023-10-09 23:25:11.508 error TypeError: Cannot read properties of null (reading 'val') at TIoBrokerInOutFunction_Homematic_Dimmer_On.cacheChanged (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.functions/iofunc.homematic.dimmer.ts:38:39) at TIoBrokerInOutFunction_Homematic_Dimmer_On.subscriptionEvent (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.functions/functions.base.ts:61:14) at changeInterceptor (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:145:75) at Immediate. (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:160:21) at processImmediate (node:internal/timers:478:21)
yahka.0 2023-10-09 23:25:11.505 error uncaught exception: Cannot read properties of null (reading 'val')
Ich habe inzwischen auch schon sämtliche verfügbaren Yahka Versionen durchprobiert, ohne Erfolg.
Systemdata | Bitte Ausfüllen |
---|---|
Hardwaresystem: | Pi40 |
Arbeitsspeicher: | 4GB |
Festplattenart: | SD-Karte |
Betriebssystem: | Debian, aktueller Patchstand |
Nodejs-Version: | 18.17.1 |
NPM-Version: | 9.6.7 |
Installationsart: | Skript |
Image genutzt: | weiss nicht mehr |
@oliverio sorry, wird gleich geändert. beim Reinkopieren habe ich noch daran gedacht.
Hallo
Ich konnte es damit einigermassen hinwürgen:
https://forum.iobroker.net/topic/5472/frage-curl-befehl-ausführen
ob sinnvoll kann ich nicht sagen. funktioniert aber für den Moment
mein Code:
var request = require('request');
var options;
options = {
url: 'https://portal.kleverkey.com/api/v1/users/me/permissions/794/activate',
headers: {
'accept': '*/*',
'Authorization': 'ApiKey xxxx',
'Content-Type': 'application/json-patch+json'
},
body: '{\"lockActivationMode\":3}'
}
request.put(options, function(error, response, body) {
if (error) {
log("Fehler aufgetreten: " + error);
} else {
log("Antwort erhalten: " + body + ".");
}
}
});