Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Cannot load jsonConfig

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Cannot load jsonConfig

    This topic has been deleted. Only users with topic management privileges can see it.
    • theknut
      theknut last edited by theknut

      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 ich npx @iobroker/create-adapter@latest ausgeführt und das Interview beantwortet. Danach wurde mir ein Adapter erstellt, aber immer wenn ich unter Objects auf das Zahnrad eines States klicke, bekomme ich den Fehler Cannot load jsonConfig of json-expand: Not exists. Ich habe die Datei aber im Verzeichnis admin/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": []
      }
      ´´´
      haus-automatisierung 1 Reply Last reply Reply Quote 0
      • haus-automatisierung
        haus-automatisierung Developer Most Active @theknut last edited by haus-automatisierung

        @theknut sagte in Cannot load jsonConfig:

        Ich habe die Datei aber im Verzeichnis admin/jsonConfig.xml, welches automatisch generiert wurde

        Was 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

        theknut 2 Replies Last reply Reply Quote 1
        • theknut
          theknut @haus-automatisierung last edited by

          @haus-automatisierung Ja sorry, typo. Sie heißt .json
          bd19126e-eeec-4090-b78d-c55a72e45ce7-image.png

          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.

          1 Reply Last reply Reply Quote 0
          • theknut
            theknut @haus-automatisierung last edited by

            @haus-automatisierung DANKE! Der Upload hat geholfen!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate
            FAQ Cloud / IOT
            HowTo: Node.js-Update
            HowTo: Backup/Restore
            Downloads
            BLOG

            867
            Online

            32.0k
            Users

            80.5k
            Topics

            1.3m
            Posts

            adapter creator adapter problem
            2
            4
            152
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo