NEWS
Cannot load jsonConfig
-
Hallo,
ich kann leider in der Entwicklung kein neues Thema eröffnen, deswegen muss ich hier fragen.
Ich versuche vergeblich meinen eigenen Adapter mit Custom Setting zu schreiben. Dazu habe ichnpx @iobroker/create-adapter@latest
ausgeführt und das Interview beantwortet. Danach wurde mir ein Adapter erstellt, aber immer wenn ich unterObjects
auf das Zahnrad eines States klicke, bekomme ich den FehlerCannot load jsonConfig of json-expand: Not exists
. Ich habe die Datei aber im Verzeichnisadmin/jsonConfig.xml
, welches automatisch generiert wurde. Ich hatte nach der Generierung nichts geändert, sondern direkt den dev-server gestartet.
Hat jemand eine Idee woran das liegen kann?{ "cli": true, "target": "directory", "adapterName": "json-expand", "title": "jsonExpand", "description": "Expand json state values into individual states", "keywords": ["json"], "expert": "yes", "features": ["adapter"], "adminFeatures": ["custom"], "type": "utility", "startMode": "once", "connectionType": "local", "dataSource": "push", "connectionIndicator": "no", "language": "TypeScript", "nodeVersion": "16", "adminUi": "json", "tools": ["ESLint", "Prettier", "code coverage", "devcontainer"], "releaseScript": "yes", "devServer": "yes", "devServerPort": 8081, "indentation": "Space (4)", "quotes": "double", "es6class": "yes", "authorName": "theknut", "authorGithub": "theknut", "authorEmail": "theknutcoding@gmail.com", "gitRemoteProtocol": "HTTPS", "gitCommit": "yes", "defaultBranch": "main", "license": "MIT License", "dependabot": "yes", "creatorVersion": "2.5.0" }
{ "common": { "name": "json-expand", "version": "0.0.1", "news": { "0.0.1": { "en": "initial release", "de": "Erstveröffentlichung", "ru": "Начальная версия", "pt": "lançamento inicial", "nl": "Eerste uitgave", "fr": "Première version", "it": "Versione iniziale", "es": "Versión inicial", "pl": "Pierwsze wydanie", "uk": "Початкова версія", "zh-cn": "首次出版" } }, "title": "jsonExpand", "titleLang": { "en": "jsonExpand", "de": "jsonExpand", "ru": "jsonРазвернуть", "pt": "jsonExpandir", "nl": "jsonExpand", "fr": "jsonDévelopper", "it": "jsonEspandi", "es": "jsonAmpliar", "pl": "jsonRozwiń", "uk": "jsonExpand", "zh-cn": "json展开" }, "desc": { "en": "Expand json state values into individual states", "de": "Erweitern Sie JSON-Statuswerte in einzelne Status", "ru": "Развернуть значения состояния json на отдельные состояния", "pt": "Expanda os valores do estado json em estados individuais", "nl": "Breid json-statuswaarden uit naar individuele staten", "fr": "Développez les valeurs de l'état JSON dans des états individuels", "it": "Espandi i valori dello stato JSON nei singoli stati", "es": "Expandir los valores de estado json a estados individuales", "pl": "Rozwiń wartości stanu JSON na poszczególne stany", "uk": "Розкрийте значення стану json на окремі стани", "zh-cn": "将 json 状态值扩展为各个状态" }, "authors": ["theknut <theknutcoding@gmail.com>"], "keywords": ["json"], "license": "MIT", "platform": "Javascript/Node.js", "main": "build/main.js", "icon": "json-expand.png", "enabled": true, "extIcon": "https://raw.githubusercontent.com/theknut/ioBroker.json-expand/main/admin/json-expand.png", "readme": "https://github.com/theknut/ioBroker.json-expand/blob/main/README.md", "loglevel": "info", "mode": "once", "type": "utility", "compact": true, "connectionType": "local", "dataSource": "push", "adminUI": { "config": "json" }, "supportCustoms": true, "dependencies": [ { "js-controller": ">=3.3.22" } ], "globalDependencies": [ { "admin": ">=5.1.13" } ] }, "native": { "option1": true, "option2": "42" }, "objects": [], "instanceObjects": [] } ´´´
-
@theknut sagte in Cannot load jsonConfig:
Ich habe die Datei aber im Verzeichnis
admin/jsonConfig.xml
, welches automatisch generiert wurdeWas soll das für eine Datei sein? Die heißt
admin/jsonConfig.json
. Der dev-server erkennt die Änderungen in der jsonConfig automatisch und aktualisiert die Oberfläche.Eventuell hilft Dir ein erneutes
dev-server upload
-
@haus-automatisierung Ja sorry, typo. Sie heißt
.json
Offtopic: Ich hab dein Video angeschaut, vielen Dank dafür! Mit dem Container kann man wesentlich schneller arbeiten, hab keine neue VM und Co. gemacht.
-
@haus-automatisierung DANKE! Der Upload hat geholfen!