Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Problem mit Schleife

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Problem mit Schleife

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

      Ich möchte die Daten aus dem Datenpunkt "sonos.0.root.192_168_2_174.queue" in eine html-Tabelle umwandeln und in einen eigenen Datenpunkt "javascript.0.Sonos.192_168_2_174.customQueueListHtml" schreiben.
      Es wird aber immer nur der letzte Wert aus der Liste in den eigenen Datenpunkt geschrieben.

      Datenpunkt sonos.0.root.192_168_2_174.queue

      {
        "type": "state",
        "common": {
          "def": "",
          "type": "string",
          "read": true,
          "write": false,
          "role": "state",
          "name": "Play queue"
        },
        "native": {},
        "from": "system.adapter.sonos.0",
        "user": "system.user.admin",
        "ts": 1711310802140,
        "_id": "sonos.0.root.192_168_2_174.queue",
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        }
      }
      

      Datenpunkt javascript.0.Sonos.192_168_2_174.customQueueListHtml

      {
        "common": {
          "name": "Custom QUEUE HTML List",
          "type": "string",
          "read": true,
          "write": true,
          "role": "state",
          "def": ""
        },
        "native": {},
        "type": "state",
        "_id": "javascript.0.Sonos.192_168_2_174.customQueueListHtml",
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        },
        "from": "system.adapter.admin.0",
        "user": "system.user.admin",
        "ts": 1711538620121
      }
      

      Das Blockly:
      Screenshot 2024-03-27 125038.png

      und die Log-Daten (die Problemstelle als Warning in gelb):
      Screenshot 2024-03-27 125230.png
      Offensichtlich "überschreibt das nächste i immer das verhergehende"

      Es wird nur eine Kleinigkeit sein - aber ich finde den Fehler nicht...

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Thomas123 0 last edited by paul53

        @thomas123-0 sagte: "überschreibt das nächste i immer das verhergehende"

        "setze lieder auf" überschreibt. Man muss an den Text tabelle anhängen.

        Thomas123 0 1 Reply Last reply Reply Quote 1
        • Thomas123 0
          Thomas123 0 @paul53 last edited by Thomas123 0

          @paul53
          kaum macht man es richtig, klappts auch 🙄

          Dankeschön

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

          Support us

          ioBroker
          Community Adapters
          Donate

          809
          Online

          32.0k
          Users

          80.4k
          Topics

          1.3m
          Posts

          2
          3
          173
          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