NEWS
iobroker und adapter von GitHub (panasonic comfort cloud)
-
Hallo,
ich möchte gerne folgenden Adapter in iobroker haben (https://github.com/marc2016/ioBroker.panasonic-comfort-cloud). Ich kann den Adapter auch via URL hinzufügen und eine Instanz erstellen. Die Instanz selbst erwartet nur Benutzername und Passwort.
Wenn ich die Instanz jedoch starte, dann bekomme ich folgende Fehlermeldung:
2021-07-01 13:02:35.449 - error: host.iobroker Caught by controller[0]: internal/modules/cjs/loader.js:303 2021-07-01 13:02:35.451 - error: host.iobroker Caught by controller[0]: throw err; 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: ^ 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/index.js'. Please verify that the package.json has a valid "main" entry 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: at tryPackage (internal/modules/cjs/loader.js:295:19) 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: at Function.Module._findPath (internal/modules/cjs/loader.js:508:18) 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:802:27) 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27) 2021-07-01 13:02:35.452 - error: host.iobroker Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19) 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18) 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:18:42) 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) { 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: code: 'MODULE_NOT_FOUND', 2021-07-01 13:02:35.453 - error: host.iobroker Caught by controller[0]: path: '/opt/iobroker/node_modules/panasonic-comfort-cloud-client/package.json', 2021-07-01 13:02:35.454 - error: host.iobroker Caught by controller[0]: requestPath: 'panasonic-comfort-cloud-client' 2021-07-01 13:02:35.454 - error: host.iobroker Caught by controller[0]: } 2021-07-01 13:02:35.454 - error: host.iobroker instance system.adapter.panasonic-comfort-cloud.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
Aller anderen Adapter, die ich via repository von iobroker (whatsapp, telegram, etc.) installiert habe, funktionieren ohne Probleme.
iobroker ist bei mir auf der Synology im Docker von buanet installiert. Die Modules sind in /volume1/docker/iobroker/... installiert. Wenn ich über das Webterminal in iobroker gehe, dann gab es das Verzeichnis /opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/index.js "dist" nicht. Erstelle ich das manuell und kopiere den Inhalt von src nach dist, dann bekomme ich die gleich Fehlermeldung.
Irgendwelche Ideen?
Danke
-
@pseudoreal sagte in iobroker und adapter von GitHub:
Please verify that the package.json has a valid "main" entry
hast du das gemacht?
Und
Changelog
0.0.1
(marc) initial release
hast du auch gesehen?
Bist du sicher, ob der Adapter überhaupt fertig ist?Die Installation von Github sollte nur von Experten durchgeführt werden. Hier befinden sich nur Beta-Versionen, oder was noch schlimmer ist, unfertige Versionen
https://www.iobroker.net/#de/documentation/tutorial/adapter.md
-
Die main entry zeigt auf "./dist/src/index.js", die gibt es nicht sondern nur eine index.ts
Gemäß der Github Diskussion müsste es eigentlich klappen. Ich habe mich an die Anleitung gehalten. Es wird auch die Version 1.2.6 installiert
-
@pseudoreal sagte in iobroker und adapter von GitHub:
Gemäß der Github Diskussion
die ist aber nicht im Adapterrepo.
Vielleicht solltest du dort ein issue eröffnen, damit der Entwickler es auch liest.
-
issue habe ich schon aufgemacht. Ich dachte nur, vielleicht hatte jemand eine ähnliche Konstellation und es wäre mit einem oder zwei Befehlen erledigt.
Gruß
EDIT: ich konnte es so zum Laufen bekommen:
- auf synology in den docker container gehen und dort das Terminal starten
- im Terminal eingeben:
cd /opt/iobroker npm install iobroker.panasonic-comfort-cloud iobroker add panasonic-comfort-cloud
- im iobroker die Zugangsdaten eingeben