Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Visualisierung
  4. .txt file in Widget darstellen..

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    14
    1
    155

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    12
    1
    566

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

.txt file in Widget darstellen..

Geplant Angeheftet Gesperrt Verschoben Visualisierung
48 Beiträge 4 Kommentatoren 1.5k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • liv-in-skyL liv-in-sky

    @joergh

    im oberen bild sollte zeile 13 leer sein - lösch das mal

    J Offline
    J Offline
    JoergH
    schrieb am zuletzt editiert von
    #25

    @liv-in-sky Das hatte ich schon probiert. Die Klammern schienen mir zu viel, aber dann kommt das:

    14:34:05.835	error	javascript.0 (31267) script.js.Testprogramm: SyntaxError: Unexpected token : in JSON at position 2
    14:34:05.836	error	javascript.0 (31267) at etwas_tun (script.js.Testprogramm:5:22)
    14:34:05.836	error	javascript.0 (31267) at script.js.Testprogramm:23:7
    14:34:05.836	error	javascript.0 (31267) at script.js.Testprogramm:28:3
    
    liv-in-skyL 1 Antwort Letzte Antwort
    0
    • J JoergH

      @liv-in-sky Das hatte ich schon probiert. Die Klammern schienen mir zu viel, aber dann kommt das:

      14:34:05.835	error	javascript.0 (31267) script.js.Testprogramm: SyntaxError: Unexpected token : in JSON at position 2
      14:34:05.836	error	javascript.0 (31267) at etwas_tun (script.js.Testprogramm:5:22)
      14:34:05.836	error	javascript.0 (31267) at script.js.Testprogramm:23:7
      14:34:05.836	error	javascript.0 (31267) at script.js.Testprogramm:28:3
      
      liv-in-skyL Offline
      liv-in-skyL Offline
      liv-in-sky
      schrieb am zuletzt editiert von
      #26

      @joergh

      exportiere mal dein script und poste es

      nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

      J 1 Antwort Letzte Antwort
      0
      • liv-in-skyL liv-in-sky

        @joergh

        exportiere mal dein script und poste es

        J Offline
        J Offline
        JoergH
        schrieb am zuletzt editiert von JoergH
        #27

        @liv-in-sky ```

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="kf@C)I@H5?Mg//!NjI1(">zeit</variable>
            <variable id="5a|o%=^(G?nVL*}]$W4w">text</variable>
            <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
          </variables>
          <block type="procedures_defcustomnoreturn" id="j?7,VR.oK}Vg/ze4avd+" x="113" y="88">
            <mutation statements="false">
              <arg name="zeit" varid="kf@C)I@H5?Mg//!NjI1("></arg>
              <arg name="text" varid="5a|o%=^(G?nVL*}]$W4w"></arg>
            </mutation>
            <field name="NAME">etwas tun</field>
            <field name="SCRIPT">bXlqc29uQXJyYXk9SlNPTi5wYXJzZShnZXRTdGF0ZSgiMF91c2VyZGF0YS4wLlZpc3VhbGlzaWVydW5nLlNwcmFjaGxvZyIpLnZhbCk7DQoNCm15anNvbkFycmF5LnB1c2goew0KDQogICAgInplaXQiOnplaXQsDQoNCiAgICAidGV4dCI6IHRleHQNCg0KIH0pDQoNCnNldFN0YXRlKCIwX3VzZXJkYXRhLjAuVmlzdWFsaXNpZXJ1bmcuU3ByYWNobG9nIixKU09OLnN0cmluZ2lmeShteWpzb25BcnJheSkpOw0KDQo=</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          </block>
          <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3" x="63" y="187">
            <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
            <value name="VALUE">
              <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                <mutation items="0"></mutation>
              </block>
            </value>
            <next>
              <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                <field name="COMMENT">muss immer wider aufgerufen werden</field>
                <next>
                  <block type="procedures_callcustomnoreturn" id="EExq}vOtL!*0B6I!C:nr">
                    <mutation name="etwas tun">
                      <arg name="zeit"></arg>
                      <arg name="text"></arg>
                    </mutation>
                    <value name="ARG0">
                      <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                        <field name="TEXT">12:23</field>
                      </block>
                    </value>
                    <value name="ARG1">
                      <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                        <field name="TEXT">erster eintrag</field>
                      </block>
                    </value>
                    <next>
                      <block type="procedures_callcustomnoreturn" id="7~6m_w/]|s1!e4Qbvyx!">
                        <mutation name="etwas tun">
                          <arg name="zeit"></arg>
                          <arg name="text"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="text" id="[}#NGTrRpP_J{yeUV?-}">
                            <field name="TEXT">13:44</field>
                          </block>
                        </value>
                        <value name="ARG1">
                          <block type="text" id="T2feN=VyPoV0icC_fX#W">
                            <field name="TEXT">zweiter eintrag</field>
                          </block>
                        </value>
                        <next>
                          <block type="debug" id="X(]`D{lj[!;8*{aKI(B|">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text" id="veRPR75t0gV+j4Kbp^gM">
                                <field name="TEXT">test</field>
                              </shadow>
                              <block type="variables_get" id="t5{_n[-q9DM$KIky*.3}">
                                <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        
        liv-in-skyL 2 Antworten Letzte Antwort
        0
        • J JoergH

          @liv-in-sky ```

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="kf@C)I@H5?Mg//!NjI1(">zeit</variable>
              <variable id="5a|o%=^(G?nVL*}]$W4w">text</variable>
              <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
            </variables>
            <block type="procedures_defcustomnoreturn" id="j?7,VR.oK}Vg/ze4avd+" x="113" y="88">
              <mutation statements="false">
                <arg name="zeit" varid="kf@C)I@H5?Mg//!NjI1("></arg>
                <arg name="text" varid="5a|o%=^(G?nVL*}]$W4w"></arg>
              </mutation>
              <field name="NAME">etwas tun</field>
              <field name="SCRIPT">bXlqc29uQXJyYXk9SlNPTi5wYXJzZShnZXRTdGF0ZSgiMF91c2VyZGF0YS4wLlZpc3VhbGlzaWVydW5nLlNwcmFjaGxvZyIpLnZhbCk7DQoNCm15anNvbkFycmF5LnB1c2goew0KDQogICAgInplaXQiOnplaXQsDQoNCiAgICAidGV4dCI6IHRleHQNCg0KIH0pDQoNCnNldFN0YXRlKCIwX3VzZXJkYXRhLjAuVmlzdWFsaXNpZXJ1bmcuU3ByYWNobG9nIixKU09OLnN0cmluZ2lmeShteWpzb25BcnJheSkpOw0KDQo=</field>
              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            </block>
            <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3" x="63" y="187">
              <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
              <value name="VALUE">
                <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                  <mutation items="0"></mutation>
                </block>
              </value>
              <next>
                <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                  <field name="COMMENT">muss immer wider aufgerufen werden</field>
                  <next>
                    <block type="procedures_callcustomnoreturn" id="EExq}vOtL!*0B6I!C:nr">
                      <mutation name="etwas tun">
                        <arg name="zeit"></arg>
                        <arg name="text"></arg>
                      </mutation>
                      <value name="ARG0">
                        <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                          <field name="TEXT">12:23</field>
                        </block>
                      </value>
                      <value name="ARG1">
                        <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                          <field name="TEXT">erster eintrag</field>
                        </block>
                      </value>
                      <next>
                        <block type="procedures_callcustomnoreturn" id="7~6m_w/]|s1!e4Qbvyx!">
                          <mutation name="etwas tun">
                            <arg name="zeit"></arg>
                            <arg name="text"></arg>
                          </mutation>
                          <value name="ARG0">
                            <block type="text" id="[}#NGTrRpP_J{yeUV?-}">
                              <field name="TEXT">13:44</field>
                            </block>
                          </value>
                          <value name="ARG1">
                            <block type="text" id="T2feN=VyPoV0icC_fX#W">
                              <field name="TEXT">zweiter eintrag</field>
                            </block>
                          </value>
                          <next>
                            <block type="debug" id="X(]`D{lj[!;8*{aKI(B|">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="veRPR75t0gV+j4Kbp^gM">
                                  <field name="TEXT">test</field>
                                </shadow>
                                <block type="variables_get" id="t5{_n[-q9DM$KIky*.3}">
                                  <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </xml>
          
          liv-in-skyL Offline
          liv-in-skyL Offline
          liv-in-sky
          schrieb am zuletzt editiert von liv-in-sky
          #28

          @joergh

          es gibt doch schon das

          https://forum.iobroker.net/post/742539

          ist da auch ein fehler drin

          das im spoiler !!!

          nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

          1 Antwort Letzte Antwort
          0
          • J JoergH

            @liv-in-sky ```

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="kf@C)I@H5?Mg//!NjI1(">zeit</variable>
                <variable id="5a|o%=^(G?nVL*}]$W4w">text</variable>
                <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
              </variables>
              <block type="procedures_defcustomnoreturn" id="j?7,VR.oK}Vg/ze4avd+" x="113" y="88">
                <mutation statements="false">
                  <arg name="zeit" varid="kf@C)I@H5?Mg//!NjI1("></arg>
                  <arg name="text" varid="5a|o%=^(G?nVL*}]$W4w"></arg>
                </mutation>
                <field name="NAME">etwas tun</field>
                <field name="SCRIPT">bXlqc29uQXJyYXk9SlNPTi5wYXJzZShnZXRTdGF0ZSgiMF91c2VyZGF0YS4wLlZpc3VhbGlzaWVydW5nLlNwcmFjaGxvZyIpLnZhbCk7DQoNCm15anNvbkFycmF5LnB1c2goew0KDQogICAgInplaXQiOnplaXQsDQoNCiAgICAidGV4dCI6IHRleHQNCg0KIH0pDQoNCnNldFN0YXRlKCIwX3VzZXJkYXRhLjAuVmlzdWFsaXNpZXJ1bmcuU3ByYWNobG9nIixKU09OLnN0cmluZ2lmeShteWpzb25BcnJheSkpOw0KDQo=</field>
                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
              </block>
              <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3" x="63" y="187">
                <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                <value name="VALUE">
                  <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                    <mutation items="0"></mutation>
                  </block>
                </value>
                <next>
                  <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                    <field name="COMMENT">muss immer wider aufgerufen werden</field>
                    <next>
                      <block type="procedures_callcustomnoreturn" id="EExq}vOtL!*0B6I!C:nr">
                        <mutation name="etwas tun">
                          <arg name="zeit"></arg>
                          <arg name="text"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                            <field name="TEXT">12:23</field>
                          </block>
                        </value>
                        <value name="ARG1">
                          <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                            <field name="TEXT">erster eintrag</field>
                          </block>
                        </value>
                        <next>
                          <block type="procedures_callcustomnoreturn" id="7~6m_w/]|s1!e4Qbvyx!">
                            <mutation name="etwas tun">
                              <arg name="zeit"></arg>
                              <arg name="text"></arg>
                            </mutation>
                            <value name="ARG0">
                              <block type="text" id="[}#NGTrRpP_J{yeUV?-}">
                                <field name="TEXT">13:44</field>
                              </block>
                            </value>
                            <value name="ARG1">
                              <block type="text" id="T2feN=VyPoV0icC_fX#W">
                                <field name="TEXT">zweiter eintrag</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="X(]`D{lj[!;8*{aKI(B|">
                                <field name="Severity">log</field>
                                <value name="TEXT">
                                  <shadow type="text" id="veRPR75t0gV+j4Kbp^gM">
                                    <field name="TEXT">test</field>
                                  </shadow>
                                  <block type="variables_get" id="t5{_n[-q9DM$KIky*.3}">
                                    <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </xml>
            
            liv-in-skyL Offline
            liv-in-skyL Offline
            liv-in-sky
            schrieb am zuletzt editiert von
            #29

            @joergh

            aber das hier ist mit mehr blockly input und strukturierter

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="1%kx)8[s_nj*5uEEo]CH">zeit</variable>
               <variable id="_c2[Wd8,N14Er)%1G]!}">text</variable>
               <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
             </variables>
             <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="512" y="87">
               <mutation statements="false">
                 <arg name="zeit" varid="1%kx)8[s_nj*5uEEo]CH"></arg>
                 <arg name="text" varid="_c2[Wd8,N14Er)%1G]!}"></arg>
               </mutation>
               <field name="NAME">etwas tun2</field>
               <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
               <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
             </block>
             <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="212" y="212">
               <field name="COMMENT">beim ersten mal leerer dp</field>
               <next>
                 <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                       <value name="VALUE">
                         <shadow type="text">
                           <field name="TEXT"></field>
                         </shadow>
                         <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                           <field name="ATTR">val</field>
                           <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                       <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                       <value name="VALUE">
                         <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                           <mutation items="0"></mutation>
                         </block>
                       </value>
                       <next>
                         <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                               <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                       <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                       <value name="VALUE">
                         <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                           <value name="VALUE">
                             <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                               <field name="ATTR">val</field>
                               <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </statement>
                   <next>
                     <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                       <field name="COMMENT">muss immer wider aufgerufen werden</field>
                       <next>
                         <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                               <mutation name="etwas tun2">
                                 <arg name="zeit"></arg>
                                 <arg name="text"></arg>
                               </mutation>
                               <value name="ARG0">
                                 <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                   <field name="TEXT">12:23</field>
                                 </block>
                               </value>
                               <value name="ARG1">
                                 <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                   <field name="TEXT">erster eintrag</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
            </xml>
            

            nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

            J 1 Antwort Letzte Antwort
            0
            • liv-in-skyL liv-in-sky

              @joergh

              aber das hier ist mit mehr blockly input und strukturierter

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="1%kx)8[s_nj*5uEEo]CH">zeit</variable>
                 <variable id="_c2[Wd8,N14Er)%1G]!}">text</variable>
                 <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
               </variables>
               <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="512" y="87">
                 <mutation statements="false">
                   <arg name="zeit" varid="1%kx)8[s_nj*5uEEo]CH"></arg>
                   <arg name="text" varid="_c2[Wd8,N14Er)%1G]!}"></arg>
                 </mutation>
                 <field name="NAME">etwas tun2</field>
                 <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
                 <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
               </block>
               <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="212" y="212">
                 <field name="COMMENT">beim ersten mal leerer dp</field>
                 <next>
                   <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                     <mutation else="1"></mutation>
                     <value name="IF0">
                       <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                         <value name="VALUE">
                           <shadow type="text">
                             <field name="TEXT"></field>
                           </shadow>
                           <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                             <field name="ATTR">val</field>
                             <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                         <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                         <value name="VALUE">
                           <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                             <mutation items="0"></mutation>
                           </block>
                         </value>
                         <next>
                           <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                                 <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <statement name="ELSE">
                       <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                         <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                         <value name="VALUE">
                           <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                             <value name="VALUE">
                               <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                                 <field name="ATTR">val</field>
                                 <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <next>
                       <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                         <field name="COMMENT">muss immer wider aufgerufen werden</field>
                         <next>
                           <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                                 <mutation name="etwas tun2">
                                   <arg name="zeit"></arg>
                                   <arg name="text"></arg>
                                 </mutation>
                                 <value name="ARG0">
                                   <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                     <field name="TEXT">12:23</field>
                                   </block>
                                 </value>
                                 <value name="ARG1">
                                   <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                     <field name="TEXT">erster eintrag</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
              </xml>
              

              J Offline
              J Offline
              JoergH
              schrieb am zuletzt editiert von
              #30

              @liv-in-sky sagte in .txt file in Widget darstellen..:

              <xml xmlns="https://developers.google.com/blockly/xml">

              14:51:03.279	error	javascript.0 (31267) script.js.Testprogramm: TypeError: myjsonArray.push is not a function
              14:51:03.279	error	javascript.0 (31267) at etwas_tun2 (script.js.Testprogramm:6:17)
              14:51:03.279	error	javascript.0 (31267) at script.js.Testprogramm:28:71
              14:51:03.280	error	javascript.0 (31267) at script.js.Testprogramm:31:3
              
              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="kf@C)I@H5?Mg//!NjI1(">zeit</variable>
                  <variable id="5a|o%=^(G?nVL*}]$W4w">text</variable>
                  <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
                </variables>
                <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="38" y="38">
                  <mutation statements="false">
                    <arg name="zeit" varid="kf@C)I@H5?Mg//!NjI1("></arg>
                    <arg name="text" varid="5a|o%=^(G?nVL*}]$W4w"></arg>
                  </mutation>
                  <field name="NAME">etwas tun2</field>
                  <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                </block>
                <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="-162" y="163">
                  <field name="COMMENT">beim ersten mal leerer dp</field>
                  <next>
                    <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                          <value name="VALUE">
                            <shadow type="text">
                              <field name="TEXT"></field>
                            </shadow>
                            <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                          <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                          <value name="VALUE">
                            <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                              <mutation items="0"></mutation>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                                  <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                          <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                          <value name="VALUE">
                            <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                              <value name="VALUE">
                                <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                          <field name="COMMENT">muss immer wider aufgerufen werden</field>
                          <next>
                            <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                                  <mutation name="etwas tun2">
                                    <arg name="zeit"></arg>
                                    <arg name="text"></arg>
                                  </mutation>
                                  <value name="ARG0">
                                    <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                      <field name="TEXT">12:23</field>
                                    </block>
                                  </value>
                                  <value name="ARG1">
                                    <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                      <field name="TEXT">erster eintrag</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              
              liv-in-skyL 1 Antwort Letzte Antwort
              0
              • J JoergH

                @liv-in-sky sagte in .txt file in Widget darstellen..:

                <xml xmlns="https://developers.google.com/blockly/xml">

                14:51:03.279	error	javascript.0 (31267) script.js.Testprogramm: TypeError: myjsonArray.push is not a function
                14:51:03.279	error	javascript.0 (31267) at etwas_tun2 (script.js.Testprogramm:6:17)
                14:51:03.279	error	javascript.0 (31267) at script.js.Testprogramm:28:71
                14:51:03.280	error	javascript.0 (31267) at script.js.Testprogramm:31:3
                
                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable id="kf@C)I@H5?Mg//!NjI1(">zeit</variable>
                    <variable id="5a|o%=^(G?nVL*}]$W4w">text</variable>
                    <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
                  </variables>
                  <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="38" y="38">
                    <mutation statements="false">
                      <arg name="zeit" varid="kf@C)I@H5?Mg//!NjI1("></arg>
                      <arg name="text" varid="5a|o%=^(G?nVL*}]$W4w"></arg>
                    </mutation>
                    <field name="NAME">etwas tun2</field>
                    <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  </block>
                  <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="-162" y="163">
                    <field name="COMMENT">beim ersten mal leerer dp</field>
                    <next>
                      <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                            <value name="VALUE">
                              <shadow type="text">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                            <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                            <value name="VALUE">
                              <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                                <mutation items="0"></mutation>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                                    <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                            <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                            <value name="VALUE">
                              <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                                <value name="VALUE">
                                  <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                            <field name="COMMENT">muss immer wider aufgerufen werden</field>
                            <next>
                              <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                                    <mutation name="etwas tun2">
                                      <arg name="zeit"></arg>
                                      <arg name="text"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                        <field name="TEXT">12:23</field>
                                      </block>
                                    </value>
                                    <value name="ARG1">
                                      <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                        <field name="TEXT">erster eintrag</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </xml>
                
                liv-in-skyL Offline
                liv-in-skyL Offline
                liv-in-sky
                schrieb am zuletzt editiert von
                #31

                @joergh

                verstehe ich nicht - bei mir läufts

                kann es sein, dass die functionsnamen nicht stimmen - durch das importieren

                also etwas tun , etwas tun2,..

                nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                J 1 Antwort Letzte Antwort
                0
                • liv-in-skyL liv-in-sky

                  @joergh

                  verstehe ich nicht - bei mir läufts

                  kann es sein, dass die functionsnamen nicht stimmen - durch das importieren

                  also etwas tun , etwas tun2,..

                  J Offline
                  J Offline
                  JoergH
                  schrieb am zuletzt editiert von
                  #32

                  @liv-in-sky etwas tun 2 entstand nur, weil ich die alten Blöcke noch nicht gelöscht habe...das hat sich aber bei allen Blöcken gleichmässig angepasst. Probiere es gleich noch einmal auf einem "clean sheet"..

                  liv-in-skyL 2 Antworten Letzte Antwort
                  0
                  • J JoergH

                    @liv-in-sky etwas tun 2 entstand nur, weil ich die alten Blöcke noch nicht gelöscht habe...das hat sich aber bei allen Blöcken gleichmässig angepasst. Probiere es gleich noch einmal auf einem "clean sheet"..

                    liv-in-skyL Offline
                    liv-in-skyL Offline
                    liv-in-sky
                    schrieb am zuletzt editiert von
                    #33

                    @joergh warte

                    nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                    1 Antwort Letzte Antwort
                    0
                    • J JoergH

                      @liv-in-sky etwas tun 2 entstand nur, weil ich die alten Blöcke noch nicht gelöscht habe...das hat sich aber bei allen Blöcken gleichmässig angepasst. Probiere es gleich noch einmal auf einem "clean sheet"..

                      liv-in-skyL Offline
                      liv-in-skyL Offline
                      liv-in-sky
                      schrieb am zuletzt editiert von
                      #34

                      @joergh

                      hier ist die funktion benannt mit eigenen namen - das ist besser

                      <xml xmlns="https://developers.google.com/blockly/xml">
                       <variables>
                         <variable id="1%kx)8[s_nj*5uEEo]CH">zeit</variable>
                         <variable id="_c2[Wd8,N14Er)%1G]!}">text</variable>
                         <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
                       </variables>
                       <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="437" y="137">
                         <mutation statements="false">
                           <arg name="zeit" varid="1%kx)8[s_nj*5uEEo]CH"></arg>
                           <arg name="text" varid="_c2[Wd8,N14Er)%1G]!}"></arg>
                         </mutation>
                         <field name="NAME">jsonErstellen</field>
                         <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
                         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                       </block>
                       <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="212" y="212">
                         <field name="COMMENT">beim ersten mal leerer dp</field>
                         <next>
                           <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                             <mutation else="1"></mutation>
                             <value name="IF0">
                               <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                                 <value name="VALUE">
                                   <shadow type="text">
                                     <field name="TEXT"></field>
                                   </shadow>
                                   <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                                     <field name="ATTR">val</field>
                                     <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                                 <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                 <value name="VALUE">
                                   <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                                     <mutation items="0"></mutation>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                                         <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <statement name="ELSE">
                               <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                                 <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                 <value name="VALUE">
                                   <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                                     <value name="VALUE">
                                       <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                                         <field name="ATTR">val</field>
                                         <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                             <next>
                               <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                                 <field name="COMMENT">muss immer wider aufgerufen werden</field>
                                 <next>
                                   <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                                         <mutation name="jsonErstellen">
                                           <arg name="zeit"></arg>
                                           <arg name="text"></arg>
                                         </mutation>
                                         <value name="ARG0">
                                           <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                             <field name="TEXT">12:23</field>
                                           </block>
                                         </value>
                                         <value name="ARG1">
                                           <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                             <field name="TEXT">erster eintrag</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                      </xml>
                      

                      nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                      J 1 Antwort Letzte Antwort
                      0
                      • liv-in-skyL liv-in-sky

                        @joergh

                        hier ist die funktion benannt mit eigenen namen - das ist besser

                        <xml xmlns="https://developers.google.com/blockly/xml">
                         <variables>
                           <variable id="1%kx)8[s_nj*5uEEo]CH">zeit</variable>
                           <variable id="_c2[Wd8,N14Er)%1G]!}">text</variable>
                           <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
                         </variables>
                         <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="437" y="137">
                           <mutation statements="false">
                             <arg name="zeit" varid="1%kx)8[s_nj*5uEEo]CH"></arg>
                             <arg name="text" varid="_c2[Wd8,N14Er)%1G]!}"></arg>
                           </mutation>
                           <field name="NAME">jsonErstellen</field>
                           <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
                           <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                         </block>
                         <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="212" y="212">
                           <field name="COMMENT">beim ersten mal leerer dp</field>
                           <next>
                             <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                                   <value name="VALUE">
                                     <shadow type="text">
                                       <field name="TEXT"></field>
                                     </shadow>
                                     <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                                       <field name="ATTR">val</field>
                                       <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                                   <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                   <value name="VALUE">
                                     <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                                       <mutation items="0"></mutation>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                                           <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                                   <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                   <value name="VALUE">
                                     <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                                       <value name="VALUE">
                                         <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                                           <field name="ATTR">val</field>
                                           <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                               <next>
                                 <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                                   <field name="COMMENT">muss immer wider aufgerufen werden</field>
                                   <next>
                                     <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">0_userdata.0.CONTROL-OWN.AAATEST.TestString1</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                                           <mutation name="jsonErstellen">
                                             <arg name="zeit"></arg>
                                             <arg name="text"></arg>
                                           </mutation>
                                           <value name="ARG0">
                                             <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                               <field name="TEXT">12:23</field>
                                             </block>
                                           </value>
                                           <value name="ARG1">
                                             <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                               <field name="TEXT">erster eintrag</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                        </xml>
                        

                        J Offline
                        J Offline
                        JoergH
                        schrieb am zuletzt editiert von
                        #35

                        @liv-in-sky
                        Danke. Die Fehlermeldungen bleiben gleich...

                        15:01:36.571	error	javascript.0 (31267) script.js.Testskript: TypeError: myjsonArray.push is not a function
                        15:01:36.571	error	javascript.0 (31267) at jsonErstellen (script.js.Testskript:6:17)
                        15:01:36.571	error	javascript.0 (31267) at script.js.Testskript:28:71
                        15:01:36.571	error	javascript.0 (31267) at script.js.Testskript:31:3
                        

                        Warum kennt er die Funktion myjsonArray.push nicht mehr?
                        Anfangs hat er die nicht bemängelt. Vielleicht sollte ich mal den iobroker neu starten?

                        liv-in-skyL 1 Antwort Letzte Antwort
                        0
                        • J JoergH

                          @liv-in-sky
                          Danke. Die Fehlermeldungen bleiben gleich...

                          15:01:36.571	error	javascript.0 (31267) script.js.Testskript: TypeError: myjsonArray.push is not a function
                          15:01:36.571	error	javascript.0 (31267) at jsonErstellen (script.js.Testskript:6:17)
                          15:01:36.571	error	javascript.0 (31267) at script.js.Testskript:28:71
                          15:01:36.571	error	javascript.0 (31267) at script.js.Testskript:31:3
                          

                          Warum kennt er die Funktion myjsonArray.push nicht mehr?
                          Anfangs hat er die nicht bemängelt. Vielleicht sollte ich mal den iobroker neu starten?

                          liv-in-skyL Offline
                          liv-in-skyL Offline
                          liv-in-sky
                          schrieb am zuletzt editiert von liv-in-sky
                          #36

                          @joergh was steht den im dp - hast du die dp überall angeglichen ?

                          es sind 4 dp änderungen im blockly

                          nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                          J 2 Antworten Letzte Antwort
                          0
                          • liv-in-skyL liv-in-sky

                            @joergh was steht den im dp - hast du die dp überall angeglichen ?

                            es sind 4 dp änderungen im blockly

                            J Offline
                            J Offline
                            JoergH
                            schrieb am zuletzt editiert von
                            #37

                            @liv-in-sky Ja, klar. Das habe ich gesehen.

                            <xml xmlns="https://developers.google.com/blockly/xml">
                              <variables>
                                <variable id="1%kx)8[s_nj*5uEEo]CH">zeit</variable>
                                <variable id="_c2[Wd8,N14Er)%1G]!}">text</variable>
                                <variable id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</variable>
                              </variables>
                              <block type="procedures_defcustomreturn" id="=Qd]f(:V.tQ!:LVLVFEG" x="138" y="88">
                                <mutation statements="false">
                                  <arg name="zeit" varid="1%kx)8[s_nj*5uEEo]CH"></arg>
                                  <arg name="text" varid="_c2[Wd8,N14Er)%1G]!}"></arg>
                                </mutation>
                                <field name="NAME">jsonErstellen</field>
                                <field name="SCRIPT">DQpteWpzb25BcnJheS5wdXNoKHsNCiAgICAiemVpdCI6emVpdCwNCiAgICAidGV4dCI6IHRleHQNCiAgICANCn0pDQoNCg0KDQoNCg0KcmV0dXJuIEpTT04uc3RyaW5naWZ5KG15anNvbkFycmF5KTs=</field>
                                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                              </block>
                              <block type="comment" id="yFL!h.,c,Zp-Dy^Kq,hm" x="-112" y="163">
                                <field name="COMMENT">beim ersten mal leerer dp</field>
                                <next>
                                  <block type="controls_if" id="{/+O6HOy7Ojt}`9A$PX}">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="text_isEmpty" id="oedr?+DzZQYcMQbkQH8J">
                                        <value name="VALUE">
                                          <shadow type="text">
                                            <field name="TEXT"></field>
                                          </shadow>
                                          <block type="get_value" id="tH/||B;9eB]:7_k)30Yk">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="@frIvR$BlW;b0uR.Qqj3">
                                        <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                        <value name="VALUE">
                                          <block type="lists_create_with" id="KW[0_$Yjk~~%xadDJ,NX">
                                            <mutation items="0"></mutation>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="v~m,=)~HcShOSXySqCcJ">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id=";XGxvAYF.bITTA[2E;F5">
                                                <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="variables_set" id="3WG$-TF?jttZ!oCMl;[Y">
                                        <field name="VAR" id="3x+uiY^LT~Vv|;Rnf~@U">myjsonArray</field>
                                        <value name="VALUE">
                                          <block type="convert_json2object" id="8Gyoo;9hjS1t{|tMiE@!">
                                            <value name="VALUE">
                                              <block type="get_value" id="Og=@#7NMHqJZWV!9P^-v">
                                                <field name="ATTR">val</field>
                                                <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="comment" id="|KE9Kg/1ggEZkRdYDlPQ">
                                        <field name="COMMENT">muss immer wider aufgerufen werden</field>
                                        <next>
                                          <block type="control" id="S22g2,MIUbP;LUP+i3#5">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Visualisierung.Sprachlog</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="procedures_callcustomreturn" id="(Nw[G^`{#xaFo%5[%Nj~">
                                                <mutation name="jsonErstellen">
                                                  <arg name="zeit"></arg>
                                                  <arg name="text"></arg>
                                                </mutation>
                                                <value name="ARG0">
                                                  <block type="text" id="aT/dI(HPz:tJ[u^?6FOT">
                                                    <field name="TEXT">12:23</field>
                                                  </block>
                                                </value>
                                                <value name="ARG1">
                                                  <block type="text" id="K{8vzWm|r=x9EXNHWR^G">
                                                    <field name="TEXT">erster eintrag</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </xml>
                            

                            Der DP hat sich nicht geändert seit 13:06 Uhr und da hatte ich noch mit meinem anderen Skript was reingeschrieben.

                            1 Antwort Letzte Antwort
                            0
                            • liv-in-skyL liv-in-sky

                              @joergh was steht den im dp - hast du die dp überall angeglichen ?

                              es sind 4 dp änderungen im blockly

                              J Offline
                              J Offline
                              JoergH
                              schrieb am zuletzt editiert von
                              #38

                              @liv-in-sky
                              Interessant sind die Variablen die er irgendwie erstellt hat:

                              2d309108-6496-4736-bfc4-875d9f149ae8-grafik.png

                              liv-in-skyL 1 Antwort Letzte Antwort
                              0
                              • J JoergH

                                @liv-in-sky
                                Interessant sind die Variablen die er irgendwie erstellt hat:

                                2d309108-6496-4736-bfc4-875d9f149ae8-grafik.png

                                liv-in-skyL Offline
                                liv-in-skyL Offline
                                liv-in-sky
                                schrieb am zuletzt editiert von
                                #39

                                @joergh

                                habe ich noch nie gesehen - da stimmt was beim import nicht - solltest du als neues sript machen und dieses dnn löschen

                                nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                                J 2 Antworten Letzte Antwort
                                0
                                • liv-in-skyL liv-in-sky

                                  @joergh

                                  habe ich noch nie gesehen - da stimmt was beim import nicht - solltest du als neues sript machen und dieses dnn löschen

                                  J Offline
                                  J Offline
                                  JoergH
                                  schrieb am zuletzt editiert von
                                  #40

                                  @liv-in-sky Roger.

                                  liv-in-skyL 1 Antwort Letzte Antwort
                                  1
                                  • J JoergH

                                    @liv-in-sky Roger.

                                    liv-in-skyL Offline
                                    liv-in-skyL Offline
                                    liv-in-sky
                                    schrieb am zuletzt editiert von
                                    #41

                                    @joergh

                                    habe das script von dir genommen und einen dp angelegt - funktioniert

                                    nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                                    1 Antwort Letzte Antwort
                                    0
                                    • liv-in-skyL liv-in-sky

                                      @joergh

                                      habe ich noch nie gesehen - da stimmt was beim import nicht - solltest du als neues sript machen und dieses dnn löschen

                                      J Offline
                                      J Offline
                                      JoergH
                                      schrieb am zuletzt editiert von
                                      #42

                                      @liv-in-sky Mir fällt gerade was ein: Der DP ist nicht leer, da da noch alter Kram drinsteht. Deswegen wird er ja nie als leere Liste erzeugt...könnte das das Problem sein?

                                      liv-in-skyL 1 Antwort Letzte Antwort
                                      0
                                      • J JoergH

                                        @liv-in-sky Mir fällt gerade was ein: Der DP ist nicht leer, da da noch alter Kram drinsteht. Deswegen wird er ja nie als leere Liste erzeugt...könnte das das Problem sein?

                                        liv-in-skyL Offline
                                        liv-in-skyL Offline
                                        liv-in-sky
                                        schrieb am zuletzt editiert von
                                        #43

                                        @joergh ja wäre möglich - einfach reinklicken und alles löschen , was drin steht

                                        nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                                        J 1 Antwort Letzte Antwort
                                        0
                                        • liv-in-skyL liv-in-sky

                                          @joergh ja wäre möglich - einfach reinklicken und alles löschen , was drin steht

                                          J Offline
                                          J Offline
                                          JoergH
                                          schrieb am zuletzt editiert von JoergH
                                          #44

                                          @liv-in-sky

                                          Habe alle neu programmiert und den DP gelöscht und nun läuft es!

                                          Vielen Dank für die Geduld! Habe wieder was gelernt.

                                          @BananaJoe

                                          Meinst Du dieses Widget?

                                          1e4dccb1-ff2b-4722-85b4-9d5985b0fefd-grafik.png

                                          Wie kann ich denn die Spaltenbreite einstellen? Wenn ich was in "Width [1]" bzw. [2] eingebe, dann ändert er nur die Breite der Überschriftzeile....?

                                          liv-in-skyL 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          332

                                          Online

                                          32.5k

                                          Benutzer

                                          81.8k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe