Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Vorlage] Blockly Umrechnung von Sekunden in Stunden, Minuten und Sekunden

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Vorlage] Blockly Umrechnung von Sekunden in Stunden, Minuten und Sekunden

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

      @UweRLP:

      Ein Tag hat 86400 Sekunden… 24h * 60Min * 60Sek

      Also ergibt Sekunden geteilt durch 86400 die Anzahl der Tage

      Hier in dem Beispiel: 453786/86400=5,25...

      In dem Beispiel haben wir 5 Tage a' 86400 Sekunden

      Die 186Sek ergeben, das kann man im Kopf, 3 Minuten und 6 Sekunden...

      Vorlage03 mit Tagen.jpg `

      Besten dank UweRLP!

      ich habe es am WE Probiert…

      ~~![](</s><URL url=)<link_text text="download/file.php?mode=view&id=30321">https://forum.iobroker.net/download/file.php?mode=view&id=30321</link_text>" />

      nicht besonders erfolgreich. Benutze jetzt deine Vorlage DANKE!

      Gruß

      Paul~~ 5219_zeit.jpg

      1 Reply Last reply Reply Quote 0
      • M
        m0rph last edited by

        Hi

        Wie wurde das gelöst ?. Bräuchte das selber auch für meine An/Abwesenheits erkennung, momentan gebe ich Minuten an würde diese aber gerne zb so darstellen 00T 05H 10M bzw 01T 10 H 25M

        LG

        1 Reply Last reply Reply Quote 0
        • G
          Georgius last edited by

          Hab jetzt kein Blocky zur verfügung, daher allgemein

          Tage = ganzzahl (sec_original/(24x60x60))

          Sec_neu = sec_alt - (Tage x 24x60x60)

          Stunden = ganzzahl (sec_neu/(60x60))

          Usw.

          1 Reply Last reply Reply Quote 0
          • M
            m0rph last edited by

            Hi

            Danke eig. verstanden, wie bekomme ich mit blockly die ganzzahl hin wenn ich zB die Tage ausrechne kommt zB "3,546527777777778" heraus.

            lg

            1 Reply Last reply Reply Quote 0
            • G
              Georgius last edited by

              Bei Mathematik /runden kannst Du auf abrunden umstellen. Zumindest bei positiven Zahlen muß das integer/Ganzzahl entsprechen.

              1 Reply Last reply Reply Quote 0
              • F
                Fuga last edited by

                HI, kann es sein das in dem Beitrag ein paar Posts fehlen? Ich finde die Vorlage nicht. Wie ich aus Sekunden Tage stunden usw mache ist mir rechnerisch klar. Aber im Blockly muss ich doch irgendwie mit Zählern arbeiten um das richtig darzustellen oder?
                Also wenn Sekunde 60+ dann erhöhe Minute um eins usw.

                t-master UweRLP 2 Replies Last reply Reply Quote 0
                • t-master
                  t-master @Fuga last edited by

                  @Fuga
                  Schau dir mal diesen Beitrag an, da habe ich einen Blockly-Vorlage gepostet wo die Umrechnung von Millisekunden in Tage,Stunden,Minuten und Sekunden enthalten ist. Vieleicht hilt dir das weiter.

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    Fuga @t-master last edited by

                    @t-master Klasse dank dir. Funktioniert super.

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                      <variables>
                        <variable type="" id="r)M)J`L2gdR+-rjVpLQA">Dauer</variable>
                        <variable type="" id="moxiY#/V659kTQ}a:eJ[">tage</variable>
                        <variable type="" id="kE/kiClb=y?}6)j?_-_R">std</variable>
                        <variable type="" id="F..#nc_!4s(/0NkG7Dzk">min</variable>
                        <variable type="" id="DRJ.iVA5f}kG0snR{]c|">sec</variable>
                      </variables>
                      <block type="on" id="G+naKWg/?aO.iY}4H:fn" x="-112" y="137">
                        <field name="OID">modbus.0.inputRegisters.30541_Betriebszeit</field>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <statement name="STATEMENT">
                          <block type="variables_set" id="ioolV*0*~aK99._xGf4i">
                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                            <value name="VALUE">
                              <block type="get_value" id="Rz+qr_iam{A)^!_ud}E#">
                                <field name="ATTR">val</field>
                                <field name="OID">modbus.0.inputRegisters.30541_Betriebszeit</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="d#Mf%Vp1N]rbGTAqMJ1%">
                                <field name="VAR" id="moxiY#/V659kTQ}a:eJ[" variabletype="">tage</field>
                                <value name="VALUE">
                                  <block type="math_round" id="kl^`w62qML7NfK6obI)R">
                                    <field name="OP">ROUNDDOWN</field>
                                    <value name="NUM">
                                      <shadow type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                        <field name="NUM">3.1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="Vq4e$#!w=`xg_}Su1.ED">
                                        <field name="OP">DIVIDE</field>
                                        <value name="A">
                                          <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="P2DL%-5VMuQs8M.vDPhQ">
                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="xN73Vg#|I~62Ed=PUT%^">
                                            <field name="NUM">86400</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="XzKStL$rv+783U;lrI1]">
                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                    <value name="VALUE">
                                      <block type="math_arithmetic" id="@PeJ}u3X):vUjeEbh}b!">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="rYu:XuWA=@c.X[oR~2QX">
                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_arithmetic" id="[=RIpUA6gN7kz_Q7;K9*">
                                            <field name="OP">MULTIPLY</field>
                                            <value name="A">
                                              <shadow type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="R-1S]-Y`CW]Ug]ZZf)]!">
                                                <field name="VAR" id="moxiY#/V659kTQ}a:eJ[" variabletype="">tage</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="962lAEL@@9*Z{v)YClgt">
                                                <field name="NUM">86400</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="4}N56*i%8!#K?;dkAaYf">
                                        <field name="VAR" id="kE/kiClb=y?}6)j?_-_R" variabletype="">std</field>
                                        <value name="VALUE">
                                          <block type="math_round" id="i_ICM,.fM!CQOVV+#;~G">
                                            <field name="OP">ROUNDDOWN</field>
                                            <value name="NUM">
                                              <shadow type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                <field name="NUM">3.1</field>
                                              </shadow>
                                              <block type="math_arithmetic" id="|=g9W]nda)Y)2k/[Wv_=">
                                                <field name="OP">DIVIDE</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="3n^zkm.#vR+K0H6t4UM_">
                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="N`]ykTeeI#)Hf$%e]L2!">
                                                    <field name="NUM">3600</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="h/81*9P*8[4VR,|Y/l[/">
                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id="CfGZ4A5O~064DV0BtM.u">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="WS(P/bX7d^ul}?60y)qY">
                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="math_arithmetic" id="i}+8JL_Q#0S}Vl#t-Ke3">
                                                    <field name="OP">MULTIPLY</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="?bB0b4ITZD7):P/T1jKh">
                                                        <field name="VAR" id="kE/kiClb=y?}6)j?_-_R" variabletype="">std</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id=",;(Ox_#1$7=rTId$yc/[">
                                                        <field name="NUM">3600</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="mi|Nsm(ddYqrJk$i-`|#">
                                                <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk" variabletype="">min</field>
                                                <value name="VALUE">
                                                  <block type="math_round" id="E$./CjOLf~Yz!Ti6iR_D">
                                                    <field name="OP">ROUNDDOWN</field>
                                                    <value name="NUM">
                                                      <shadow type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                        <field name="NUM">3.1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="n7z]@zr[x6NHv3OU*e9*">
                                                        <field name="OP">DIVIDE</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="HzzXG8yC)eLfjq|H~v3;">
                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="uem@3Cu$;SXmgtnx-#P6">
                                                            <field name="NUM">60</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id=".aKU3yi6Vn}Q}8h{O;sl">
                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                    <value name="VALUE">
                                                      <block type="math_arithmetic" id="%%%KFqfG)8ex=|_VKxy^">
                                                        <field name="OP">MINUS</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="+DL#x{a]cSnzG6V;=dK1">
                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="math_arithmetic" id="pN|DbN#YE,WTL-}C,n0|">
                                                            <field name="OP">MULTIPLY</field>
                                                            <value name="A">
                                                              <shadow type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="variables_get" id="==;p=)Y`/E0ocGx$e(WM">
                                                                <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk" variabletype="">min</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="j@2_L0kpv^S%`n0TR7~v">
                                                                <field name="NUM">60</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="{qDt~P^xXdlUYMEJ/JN{">
                                                        <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|" variabletype="">sec</field>
                                                        <value name="VALUE">
                                                          <block type="math_round" id="DEX*kqOIekO!tF;KFU:i">
                                                            <field name="OP">ROUNDDOWN</field>
                                                            <value name="NUM">
                                                              <shadow type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                <field name="NUM">3.1</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="[@!2`6uwcXC0Jl1}*fde">
                                                                <field name="OP">DIVIDE</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="AT^9^[wo;G$VGKTgabU:">
                                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="9@OD[Q0RL7.#0B6M$?d8">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="7HfM6x`@DGG2)WpoYAg0">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">0_userdata.0.Betriebszeitsolar</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="text_join" id=":r_DP)dXj@Jv~7?yyyK_">
                                                                <mutation items="8"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="variables_get" id="!EZopb^xh[~,gG@4W1,w">
                                                                    <field name="VAR" id="moxiY#/V659kTQ}a:eJ[" variabletype="">tage</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="text" id="+h^zTHY7^I!hRy7N0WNH">
                                                                    <field name="TEXT"> Tage </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD2">
                                                                  <block type="variables_get" id="sOY$z$z[]a=/h+V@Uz2H">
                                                                    <field name="VAR" id="kE/kiClb=y?}6)j?_-_R" variabletype="">std</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD3">
                                                                  <block type="text" id=")lj,hPOWg~tF(AEaY-wB">
                                                                    <field name="TEXT"> Stunden </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD4">
                                                                  <block type="variables_get" id="JBAVOqF#j#wA#5hA%X4q">
                                                                    <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk" variabletype="">min</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD5">
                                                                  <block type="text" id="!IyHG|A%`h(?iFXz+O^A">
                                                                    <field name="TEXT"> Minuten </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD6">
                                                                  <block type="variables_get" id="naIdEV$uD!hEu`d/Rcno">
                                                                    <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|" variabletype="">sec</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD7">
                                                                  <block type="text" id="o)$!!Z38,;4;O5tR|7,i">
                                                                    <field name="TEXT"> Sekunden</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    
                    1 Reply Last reply Reply Quote 0
                    • F
                      Fuga last edited by Fuga

                      sorry löschen

                      1 Reply Last reply Reply Quote 0
                      • UweRLP
                        UweRLP @Fuga last edited by UweRLP

                        @Fuga sagte in [Vorlage] Blockly Umrechnung von Sekunden in Stunden, Minuten und Sekunden:

                        HI, kann es sein das in dem Beitrag ein paar Posts fehlen? Ich finde die Vorlage nicht.

                        Hier die Vorlagen...

                        Ein Tag hat 86400 Sekunden... 24h * 60Min * 60Sek
                        Also ergibt Sek geteilt durch 86400 die Anzahl der Tage
                        Hier in dem Beispiel: 453786/86400=5,25...
                        In dem Beispiel haben wir 5 Tage a' 86400 Sekunden
                        Nun benötigen wir den Rest der Sekunden die nicht für Tage drauf gegangen sind und rechnen diese in Stunden um.
                        Also: 453786Sek-586400Sek=21786Sek Rest (man beachte Punkt vor Strich)
                        Die 21786Sek werden nun in Stunden verrechnet.
                        Eine Stunde hat 3600 Sekunden 60Min * 60Sek
                        Also: 21786/3600=6,05...
                        Haben wir schon mal 5 Tage und 6 Stunden.
                        So nun die Minuten, sicher wirst du jetzt sage Rest aus 5 Tage und 6 Stunden - stimmt 🙂
                        Also: 453786Sek-5
                        86400Sek-63600Sek=186Sek
                        Aber ich bin Faul und warum so viel rechnen und klicken und tippen dafür haben wir Computer 😉
                        Für die Minutenrechnung langt es auch wenn ich alle Sekunden in Stunden umrechne und den Rest für Minuten verrechne.
                        Hat was mit kürzen und so zu tun...
                        Also: 453786Sek/3600Sek=126,05...
                        453786Sek-3600Sek
                        126=186Sek
                        Die 186Sek ergeben, das kann man im Kopf, 3 Minuten und 6 Sekunden...

                        Vorlage02.jpg Vorlage03 mit Tagen.jpg

                        t-master 1 Reply Last reply Reply Quote 0
                        • t-master
                          t-master @UweRLP last edited by t-master

                          @UweRLP
                          Deine Überlegungen sind richtig, aber dein Blockly enthält Fehler.
                          Ich habe das Blockly nachgebaut und kam nicht zum richtigen Ergebnis drum mal hier mein geändertes Blockly.

                          Screenshot von 2020-04-02 16.35.09.jpeg

                          <xml xmlns="http://www.w3.org/1999/xhtml">
                            <variables>
                              <variable type="" id="#6btDDy?iZ!l,V3]+M[x">Dauer</variable>
                              <variable type="" id=")tGESEmT]pYF.v)Eih|^">Tage</variable>
                              <variable type="" id="H68M?Flzm6{D=L;BBK%C">Stunden</variable>
                              <variable type="" id=";M]VNL_)$W;Cm)4apwb]">Minuten</variable>
                              <variable type="" id="Jyr]SpQCUB)T*mci^oil">Sekunden</variable>
                            </variables>
                            <block type="comment" id="YZd^MFl+[X@4r2RV.Z3V" x="13" y="63">
                              <field name="COMMENT">35Tg.x24stdx60Min x 60Sek. =3024000</field>
                              <next>
                                <block type="comment" id="P%!|[|{iSl=3eGIGc-!e">
                                  <field name="COMMENT">22 Stdx60Min x 60 Sek. =79200</field>
                                  <next>
                                    <block type="comment" id="MCI`onJ5Jm6iyF;{IXGT">
                                      <field name="COMMENT">56Min x 60 Sek =3360</field>
                                      <next>
                                        <block type="comment" id="n1JOAu`/KD3E.0wi7.R=">
                                          <field name="COMMENT">54Sek x 1 = 54</field>
                                          <next>
                                            <block type="comment" id="8.#YX*=_,P?wzcy,CwLR">
                                              <field name="COMMENT">Summe=3024000+79200+3360+54</field>
                                              <next>
                                                <block type="comment" id="_*IG-Uz+L,l}zZ]h!(RB">
                                                  <field name="COMMENT">Summe=3106614</field>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                            <block type="comment" id="$]-5L,..S@Yzo,5Lj_BR" x="313" y="62">
                              <field name="COMMENT">Dauer in Sekunden </field>
                              <next>
                                <block type="comment" id="PC+Grz}PgY50g~d2a8d*">
                                  <field name="COMMENT">z.B. 35 Tg. 22Std. 56 Min. 54 Sek. =3106614 Sek.</field>
                                  <next>
                                    <block type="comment" id="cSMLV7aXI5d}w)*0qG:}">
                                      <field name="COMMENT">z.B. 5 Tg. 6 Std. 3 Min. 6 Sek. =453786 Sek.</field>
                                      <next>
                                        <block type="variables_set" id="NGhPKnI{-#S+~-F(/+4V">
                                          <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x" variabletype="">Dauer</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="-HXeYU2P-!KdE*s!@Zl;">
                                              <field name="NUM">453786</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="Sm7w-b~@F1b=S==:S9+r">
                                              <field name="VAR" id=")tGESEmT]pYF.v)Eih|^" variabletype="">Tage</field>
                                              <value name="VALUE">
                                                <block type="math_round" id="xi=g@xHGER/T10.(r93|">
                                                  <field name="OP">ROUNDDOWN</field>
                                                  <value name="NUM">
                                                    <shadow type="math_number" id="~S?pQpLpEFpa}{mQW}9u">
                                                      <field name="NUM">3.1</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="iumt6*=QPH?P=aQmK%(b">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="ss`$pp4N5KKR^%MLk[D%">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="rgi-r`PN.ucKW~sdteP5">
                                                          <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x" variabletype="">Dauer</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="sG@8|B`I9EJyZbW3Bw~?">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_number" id="~|C2.UnvXs:[5^6V:!GP">
                                                          <field name="NUM">86400</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="to`OEZ#;|PmOdO?,xF_U">
                                                  <field name="VAR" id="H68M?Flzm6{D=L;BBK%C" variabletype="">Stunden</field>
                                                  <value name="VALUE">
                                                    <block type="math_round" id="4^C^0hI%D[PPGw|Q51gp">
                                                      <field name="OP">ROUNDDOWN</field>
                                                      <value name="NUM">
                                                        <shadow type="math_number" id="~S?pQpLpEFpa}{mQW}9u">
                                                          <field name="NUM">3.1</field>
                                                        </shadow>
                                                        <block type="math_modulo" id="Q+$cIIL:6y4drDlY_ECh">
                                                          <value name="DIVIDEND">
                                                            <shadow type="math_number" id="iy$xPJVc:g=bcolI1bFD">
                                                              <field name="NUM">64</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="}%sfc15Dcwyaj7Hq`|;V">
                                                              <field name="OP">DIVIDE</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="ss`$pp4N5KKR^%MLk[D%">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="variables_get" id="si[BlX(p=RNnGJw3wXaW">
                                                                  <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x" variabletype="">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="sG@8|B`I9EJyZbW3Bw~?">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_number" id="#U$78u5#qCOP:~(}+-+^">
                                                                  <field name="NUM">3600</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="DIVISOR">
                                                            <shadow type="math_number" id="B/S$l*V/xyMAQJgIdrE4">
                                                              <field name="NUM">24</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="O-%R!_LPrg}X?k?Q[RSR">
                                                      <field name="VAR" id=";M]VNL_)$W;Cm)4apwb]" variabletype="">Minuten</field>
                                                      <value name="VALUE">
                                                        <block type="math_round" id="~*hJK[4dJ*K}#VV%O,qV">
                                                          <field name="OP">ROUNDDOWN</field>
                                                          <value name="NUM">
                                                            <shadow type="math_number" id="~S?pQpLpEFpa}{mQW}9u">
                                                              <field name="NUM">3.1</field>
                                                            </shadow>
                                                            <block type="math_modulo" id="hN/x.G#X6Y9]yDgL}EH;">
                                                              <value name="DIVIDEND">
                                                                <shadow type="math_number" id="iy$xPJVc:g=bcolI1bFD">
                                                                  <field name="NUM">64</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="?UI^*D?-Os8}ADtscPBk">
                                                                  <field name="OP">DIVIDE</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="ss`$pp4N5KKR^%MLk[D%">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="+1`ruy!k=mJDZ9V.E%jh">
                                                                      <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x" variabletype="">Dauer</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="sG@8|B`I9EJyZbW3Bw~?">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_number" id="JW-Vm8M6qw.R$AE-Dp,h">
                                                                      <field name="NUM">60</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="DIVISOR">
                                                                <shadow type="math_number" id="~%aHqA8i)W;b43`,6.(0">
                                                                  <field name="NUM">60</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="variables_set" id="+lLLq,w7.p(XvQo:l~n{">
                                                          <field name="VAR" id="Jyr]SpQCUB)T*mci^oil" variabletype="">Sekunden</field>
                                                          <value name="VALUE">
                                                            <block type="math_modulo" id="l%R%U7ScDU47,66yP*Ia">
                                                              <value name="DIVIDEND">
                                                                <shadow type="math_number" id="iy$xPJVc:g=bcolI1bFD">
                                                                  <field name="NUM">64</field>
                                                                </shadow>
                                                                <block type="variables_get" id="iS^1Rsjx{XDVs0f5`uGK">
                                                                  <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x" variabletype="">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="DIVISOR">
                                                                <shadow type="math_number" id="uu!+F}OJ.-0mNo;2N0v+">
                                                                  <field name="NUM">60</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="debug" id="mkn)y*;|Wt{}h*+;p+v9">
                                                              <field name="Severity">log</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="R(ErJ%YhfFC1l/;G4VGb">
                                                                  <field name="TEXT">test</field>
                                                                </shadow>
                                                                <block type="text_join" id="IMQM|rT6)3.U!t0gzDeE">
                                                                  <mutation items="8"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="variables_get" id="AEuZrhGcq`:b9D$1EUv2">
                                                                      <field name="VAR" id=")tGESEmT]pYF.v)Eih|^" variabletype="">Tage</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="text" id="-PZE@i1lwivG:)mE1RBF">
                                                                      <field name="TEXT">T </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD2">
                                                                    <block type="variables_get" id="ahR|//tRz@U^a(7*H#(e">
                                                                      <field name="VAR" id="H68M?Flzm6{D=L;BBK%C" variabletype="">Stunden</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD3">
                                                                    <block type="text" id="U6Jsi4f^Pf5_3Rt?7YbK">
                                                                      <field name="TEXT">S </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD4">
                                                                    <block type="variables_get" id="1o2w?6.gthlIa^+0_QaP">
                                                                      <field name="VAR" id=";M]VNL_)$W;Cm)4apwb]" variabletype="">Minuten</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD5">
                                                                    <block type="text" id="r60i]S/ZsD@n(*_|C9$|">
                                                                      <field name="TEXT">M </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD6">
                                                                    <block type="variables_get" id="JH;~zJ28k}}/dhdHzsmF">
                                                                      <field name="VAR" id="Jyr]SpQCUB)T*mci^oil" variabletype="">Sekunden</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD7">
                                                                    <block type="text" id="r1vCJbBz?HBY0B$x4z_Z">
                                                                      <field name="TEXT">s</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </xml>
                          

                          UweRLP 1 Reply Last reply Reply Quote 0
                          • UweRLP
                            UweRLP @t-master last edited by

                            @t-master Nunja ich erhalte sowohl mit deinem wie auch mit meinem Beispiel die gleichen Ergebnisse, vermute daher das beim Nachbau etwas falsch gelaufen ist.

                            t-master 1 Reply Last reply Reply Quote 0
                            • t-master
                              t-master @UweRLP last edited by t-master

                              @UweRLP
                              Ja hast recht, ich habe meinen Fehler gefunden. Jetzt erhalte ich auch die gleichen richtigen Ergebnisse.

                              <xml xmlns="http://www.w3.org/1999/xhtml">
                                <variables>
                                  <variable type="" id="@h7,lB{XVMa/R%4q*EBG">Dauer</variable>
                                  <variable type="" id="ZjYr5O=dyXD62HxjH,`;">Tage</variable>
                                  <variable type="" id="zx@[YtHQ,^jhn3UUA}`C">Stunden</variable>
                                  <variable type="" id="uQol*n2S]hYZHa46`]co">Minuten</variable>
                                  <variable type="" id="R:@SYgVM}$6p!f:@$ROn">Sekunden</variable>
                                </variables>
                                <block type="variables_set" id="MZ$$I4|!:O.INxSJqV{o" x="388" y="38">
                                  <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="Y.`?`}r^eJg4hIf/@T$$">
                                      <field name="NUM">453786</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="*M$%T@}4_7)l9Vi.l-qM">
                                      <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                      <value name="VALUE">
                                        <block type="math_round" id="Zd8b7D@dKPT/d~O(LxlN">
                                          <field name="OP">ROUNDDOWN</field>
                                          <value name="NUM">
                                            <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                              <field name="NUM">3.1</field>
                                            </shadow>
                                            <block type="math_arithmetic" id="CRv7+RZocPF,VSoIb}zd">
                                              <field name="OP">DIVIDE</field>
                                              <value name="A">
                                                <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="4/m^c`+89[/PuFa{EoD@">
                                                  <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="math_number" id="KJoj4xWAkbopaJ2OIArK">
                                                  <field name="NUM">86400</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="`K9E6^6|#XB}yWm(Yz|0">
                                          <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                          <value name="VALUE">
                                            <block type="math_round" id="vKh-*_#q/oa0WnZn6r9c">
                                              <field name="OP">ROUNDDOWN</field>
                                              <value name="NUM">
                                                <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                  <field name="NUM">0</field>
                                                </shadow>
                                                <block type="math_arithmetic" id="U7PeX!MK]Dm0TD]]F#]2">
                                                  <field name="OP">DIVIDE</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="W@zw=l]/x.BqHbhZj2?Y">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="math_modulo" id="g_4v,SV^i}U)h:n9Gh@Z">
                                                      <value name="DIVIDEND">
                                                        <shadow type="math_number" id="hWb(QJk)xX3*d3hnWu`q">
                                                          <field name="NUM">64</field>
                                                        </shadow>
                                                        <block type="variables_get" id="E;l-WHWoYiz)Q!q^b}i[">
                                                          <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                        </block>
                                                      </value>
                                                      <value name="DIVISOR">
                                                        <shadow type="math_number" id="RM91qS`9t2umLlArQG:m">
                                                          <field name="NUM">86400</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="N0D-Cx;73Iq=ZPwDLn0i">
                                                      <field name="NUM">3600</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="ZViRP1+s,Pqqxp6X@CUa">
                                              <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                              <value name="VALUE">
                                                <block type="math_round" id="7d9nA6s*$89BLikDYeCi">
                                                  <field name="OP">ROUNDDOWN</field>
                                                  <value name="NUM">
                                                    <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                      <field name="NUM">3.1</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="^}P_nUF:bRE;bQa|~J%o">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_modulo" id="%q#_!R%J_AQq{mYTsp`=">
                                                          <value name="DIVIDEND">
                                                            <shadow type="math_number" id="hWb(QJk)xX3*d3hnWu`q">
                                                              <field name="NUM">64</field>
                                                            </shadow>
                                                            <block type="variables_get" id="N/]jDL^;?I+SQ~j0yX]P">
                                                              <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="DIVISOR">
                                                            <shadow type="math_number" id="RM91qS`9t2umLlArQG:m">
                                                              <field name="NUM">0</field>
                                                            </shadow>
                                                            <block type="math_number" id="8,;yE@J[}L+N7!k%6,O:">
                                                              <field name="NUM">3600</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_number" id="Jy8^MH;e%T7=!9Q?D,b8">
                                                          <field name="NUM">60</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="r9FS=aO!0i[4sYRvtulX">
                                                  <field name="VAR" id="R:@SYgVM}$6p!f:@$ROn" variabletype="">Sekunden</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="B%AK$#6l!9`b0^XHoq^e">
                                                      <field name="OP">MINUS</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="nLTUO4[(@rA$Ro.g#X/t">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="TnT|[7k)3QP@SAKPj8LM">
                                                          <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="m=|aFZeC0/?NuZhRu#t`">
                                                          <field name="NUM">0</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="MuVCMBRJMZ~P?kI%u:K(">
                                                          <field name="OP">ADD</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="BP%45BEV87}5,]aCnT3z">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id=".ezw^}w)$K57r=ffVgWB">
                                                              <field name="OP">ADD</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="#%@;[(NoVuya`2d|9=Qr">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="@x[Z@MfRc?%j@An9R)2-">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="|;Mn+R6w$j@Lv,nWKv+H">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="w4!2@fw]]_gWVD-qiTJE">
                                                                      <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id=";7%M,EH/VSr-1K5zB:^|">
                                                                      <field name="NUM">3600</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="yxLG=)imuID5$x/OGTfJ">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id=";MSuo[[oQNm,?nGq;1Lb">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="^E9c*,IRz]/whR)NU?{W">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="XrsH:/rfq;yvc]ycbiS6">
                                                                      <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="D1u:cDI)80hOOOJ7WjTW">
                                                                      <field name="NUM">60</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="EpQVkqi,2qIU1:oD^PzQ">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="OtK[w%UX![4OuY:u7coq">
                                                              <field name="OP">MULTIPLY</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="variables_get" id="l~j%:ai*hs/lpkpA$_k?">
                                                                  <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_number" id="+CBPoOMegd**]T#.uR8G">
                                                                  <field name="NUM">86400</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="q?Dd)-DXH|oPh4yYZkd{">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="MWVap7n,(1|iD+(buzI)">
                                                          <field name="TEXT">test</field>
                                                        </shadow>
                                                        <block type="text_join" id="zmsc+]S~}K,qth1p]A#}">
                                                          <mutation items="8"></mutation>
                                                          <value name="ADD0">
                                                            <block type="variables_get" id="uVy.^Gx=Jp#M+)^Yok#;">
                                                              <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="text" id="}v(UY@lvI$=,54m]ZE$+">
                                                              <field name="TEXT"> T </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD2">
                                                            <block type="variables_get" id="irAjIZP+}KEn0X)y{]qF">
                                                              <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD3">
                                                            <block type="text" id="n?gAXJiM`8m|Wd$%[-IL">
                                                              <field name="TEXT"> S </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD4">
                                                            <block type="variables_get" id="0BmZXk6p6$^MR}NP[:6E">
                                                              <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD5">
                                                            <block type="text" id="gXT@ZE5;_IA4#OH,z${-">
                                                              <field name="TEXT"> M </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD6">
                                                            <block type="variables_get" id="A8gKB9de[C/+HDQ._[Sg">
                                                              <field name="VAR" id="R:@SYgVM}$6p!f:@$ROn" variabletype="">Sekunden</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD7">
                                                            <block type="text" id="IM*NH(+eKA;A[DNVeIm0">
                                                              <field name="TEXT"> s </field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </xml>
                               
                              [/s]
                              
                              R 1 Reply Last reply Reply Quote 1
                              • H
                                hotspot_2 last edited by

                                Hallo zusammen,

                                ich bin gerade dabei einen Minutenwert in Tage, Stunden und Minuten umzurechnen in Anlehnung an dieses Blockly hier. Leider klappt es bei mir nicht wie gewünscht.

                                Könntet ihr mal drüberschauen warum das nicht hinhaut? Danke schon mal.

                                bc80f4fb-de68-4c16-9053-54c27de8e43a-image.png

                                1 Reply Last reply Reply Quote 0
                                • R
                                  RUSviktorGER @t-master last edited by

                                  @t-master said in [Vorlage] Blockly Umrechnung von Sekunden in Stunden, Minuten und Sekunden:

                                  @UweRLP
                                  Ja hast recht, ich habe meinen Fehler gefunden. Jetzt erhalte ich auch die gleichen richtigen Ergebnisse.

                                  <xml xmlns="http://www.w3.org/1999/xhtml">
                                    <variables>
                                      <variable type="" id="@h7,lB{XVMa/R%4q*EBG">Dauer</variable>
                                      <variable type="" id="ZjYr5O=dyXD62HxjH,`;">Tage</variable>
                                      <variable type="" id="zx@[YtHQ,^jhn3UUA}`C">Stunden</variable>
                                      <variable type="" id="uQol*n2S]hYZHa46`]co">Minuten</variable>
                                      <variable type="" id="R:@SYgVM}$6p!f:@$ROn">Sekunden</variable>
                                    </variables>
                                    <block type="variables_set" id="MZ$$I4|!:O.INxSJqV{o" x="388" y="38">
                                      <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="Y.`?`}r^eJg4hIf/@T$$">
                                          <field name="NUM">453786</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="*M$%T@}4_7)l9Vi.l-qM">
                                          <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                          <value name="VALUE">
                                            <block type="math_round" id="Zd8b7D@dKPT/d~O(LxlN">
                                              <field name="OP">ROUNDDOWN</field>
                                              <value name="NUM">
                                                <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                  <field name="NUM">3.1</field>
                                                </shadow>
                                                <block type="math_arithmetic" id="CRv7+RZocPF,VSoIb}zd">
                                                  <field name="OP">DIVIDE</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="4/m^c`+89[/PuFa{EoD@">
                                                      <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="math_number" id="KJoj4xWAkbopaJ2OIArK">
                                                      <field name="NUM">86400</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="`K9E6^6|#XB}yWm(Yz|0">
                                              <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                              <value name="VALUE">
                                                <block type="math_round" id="vKh-*_#q/oa0WnZn6r9c">
                                                  <field name="OP">ROUNDDOWN</field>
                                                  <value name="NUM">
                                                    <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                      <field name="NUM">0</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="U7PeX!MK]Dm0TD]]F#]2">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="W@zw=l]/x.BqHbhZj2?Y">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_modulo" id="g_4v,SV^i}U)h:n9Gh@Z">
                                                          <value name="DIVIDEND">
                                                            <shadow type="math_number" id="hWb(QJk)xX3*d3hnWu`q">
                                                              <field name="NUM">64</field>
                                                            </shadow>
                                                            <block type="variables_get" id="E;l-WHWoYiz)Q!q^b}i[">
                                                              <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="DIVISOR">
                                                            <shadow type="math_number" id="RM91qS`9t2umLlArQG:m">
                                                              <field name="NUM">86400</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="N0D-Cx;73Iq=ZPwDLn0i">
                                                          <field name="NUM">3600</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="ZViRP1+s,Pqqxp6X@CUa">
                                                  <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                  <value name="VALUE">
                                                    <block type="math_round" id="7d9nA6s*$89BLikDYeCi">
                                                      <field name="OP">ROUNDDOWN</field>
                                                      <value name="NUM">
                                                        <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                          <field name="NUM">3.1</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="^}P_nUF:bRE;bQa|~J%o">
                                                          <field name="OP">DIVIDE</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_modulo" id="%q#_!R%J_AQq{mYTsp`=">
                                                              <value name="DIVIDEND">
                                                                <shadow type="math_number" id="hWb(QJk)xX3*d3hnWu`q">
                                                                  <field name="NUM">64</field>
                                                                </shadow>
                                                                <block type="variables_get" id="N/]jDL^;?I+SQ~j0yX]P">
                                                                  <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="DIVISOR">
                                                                <shadow type="math_number" id="RM91qS`9t2umLlArQG:m">
                                                                  <field name="NUM">0</field>
                                                                </shadow>
                                                                <block type="math_number" id="8,;yE@J[}L+N7!k%6,O:">
                                                                  <field name="NUM">3600</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_number" id="Jy8^MH;e%T7=!9Q?D,b8">
                                                              <field name="NUM">60</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="r9FS=aO!0i[4sYRvtulX">
                                                      <field name="VAR" id="R:@SYgVM}$6p!f:@$ROn" variabletype="">Sekunden</field>
                                                      <value name="VALUE">
                                                        <block type="math_arithmetic" id="B%AK$#6l!9`b0^XHoq^e">
                                                          <field name="OP">MINUS</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="nLTUO4[(@rA$Ro.g#X/t">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="TnT|[7k)3QP@SAKPj8LM">
                                                              <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="m=|aFZeC0/?NuZhRu#t`">
                                                              <field name="NUM">0</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="MuVCMBRJMZ~P?kI%u:K(">
                                                              <field name="OP">ADD</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="BP%45BEV87}5,]aCnT3z">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id=".ezw^}w)$K57r=ffVgWB">
                                                                  <field name="OP">ADD</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="#%@;[(NoVuya`2d|9=Qr">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="@x[Z@MfRc?%j@An9R)2-">
                                                                      <field name="OP">MULTIPLY</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="|;Mn+R6w$j@Lv,nWKv+H">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="w4!2@fw]]_gWVD-qiTJE">
                                                                          <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id=";7%M,EH/VSr-1K5zB:^|">
                                                                          <field name="NUM">3600</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="yxLG=)imuID5$x/OGTfJ">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id=";MSuo[[oQNm,?nGq;1Lb">
                                                                      <field name="OP">MULTIPLY</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="^E9c*,IRz]/whR)NU?{W">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="XrsH:/rfq;yvc]ycbiS6">
                                                                          <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id="D1u:cDI)80hOOOJ7WjTW">
                                                                          <field name="NUM">60</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="EpQVkqi,2qIU1:oD^PzQ">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="OtK[w%UX![4OuY:u7coq">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="l~j%:ai*hs/lpkpA$_k?">
                                                                      <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_number" id="+CBPoOMegd**]T#.uR8G">
                                                                      <field name="NUM">86400</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="debug" id="q?Dd)-DXH|oPh4yYZkd{">
                                                          <field name="Severity">log</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="MWVap7n,(1|iD+(buzI)">
                                                              <field name="TEXT">test</field>
                                                            </shadow>
                                                            <block type="text_join" id="zmsc+]S~}K,qth1p]A#}">
                                                              <mutation items="8"></mutation>
                                                              <value name="ADD0">
                                                                <block type="variables_get" id="uVy.^Gx=Jp#M+)^Yok#;">
                                                                  <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text" id="}v(UY@lvI$=,54m]ZE$+">
                                                                  <field name="TEXT"> T </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="variables_get" id="irAjIZP+}KEn0X)y{]qF">
                                                                  <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD3">
                                                                <block type="text" id="n?gAXJiM`8m|Wd$%[-IL">
                                                                  <field name="TEXT"> S </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD4">
                                                                <block type="variables_get" id="0BmZXk6p6$^MR}NP[:6E">
                                                                  <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD5">
                                                                <block type="text" id="gXT@ZE5;_IA4#OH,z${-">
                                                                  <field name="TEXT"> M </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD6">
                                                                <block type="variables_get" id="A8gKB9de[C/+HDQ._[Sg">
                                                                  <field name="VAR" id="R:@SYgVM}$6p!f:@$ROn" variabletype="">Sekunden</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD7">
                                                                <block type="text" id="IM*NH(+eKA;A[DNVeIm0">
                                                                  <field name="TEXT"> s </field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </xml>
                                   
                                  [/s]
                                  

                                  @t-master said in [Vorlage] Blockly Umrechnung von Sekunden in Stunden, Minuten und Sekunden:

                                  @UweRLP
                                  Ja hast recht, ich habe meinen Fehler gefunden. Jetzt erhalte ich auch die gleichen richtigen Ergebnisse.

                                  <xml xmlns="http://www.w3.org/1999/xhtml">
                                    <variables>
                                      <variable type="" id="@h7,lB{XVMa/R%4q*EBG">Dauer</variable>
                                      <variable type="" id="ZjYr5O=dyXD62HxjH,`;">Tage</variable>
                                      <variable type="" id="zx@[YtHQ,^jhn3UUA}`C">Stunden</variable>
                                      <variable type="" id="uQol*n2S]hYZHa46`]co">Minuten</variable>
                                      <variable type="" id="R:@SYgVM}$6p!f:@$ROn">Sekunden</variable>
                                    </variables>
                                    <block type="variables_set" id="MZ$$I4|!:O.INxSJqV{o" x="388" y="38">
                                      <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="Y.`?`}r^eJg4hIf/@T$$">
                                          <field name="NUM">453786</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="*M$%T@}4_7)l9Vi.l-qM">
                                          <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                          <value name="VALUE">
                                            <block type="math_round" id="Zd8b7D@dKPT/d~O(LxlN">
                                              <field name="OP">ROUNDDOWN</field>
                                              <value name="NUM">
                                                <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                  <field name="NUM">3.1</field>
                                                </shadow>
                                                <block type="math_arithmetic" id="CRv7+RZocPF,VSoIb}zd">
                                                  <field name="OP">DIVIDE</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="4/m^c`+89[/PuFa{EoD@">
                                                      <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="math_number" id="KJoj4xWAkbopaJ2OIArK">
                                                      <field name="NUM">86400</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="`K9E6^6|#XB}yWm(Yz|0">
                                              <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                              <value name="VALUE">
                                                <block type="math_round" id="vKh-*_#q/oa0WnZn6r9c">
                                                  <field name="OP">ROUNDDOWN</field>
                                                  <value name="NUM">
                                                    <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                      <field name="NUM">0</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="U7PeX!MK]Dm0TD]]F#]2">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="W@zw=l]/x.BqHbhZj2?Y">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_modulo" id="g_4v,SV^i}U)h:n9Gh@Z">
                                                          <value name="DIVIDEND">
                                                            <shadow type="math_number" id="hWb(QJk)xX3*d3hnWu`q">
                                                              <field name="NUM">64</field>
                                                            </shadow>
                                                            <block type="variables_get" id="E;l-WHWoYiz)Q!q^b}i[">
                                                              <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="DIVISOR">
                                                            <shadow type="math_number" id="RM91qS`9t2umLlArQG:m">
                                                              <field name="NUM">86400</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="N0D-Cx;73Iq=ZPwDLn0i">
                                                          <field name="NUM">3600</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="ZViRP1+s,Pqqxp6X@CUa">
                                                  <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                  <value name="VALUE">
                                                    <block type="math_round" id="7d9nA6s*$89BLikDYeCi">
                                                      <field name="OP">ROUNDDOWN</field>
                                                      <value name="NUM">
                                                        <shadow type="math_number" id="7=Po#YM#X$@AQZ)-SO}0">
                                                          <field name="NUM">3.1</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="^}P_nUF:bRE;bQa|~J%o">
                                                          <field name="OP">DIVIDE</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_modulo" id="%q#_!R%J_AQq{mYTsp`=">
                                                              <value name="DIVIDEND">
                                                                <shadow type="math_number" id="hWb(QJk)xX3*d3hnWu`q">
                                                                  <field name="NUM">64</field>
                                                                </shadow>
                                                                <block type="variables_get" id="N/]jDL^;?I+SQ~j0yX]P">
                                                                  <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="DIVISOR">
                                                                <shadow type="math_number" id="RM91qS`9t2umLlArQG:m">
                                                                  <field name="NUM">0</field>
                                                                </shadow>
                                                                <block type="math_number" id="8,;yE@J[}L+N7!k%6,O:">
                                                                  <field name="NUM">3600</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_number" id="Jy8^MH;e%T7=!9Q?D,b8">
                                                              <field name="NUM">60</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="r9FS=aO!0i[4sYRvtulX">
                                                      <field name="VAR" id="R:@SYgVM}$6p!f:@$ROn" variabletype="">Sekunden</field>
                                                      <value name="VALUE">
                                                        <block type="math_arithmetic" id="B%AK$#6l!9`b0^XHoq^e">
                                                          <field name="OP">MINUS</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="nLTUO4[(@rA$Ro.g#X/t">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="TnT|[7k)3QP@SAKPj8LM">
                                                              <field name="VAR" id="@h7,lB{XVMa/R%4q*EBG" variabletype="">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="m=|aFZeC0/?NuZhRu#t`">
                                                              <field name="NUM">0</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="MuVCMBRJMZ~P?kI%u:K(">
                                                              <field name="OP">ADD</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="BP%45BEV87}5,]aCnT3z">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id=".ezw^}w)$K57r=ffVgWB">
                                                                  <field name="OP">ADD</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="#%@;[(NoVuya`2d|9=Qr">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="@x[Z@MfRc?%j@An9R)2-">
                                                                      <field name="OP">MULTIPLY</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="|;Mn+R6w$j@Lv,nWKv+H">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="w4!2@fw]]_gWVD-qiTJE">
                                                                          <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id=";7%M,EH/VSr-1K5zB:^|">
                                                                          <field name="NUM">3600</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="yxLG=)imuID5$x/OGTfJ">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id=";MSuo[[oQNm,?nGq;1Lb">
                                                                      <field name="OP">MULTIPLY</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="^E9c*,IRz]/whR)NU?{W">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="XrsH:/rfq;yvc]ycbiS6">
                                                                          <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id="D1u:cDI)80hOOOJ7WjTW">
                                                                          <field name="NUM">60</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="EpQVkqi,2qIU1:oD^PzQ">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="OtK[w%UX![4OuY:u7coq">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="JMfDk@n8mN#(SjUdm)#B">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="l~j%:ai*hs/lpkpA$_k?">
                                                                      <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="keY2@Y_?DjGl}P|AOvWD">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_number" id="+CBPoOMegd**]T#.uR8G">
                                                                      <field name="NUM">86400</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="debug" id="q?Dd)-DXH|oPh4yYZkd{">
                                                          <field name="Severity">log</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="MWVap7n,(1|iD+(buzI)">
                                                              <field name="TEXT">test</field>
                                                            </shadow>
                                                            <block type="text_join" id="zmsc+]S~}K,qth1p]A#}">
                                                              <mutation items="8"></mutation>
                                                              <value name="ADD0">
                                                                <block type="variables_get" id="uVy.^Gx=Jp#M+)^Yok#;">
                                                                  <field name="VAR" id="ZjYr5O=dyXD62HxjH,`;" variabletype="">Tage</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text" id="}v(UY@lvI$=,54m]ZE$+">
                                                                  <field name="TEXT"> T </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="variables_get" id="irAjIZP+}KEn0X)y{]qF">
                                                                  <field name="VAR" id="zx@[YtHQ,^jhn3UUA}`C" variabletype="">Stunden</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD3">
                                                                <block type="text" id="n?gAXJiM`8m|Wd$%[-IL">
                                                                  <field name="TEXT"> S </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD4">
                                                                <block type="variables_get" id="0BmZXk6p6$^MR}NP[:6E">
                                                                  <field name="VAR" id="uQol*n2S]hYZHa46`]co" variabletype="">Minuten</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD5">
                                                                <block type="text" id="gXT@ZE5;_IA4#OH,z${-">
                                                                  <field name="TEXT"> M </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD6">
                                                                <block type="variables_get" id="A8gKB9de[C/+HDQ._[Sg">
                                                                  <field name="VAR" id="R:@SYgVM}$6p!f:@$ROn" variabletype="">Sekunden</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD7">
                                                                <block type="text" id="IM*NH(+eKA;A[DNVeIm0">
                                                                  <field name="TEXT"> s </field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </xml>
                                   
                                  [/s]
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • X
                                    X-R4Y last edited by

                                    Nette Vorlage, gibt es noch die Möglichkeit die Minuten auf 2-stellig umzuwandeln (wenn 0-9 Minuten) wird es halt nicht als 01 usw. dargestellt. Wäre nur so ne Idee zum "perfekten" umsetzen.

                                    UweRLP 1 Reply Last reply Reply Quote 0
                                    • UweRLP
                                      UweRLP @X-R4Y last edited by UweRLP

                                      @x-r4y Ich versuche mal zu erklären.

                                      Die Zahl in String wandeln, dem String eine 0 voransetzen dann von Recht zwei stellen aus diesem String.Zahl zweistellig.png

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

                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      462
                                      Online

                                      31.9k
                                      Users

                                      80.1k
                                      Topics

                                      1.3m
                                      Posts

                                      11
                                      20
                                      7410
                                      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