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

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst] Kodi: Enduhrzeit berechnen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    15
    1
    204

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.4k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

[gelöst] Kodi: Enduhrzeit berechnen

Geplant Angeheftet Gesperrt Verschoben Blockly
44 Beiträge 5 Kommentatoren 2.1k Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • K Kuddel

    @dos1973 ja das mit seek macht sinn. habe ich direkt mit eingebaut

    D Offline
    D Offline
    dos1973
    schrieb am zuletzt editiert von dos1973
    #10

    @Kuddel

    am liebsten wäre es mir, wenn eine Zeit Aktualisierung bei ganzen Zahlen des "Seek" erfolg. Aktuell zeigt der DP den Wert "27.0689" in % aber ich wüsste nicht wie und wo ich das anpasse/ anheften müsste.
    Ich stelle mich schwer mit Blockly :-(

    K 1 Antwort Letzte Antwort
    0
    • D dos1973

      @Kuddel

      am liebsten wäre es mir, wenn eine Zeit Aktualisierung bei ganzen Zahlen des "Seek" erfolg. Aktuell zeigt der DP den Wert "27.0689" in % aber ich wüsste nicht wie und wo ich das anpasse/ anheften müsste.
      Ich stelle mich schwer mit Blockly :-(

      K Offline
      K Offline
      Kuddel
      schrieb am zuletzt editiert von
      #11

      @dos1973 wird glaube nicht funktionieren.

      wenn man seek als Trigger nimmt, löst das Skript bei jeder noch so kleinen Änderung vom seek wert aus.

      man könnte evtl. versuchen mit einmal falls Block zu prüfen ob es ein *.0 wert ist und nur dann die Berechnung ausführen

      D paul53P 2 Antworten Letzte Antwort
      0
      • K Kuddel

        @dos1973 wird glaube nicht funktionieren.

        wenn man seek als Trigger nimmt, löst das Skript bei jeder noch so kleinen Änderung vom seek wert aus.

        man könnte evtl. versuchen mit einmal falls Block zu prüfen ob es ein *.0 wert ist und nur dann die Berechnung ausführen

        D Offline
        D Offline
        dos1973
        schrieb am zuletzt editiert von dos1973
        #12

        @Kuddel
        Ich habe den Ansatz Verfolgt bei Änderung von Seek ein Timeout zu setzen (2-5sekunden) und dann zu aktualisieren.
        aber hat bisher nicht gefruchtet

        E

        K 1 Antwort Letzte Antwort
        0
        • K Kuddel

          @dos1973 wird glaube nicht funktionieren.

          wenn man seek als Trigger nimmt, löst das Skript bei jeder noch so kleinen Änderung vom seek wert aus.

          man könnte evtl. versuchen mit einmal falls Block zu prüfen ob es ein *.0 wert ist und nur dann die Berechnung ausführen

          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von
          #13

          @Kuddel sagte:

          prüfen ob es ein *.0 wert

          Die Prüfung wird nur selten erfolgreich sein. Besser runden und auf Änderung zum vorherigen gerundeten Wert prüfen.

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          1 Antwort Letzte Antwort
          0
          • D dos1973

            @Kuddel
            Ich habe den Ansatz Verfolgt bei Änderung von Seek ein Timeout zu setzen (2-5sekunden) und dann zu aktualisieren.
            aber hat bisher nicht gefruchtet

            E

            K Offline
            K Offline
            Kuddel
            schrieb am zuletzt editiert von
            #14

            @dos1973 macht auch keinen sinn. das skript startet ja trotzdem bei jeder änderung. die berechnung folgt dann nur ein paar sekunden später

            D 1 Antwort Letzte Antwort
            0
            • K Kuddel

              @dos1973 macht auch keinen sinn. das skript startet ja trotzdem bei jeder änderung. die berechnung folgt dann nur ein paar sekunden später

              D Offline
              D Offline
              dos1973
              schrieb am zuletzt editiert von
              #15

              @Kuddel
              Soll ja auch, ich will ja die ende Uhrzeit haben.

              Oder haben wir ein Missverständnis ?

              D 1 Antwort Letzte Antwort
              0
              • D dos1973

                @Kuddel
                Soll ja auch, ich will ja die ende Uhrzeit haben.

                Oder haben wir ein Missverständnis ?

                D Offline
                D Offline
                dos1973
                schrieb am zuletzt editiert von
                #16

                @paul53
                Es ist nicht im Sekundenbereich,
                Eher im ms Sekunden Bereich wo das Script dann immer ausgeführt wird. Ich denke dass kann dann schon zu Engpässen führen

                K 3 Antworten Letzte Antwort
                0
                • D dos1973

                  @paul53
                  Es ist nicht im Sekundenbereich,
                  Eher im ms Sekunden Bereich wo das Script dann immer ausgeführt wird. Ich denke dass kann dann schon zu Engpässen führen

                  K Offline
                  K Offline
                  Kuddel
                  schrieb am zuletzt editiert von
                  #17

                  @dos1973 das finde ich auch.

                  also den trigger selber mit kodi.0.state und kodi.0.seek wird man nicht verbessern können.

                  somit startet das skirpt quasi permanent.

                  Entweder prüft man jetzt auf den % Wert, sodass die weitere Berechnung nicht ausgeführt wird.

                  Oder man baut das Skript komplett um:

                  Trigger = kodi.0.state

                  wenn state = play -> alle 1000ms Schleife, die die Berechnung durchführt.

                  wenn state = stop -> beende Schleife

                  1 Antwort Letzte Antwort
                  0
                  • D dos1973

                    @paul53
                    Es ist nicht im Sekundenbereich,
                    Eher im ms Sekunden Bereich wo das Script dann immer ausgeführt wird. Ich denke dass kann dann schon zu Engpässen führen

                    K Offline
                    K Offline
                    Kuddel
                    schrieb am zuletzt editiert von Kuddel
                    #18

                    @dos1973 habe mein Skript nochmal umgebaut.

                    Als Trigger nehme ich nach wie vor kodi.0.state.

                    Wenn state = play oder pause -> Skript läuft in einer Schleife, alle 30 Sekunden

                    Somit wird auch während einer Pause sowie wenn man Spult die Endzeit korrekt berechnet.

                    Export:

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable type="interval" id="Pause">Pause</variable>
                       <variable id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</variable>
                       <variable id="Gv49fQ40~+/ya6#JMvO}">time_total</variable>
                       <variable id="8?J4Jmf7%_-wS9!yell|">time</variable>
                       <variable id="z6@)Eo%V776?qOlzgeJq">sekunden_total</variable>
                       <variable id="c70ch.|4qGYP3!UEvS8x">sekunden</variable>
                       <variable id="7gbI~lkqQ~M|C;mJ+cDq">i</variable>
                       <variable id="fB}3.DkAG[Zns[jkc^B)">diff</variable>
                     </variables>
                     <block type="on_ext" id="q-.)uV_$xX9EqI#0)1V{" x="-37" y="-270">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="3Y]sGqJzX97#Y#bnc%2B">
                           <field name="oid">kodi.0.state</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="#KCO]0`h|hPacKdL)=A2">
                           <mutation else="1"></mutation>
                           <value name="IF0">
                             <block type="logic_operation" id="Fk*MZyx-?jaWVfOUD74{" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_operation" id="7^bj8pwH}Zu%AB)noQ?@" inline="false">
                                   <field name="OP">OR</field>
                                   <value name="A">
                                     <block type="logic_compare" id="f;Y93jeAj5hLE=HpAXci">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id="+oIYTrzhXShgXD?-dx?!">
                                           <field name="ATTR">val</field>
                                           <field name="OID">kodi.0.state</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="text" id="L7`/vLtiabj}GQ5_)n?I">
                                           <field name="TEXT">play</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="q@QCe9klq^hq~N~GDy45">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id=".a9WA=7@YR;|n8VLbG6V">
                                           <field name="ATTR">val</field>
                                           <field name="OID">kodi.0.state</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="text" id=".JZ%Qo2ld8Wni+Ay9fQu">
                                           <field name="TEXT">pause</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_compare" id="S;@tsc#Y9J{l-nz(8#%L">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="variables_get" id="_lYj.M;X6{:Ig+t1H-OG">
                                       <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_boolean" id=":eRp?twu(kMNOV|nraj#">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="timeouts_setinterval" id="uGdM,D)hhj,Ipm210S*$">
                               <field name="NAME">Pause</field>
                               <field name="INTERVAL">30000</field>
                               <field name="UNIT">ms</field>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id="0o{kX1g9TrRziofKKE`n">
                                   <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="57_A}S_9aHo-D7/*Q-bz">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="fTK`7dy@}I9{xOUk:fdm">
                                       <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                       <value name="VALUE">
                                         <block type="lists_split" id="fSNHlFM[e|2s~?~WLoA]">
                                           <mutation mode="SPLIT"></mutation>
                                           <field name="MODE">SPLIT</field>
                                           <value name="INPUT">
                                             <block type="get_value" id="%}I/[z=}v|bA_s+cN3T+">
                                               <field name="ATTR">val</field>
                                               <field name="OID">kodi.0.info.playing_time_total</field>
                                             </block>
                                           </value>
                                           <value name="DELIM">
                                             <shadow type="text" id="bO/MuTT:URPjI@SOF^wu">
                                               <field name="TEXT">:</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="3L:9B.c/-jdK~YPS;}kk">
                                           <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                           <value name="VALUE">
                                             <block type="lists_split" id="m0vWY?4A}Fy?zECIMa-g">
                                               <mutation mode="SPLIT"></mutation>
                                               <field name="MODE">SPLIT</field>
                                               <value name="INPUT">
                                                 <block type="get_value" id="cmBA^z.eb9hODfdHQbW8">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">kodi.0.info.playing_time</field>
                                                 </block>
                                               </value>
                                               <value name="DELIM">
                                                 <shadow type="text" id=";o/sw@k#dD0mWkC4+b)M">
                                                   <field name="TEXT">:</field>
                                                 </shadow>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id=";/]R)Ct0Dfu6i-d@fN1=">
                                               <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="!A%IT%#arX*{$UY8=Kva">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="%LYJ{05i.|T3]O%OZlti">
                                                   <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="-:ZTaSM~NWM#h9LoWuBz">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="controls_for" id="2R-$*vTVI{p#n(T8RV.d">
                                                       <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                       <value name="FROM">
                                                         <shadow type="math_number" id="yo3lqjuQw}eovRb+XXQ?">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                       </value>
                                                       <value name="TO">
                                                         <shadow type="math_number">
                                                           <field name="NUM">10</field>
                                                         </shadow>
                                                         <block type="lists_length" id="030ssz#WyY6qdm{Y]+%7">
                                                           <value name="VALUE">
                                                             <block type="variables_get" id="LtjmBy}A-?%QRfowFhZH">
                                                               <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="BY">
                                                         <shadow type="math_number" id="W4)e3sbN-C[AtksvJyb0">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                       </value>
                                                       <statement name="DO">
                                                         <block type="math_change" id="gZ[fn:P}L%w5Hu*/k[w]">
                                                           <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                           <value name="DELTA">
                                                             <shadow type="math_number">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="math_arithmetic" id="_nrssb{}I|MM@7r=B2*[" inline="false">
                                                               <field name="OP">MULTIPLY</field>
                                                               <value name="A">
                                                                 <shadow type="math_number">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="math_arithmetic" id="?QRRgY%9F+.UW^4Wl#AO">
                                                                   <field name="OP">POWER</field>
                                                                   <value name="A">
                                                                     <shadow type="math_number" id="`nZhdJ)1xBsAmv:WOH{$">
                                                                       <field name="NUM">60</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="%5v;FD87a~}IdxMU?0vb">
                                                                       <field name="OP">MINUS</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="~kv8]AFICio,y}2%8r:A">
                                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number" id="By?4fEM=/cIUg=PVf-%.">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <value name="B">
                                                                 <shadow type="math_number">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="convert_tonumber" id="Xjk8qkB+rf0:[Z@JKl{4">
                                                                   <value name="VALUE">
                                                                     <block type="lists_getIndex" id="=M7:!eN*k,;Op`ncPBu)">
                                                                       <mutation statement="false" at="true"></mutation>
                                                                       <field name="MODE">GET</field>
                                                                       <field name="WHERE">FROM_END</field>
                                                                       <value name="VALUE">
                                                                         <block type="variables_get" id="4n4]sPE}}yOyCqIR6sK$">
                                                                           <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="AT">
                                                                         <block type="variables_get" id="5KN91f+6[?BIQQU^P+T/">
                                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </statement>
                                                       <next>
                                                         <block type="controls_for" id="/[|3}k{qYeK4wFiN6#lx">
                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                           <value name="FROM">
                                                             <shadow type="math_number" id="1FErI$q)qi=X^N_:%Js?">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                           </value>
                                                           <value name="TO">
                                                             <shadow type="math_number">
                                                               <field name="NUM">10</field>
                                                             </shadow>
                                                             <block type="lists_length" id="yJ$~7a^l4Gd#j:0c3$xr">
                                                               <value name="VALUE">
                                                                 <block type="variables_get" id="Lh*:^j)}o|0jC8rH:.-+">
                                                                   <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="BY">
                                                             <shadow type="math_number" id="T3rAediff*:%E88l7+4%">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                           </value>
                                                           <statement name="DO">
                                                             <block type="math_change" id="Bsy0,}!M#a)Xi$$B[t]z">
                                                               <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                               <value name="DELTA">
                                                                 <shadow type="math_number">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="math_arithmetic" id="ecXevA40kHBJjiNry:#^" inline="false">
                                                                   <field name="OP">MULTIPLY</field>
                                                                   <value name="A">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="K#Ey7v.v;+lcl{1f@5]H">
                                                                       <field name="OP">POWER</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number" id="a~E=mS#u_.VcC[jX^/;*">
                                                                           <field name="NUM">60</field>
                                                                         </shadow>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="math_arithmetic" id="p}_MS2!F;,r~o9#j=$`e">
                                                                           <field name="OP">MINUS</field>
                                                                           <value name="A">
                                                                             <shadow type="math_number">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                             <block type="variables_get" id="Wr7+iV$a;ynQ,P%0v/|h">
                                                                               <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="B">
                                                                             <shadow type="math_number" id="7DDk.nAP2`-o[3:5T/`V">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="convert_tonumber" id="95Wkc=Wn9wjOL/~emwC:">
                                                                       <value name="VALUE">
                                                                         <block type="lists_getIndex" id="):n}4;0GiBs#gE+_-.uf">
                                                                           <mutation statement="false" at="true"></mutation>
                                                                           <field name="MODE">GET</field>
                                                                           <field name="WHERE">FROM_END</field>
                                                                           <value name="VALUE">
                                                                             <block type="variables_get" id="WCs.rt_18?skHj|HC;)H">
                                                                               <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="AT">
                                                                             <block type="variables_get" id="dA]HyO~W)iY5ROXqc$PI">
                                                                               <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </statement>
                                                           <next>
                                                             <block type="variables_set" id="x8t?3^{cNVFaKtPFnFq9">
                                                               <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                               <value name="VALUE">
                                                                 <block type="math_arithmetic" id="2+`tDY!LQG^9AZO8#!ZQ" inline="false">
                                                                   <field name="OP">MULTIPLY</field>
                                                                   <value name="A">
                                                                     <shadow type="math_number" id="(_=}+a~Ov.r2s~-^a_*5">
                                                                       <field name="NUM">1000</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="D.`(%|9dOcm*(umN9bT@" inline="false">
                                                                       <field name="OP">MINUS</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="u7f(0GaP.#L;(fYVBLIF">
                                                                           <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="]@3~@l|_;uO[L%2ioP,k">
                                                                           <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="E.QKHpVBex}})iCx|o|3">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="text_join" id="r1UQi]J^lm7$v9OOADL%">
                                                                       <mutation items="2"></mutation>
                                                                       <value name="ADD0">
                                                                         <block type="convert_from_date" id="TgQBU@2m$Aam**8naRqf">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                           <field name="OPTION">hh:mm</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_arithmetic" id="vFX,u4337mHL^[94MZjL">
                                                                               <field name="OP">ADD</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="time_get" id="WGy*s;07oKI/J`GDI-x3">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                   <field name="OPTION">object</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="variables_get" id="%/#p`[h/wlvqSaXg{l2J">
                                                                                   <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <value name="ADD1">
                                                                         <block type="text" id="+v9neh|_70u#CP~sT+@%">
                                                                           <field name="TEXT"> Uhr</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                           <statement name="ELSE">
                             <block type="timeouts_clearinterval" id="Jb@;uzYL;m`:c=QqzD4L">
                               <field name="NAME">Pause</field>
                               <next>
                                 <block type="variables_set" id="iv;KGC[hF6MD=bcKz-}~">
                                   <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="V0z@IGk2vj.t5+#2j3f;">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="VSZMp_fJpd1OzYCY=~xN">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="text" id="b8vzkml]yd@f[0(Q`e(2">
                                           <field name="TEXT"></field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </statement>
                     </block>
                    </xml>
                    

                    1 Antwort Letzte Antwort
                    0
                    • D dos1973

                      @paul53
                      Es ist nicht im Sekundenbereich,
                      Eher im ms Sekunden Bereich wo das Script dann immer ausgeführt wird. Ich denke dass kann dann schon zu Engpässen führen

                      K Offline
                      K Offline
                      Kuddel
                      schrieb am zuletzt editiert von
                      #19

                      @dos1973 habe die Restzeit auch noch eingebaut:

                      92dfb3e3-3d6e-4b3f-9a31-73a05bd0a464-grafik.png

                      Das Skript läuft jetzt sekündlich, so lange kodi.0.state nicht gleich stop

                      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="q-.)uV_$xX9EqI#0)1V{" x="-37" y="-270">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="3Y]sGqJzX97#Y#bnc%2B">
                           <field name="oid">kodi.0.state</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="#KCO]0`h|hPacKdL)=A2">
                           <mutation else="1"></mutation>
                           <value name="IF0">
                             <block type="logic_operation" id="Fk*MZyx-?jaWVfOUD74{" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_compare" id="f;Y93jeAj5hLE=HpAXci">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="get_value" id="+oIYTrzhXShgXD?-dx?!">
                                       <field name="ATTR">val</field>
                                       <field name="OID">kodi.0.state</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="text" id="L7`/vLtiabj}GQ5_)n?I">
                                       <field name="TEXT">stop</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_compare" id="S;@tsc#Y9J{l-nz(8#%L">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="variables_get" id="_lYj.M;X6{:Ig+t1H-OG">
                                       <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_boolean" id=":eRp?twu(kMNOV|nraj#">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="timeouts_setinterval" id="uGdM,D)hhj,Ipm210S*$">
                               <field name="NAME">calc</field>
                               <field name="INTERVAL">1000</field>
                               <field name="UNIT">ms</field>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id="0o{kX1g9TrRziofKKE`n">
                                   <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="57_A}S_9aHo-D7/*Q-bz">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="fTK`7dy@}I9{xOUk:fdm">
                                       <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                       <value name="VALUE">
                                         <block type="lists_split" id="fSNHlFM[e|2s~?~WLoA]">
                                           <mutation mode="SPLIT"></mutation>
                                           <field name="MODE">SPLIT</field>
                                           <value name="INPUT">
                                             <block type="get_value" id="%}I/[z=}v|bA_s+cN3T+">
                                               <field name="ATTR">val</field>
                                               <field name="OID">kodi.0.info.playing_time_total</field>
                                             </block>
                                           </value>
                                           <value name="DELIM">
                                             <shadow type="text" id="bO/MuTT:URPjI@SOF^wu">
                                               <field name="TEXT">:</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="3L:9B.c/-jdK~YPS;}kk">
                                           <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                           <value name="VALUE">
                                             <block type="lists_split" id="m0vWY?4A}Fy?zECIMa-g">
                                               <mutation mode="SPLIT"></mutation>
                                               <field name="MODE">SPLIT</field>
                                               <value name="INPUT">
                                                 <block type="get_value" id="cmBA^z.eb9hODfdHQbW8">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">kodi.0.info.playing_time</field>
                                                 </block>
                                               </value>
                                               <value name="DELIM">
                                                 <shadow type="text" id=";o/sw@k#dD0mWkC4+b)M">
                                                   <field name="TEXT">:</field>
                                                 </shadow>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id=";/]R)Ct0Dfu6i-d@fN1=">
                                               <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="!A%IT%#arX*{$UY8=Kva">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="%LYJ{05i.|T3]O%OZlti">
                                                   <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="-:ZTaSM~NWM#h9LoWuBz">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="controls_for" id="2R-$*vTVI{p#n(T8RV.d">
                                                       <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                       <value name="FROM">
                                                         <shadow type="math_number" id="yo3lqjuQw}eovRb+XXQ?">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                       </value>
                                                       <value name="TO">
                                                         <shadow type="math_number">
                                                           <field name="NUM">10</field>
                                                         </shadow>
                                                         <block type="lists_length" id="030ssz#WyY6qdm{Y]+%7">
                                                           <value name="VALUE">
                                                             <block type="variables_get" id="LtjmBy}A-?%QRfowFhZH">
                                                               <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="BY">
                                                         <shadow type="math_number" id="W4)e3sbN-C[AtksvJyb0">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                       </value>
                                                       <statement name="DO">
                                                         <block type="math_change" id="gZ[fn:P}L%w5Hu*/k[w]">
                                                           <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                           <value name="DELTA">
                                                             <shadow type="math_number">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="math_arithmetic" id="_nrssb{}I|MM@7r=B2*[" inline="false">
                                                               <field name="OP">MULTIPLY</field>
                                                               <value name="A">
                                                                 <shadow type="math_number">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="math_arithmetic" id="?QRRgY%9F+.UW^4Wl#AO">
                                                                   <field name="OP">POWER</field>
                                                                   <value name="A">
                                                                     <shadow type="math_number" id="`nZhdJ)1xBsAmv:WOH{$">
                                                                       <field name="NUM">60</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="%5v;FD87a~}IdxMU?0vb">
                                                                       <field name="OP">MINUS</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="~kv8]AFICio,y}2%8r:A">
                                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number" id="By?4fEM=/cIUg=PVf-%.">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <value name="B">
                                                                 <shadow type="math_number">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="convert_tonumber" id="Xjk8qkB+rf0:[Z@JKl{4">
                                                                   <value name="VALUE">
                                                                     <block type="lists_getIndex" id="=M7:!eN*k,;Op`ncPBu)">
                                                                       <mutation statement="false" at="true"></mutation>
                                                                       <field name="MODE">GET</field>
                                                                       <field name="WHERE">FROM_END</field>
                                                                       <value name="VALUE">
                                                                         <block type="variables_get" id="4n4]sPE}}yOyCqIR6sK$">
                                                                           <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="AT">
                                                                         <block type="variables_get" id="5KN91f+6[?BIQQU^P+T/">
                                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </statement>
                                                       <next>
                                                         <block type="controls_for" id="/[|3}k{qYeK4wFiN6#lx">
                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                           <value name="FROM">
                                                             <shadow type="math_number" id="1FErI$q)qi=X^N_:%Js?">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                           </value>
                                                           <value name="TO">
                                                             <shadow type="math_number">
                                                               <field name="NUM">10</field>
                                                             </shadow>
                                                             <block type="lists_length" id="yJ$~7a^l4Gd#j:0c3$xr">
                                                               <value name="VALUE">
                                                                 <block type="variables_get" id="Lh*:^j)}o|0jC8rH:.-+">
                                                                   <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="BY">
                                                             <shadow type="math_number" id="T3rAediff*:%E88l7+4%">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                           </value>
                                                           <statement name="DO">
                                                             <block type="math_change" id="Bsy0,}!M#a)Xi$$B[t]z">
                                                               <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                               <value name="DELTA">
                                                                 <shadow type="math_number">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="math_arithmetic" id="ecXevA40kHBJjiNry:#^" inline="false">
                                                                   <field name="OP">MULTIPLY</field>
                                                                   <value name="A">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="K#Ey7v.v;+lcl{1f@5]H">
                                                                       <field name="OP">POWER</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number" id="a~E=mS#u_.VcC[jX^/;*">
                                                                           <field name="NUM">60</field>
                                                                         </shadow>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="math_arithmetic" id="p}_MS2!F;,r~o9#j=$`e">
                                                                           <field name="OP">MINUS</field>
                                                                           <value name="A">
                                                                             <shadow type="math_number">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                             <block type="variables_get" id="Wr7+iV$a;ynQ,P%0v/|h">
                                                                               <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="B">
                                                                             <shadow type="math_number" id="7DDk.nAP2`-o[3:5T/`V">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="convert_tonumber" id="95Wkc=Wn9wjOL/~emwC:">
                                                                       <value name="VALUE">
                                                                         <block type="lists_getIndex" id="):n}4;0GiBs#gE+_-.uf">
                                                                           <mutation statement="false" at="true"></mutation>
                                                                           <field name="MODE">GET</field>
                                                                           <field name="WHERE">FROM_END</field>
                                                                           <value name="VALUE">
                                                                             <block type="variables_get" id="WCs.rt_18?skHj|HC;)H">
                                                                               <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="AT">
                                                                             <block type="variables_get" id="dA]HyO~W)iY5ROXqc$PI">
                                                                               <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </statement>
                                                           <next>
                                                             <block type="variables_set" id="x8t?3^{cNVFaKtPFnFq9">
                                                               <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                               <value name="VALUE">
                                                                 <block type="math_arithmetic" id="2+`tDY!LQG^9AZO8#!ZQ" inline="false">
                                                                   <field name="OP">MULTIPLY</field>
                                                                   <value name="A">
                                                                     <shadow type="math_number" id="(_=}+a~Ov.r2s~-^a_*5">
                                                                       <field name="NUM">1000</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="D.`(%|9dOcm*(umN9bT@" inline="false">
                                                                       <field name="OP">MINUS</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="u7f(0GaP.#L;(fYVBLIF">
                                                                           <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="]@3~@l|_;uO[L%2ioP,k">
                                                                           <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="E.QKHpVBex}})iCx|o|3">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="text_join" id="r1UQi]J^lm7$v9OOADL%">
                                                                       <mutation items="2"></mutation>
                                                                       <value name="ADD0">
                                                                         <block type="convert_from_date" id="TgQBU@2m$Aam**8naRqf">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                           <field name="OPTION">hh:mm</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_arithmetic" id="vFX,u4337mHL^[94MZjL">
                                                                               <field name="OP">ADD</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="time_get" id="WGy*s;07oKI/J`GDI-x3">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                   <field name="OPTION">object</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="variables_get" id="%/#p`[h/wlvqSaXg{l2J">
                                                                                   <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <value name="ADD1">
                                                                         <block type="text" id="+v9neh|_70u#CP~sT+@%">
                                                                           <field name="TEXT"> Uhr</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="variables_set" id="nhKmUFQhs[6|q%}ff0,i">
                                                                       <field name="VAR" id="HgJGj)ghP0%IGPO(|r4V">rest_min</field>
                                                                       <value name="VALUE">
                                                                         <block type="math_round" id="x}`o/-C2Wlv:@=^_3G[a">
                                                                           <field name="OP">ROUNDDOWN</field>
                                                                           <value name="NUM">
                                                                             <shadow type="math_number" id="Rguwmsm{fn2;p`R/F+a:">
                                                                               <field name="NUM">3.1</field>
                                                                             </shadow>
                                                                             <block type="math_arithmetic" id="+onb0BIs?/9$Yw3z|L~1" inline="false">
                                                                               <field name="OP">DIVIDE</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number" id="1ayYAO}MFY09NC(V(*GM">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="math_arithmetic" id="s!0#t?dmhC6%l^`PxZe}" inline="false">
                                                                                   <field name="OP">MINUS</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number" id="#7%I3W~1uE-TD~wta#+4">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="SgkpuEuN:JsZXnT2uiEq">
                                                                                       <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="qn{!2^XJ4`(v,M5e*2D(">
                                                                                       <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number" id="^L@[tikpu/4]}P`vZMd!">
                                                                                   <field name="NUM">60</field>
                                                                                 </shadow>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="variables_set" id="Ig)k@jiA9xaKTc]*wBI1">
                                                                           <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_arithmetic" id="7;16331LR(~*?2+JX6w(" inline="false">
                                                                               <field name="OP">MINUS</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number" id="CIIcN4{7e~{BnyvZ*~^6">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="math_arithmetic" id=";3*On@WOxyMp^0y1_Z(Y" inline="false">
                                                                                   <field name="OP">MINUS</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="b%.CyBM,CrX$vS8~1tsR">
                                                                                       <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="G)4-/!z*)m%l/V.ry4?R">
                                                                                       <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number" id=".+85]3KB6[(gBZ%[,7Y~">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="math_arithmetic" id="zmhqTi9sN}dQKx97##xL" inline="false">
                                                                                   <field name="OP">MULTIPLY</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number" id="lis_nxPR2u]H-3F[$b~S">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="Bt;RhM}rb7h:@KbT}11W">
                                                                                       <field name="VAR" id="HgJGj)ghP0%IGPO(|r4V">rest_min</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number" id="LKQ#wr7Q=}y?2oYqM^Z(">
                                                                                       <field name="NUM">60</field>
                                                                                     </shadow>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="controls_if" id="NQRm#kW6C~H}~,#%L^7%">
                                                                               <value name="IF0">
                                                                                 <block type="logic_compare" id="LB3RPmG+6NgIm[`*dHW*">
                                                                                   <field name="OP">LT</field>
                                                                                   <value name="A">
                                                                                     <block type="variables_get" id="x8kn5l:/}[T/I1{38:!m">
                                                                                       <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <block type="math_number" id="4MfeA;EPvu1_2Q5)5*18">
                                                                                       <field name="NUM">10</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <statement name="DO0">
                                                                                 <block type="variables_set" id="S4e+8dy%x$|x`kw^Y1eG">
                                                                                   <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="text_join" id="m8@abxaQFWUShO4Yh?^e">
                                                                                       <mutation items="2"></mutation>
                                                                                       <value name="ADD0">
                                                                                         <block type="text" id="CGW`SmYv*y^!z[QWs^o[">
                                                                                           <field name="TEXT">0</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="ADD1">
                                                                                         <block type="variables_get" id="jhU!RpxkLcDqpJhV*2c2">
                                                                                           <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </statement>
                                                                               <next>
                                                                                 <block type="control" id="Ea:z~+62@$PdX^kjvAcF">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                   <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="text_join" id="Ha28o];Hw|$Cmy5!r;{L">
                                                                                       <mutation items="4"></mutation>
                                                                                       <value name="ADD0">
                                                                                         <block type="variables_get" id="7OYB3%b#mpP$M/XIeJ%S">
                                                                                           <field name="VAR" id="HgJGj)ghP0%IGPO(|r4V">rest_min</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="ADD1">
                                                                                         <block type="text" id="qD7(2)-oK%;2Rz.5k,:`">
                                                                                           <field name="TEXT">:</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="ADD2">
                                                                                         <block type="variables_get" id="zNo@n~vAZH2|)3f|_NT}">
                                                                                           <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="ADD3">
                                                                                         <block type="text" id="gMw;QinOi/kC}T?H,Gbn">
                                                                                           <field name="TEXT"> Min.</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                           <statement name="ELSE">
                             <block type="timeouts_clearinterval" id="Jb@;uzYL;m`:c=QqzD4L">
                               <field name="NAME">calc</field>
                               <next>
                                 <block type="variables_set" id="iv;KGC[hF6MD=bcKz-}~">
                                   <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="V0z@IGk2vj.t5+#2j3f;">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="VSZMp_fJpd1OzYCY=~xN">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="text" id="b8vzkml]yd@f[0(Q`e(2">
                                           <field name="TEXT"></field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="AIf3cY6ex%9}xpyKmOtB">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="text" id="nX.)Ffq{`}-Hsq,#!6^6">
                                               <field name="TEXT"></field>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </statement>
                      </block>
                      

                      D 1 Antwort Letzte Antwort
                      1
                      • K Kuddel

                        @dos1973 habe die Restzeit auch noch eingebaut:

                        92dfb3e3-3d6e-4b3f-9a31-73a05bd0a464-grafik.png

                        Das Skript läuft jetzt sekündlich, so lange kodi.0.state nicht gleich stop

                        <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="q-.)uV_$xX9EqI#0)1V{" x="-37" y="-270">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                         <field name="CONDITION">ne</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="3Y]sGqJzX97#Y#bnc%2B">
                             <field name="oid">kodi.0.state</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="#KCO]0`h|hPacKdL)=A2">
                             <mutation else="1"></mutation>
                             <value name="IF0">
                               <block type="logic_operation" id="Fk*MZyx-?jaWVfOUD74{" inline="false">
                                 <field name="OP">AND</field>
                                 <value name="A">
                                   <block type="logic_compare" id="f;Y93jeAj5hLE=HpAXci">
                                     <field name="OP">NEQ</field>
                                     <value name="A">
                                       <block type="get_value" id="+oIYTrzhXShgXD?-dx?!">
                                         <field name="ATTR">val</field>
                                         <field name="OID">kodi.0.state</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="text" id="L7`/vLtiabj}GQ5_)n?I">
                                         <field name="TEXT">stop</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="logic_compare" id="S;@tsc#Y9J{l-nz(8#%L">
                                     <field name="OP">NEQ</field>
                                     <value name="A">
                                       <block type="variables_get" id="_lYj.M;X6{:Ig+t1H-OG">
                                         <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_boolean" id=":eRp?twu(kMNOV|nraj#">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="timeouts_setinterval" id="uGdM,D)hhj,Ipm210S*$">
                                 <field name="NAME">calc</field>
                                 <field name="INTERVAL">1000</field>
                                 <field name="UNIT">ms</field>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="0o{kX1g9TrRziofKKE`n">
                                     <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="57_A}S_9aHo-D7/*Q-bz">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="fTK`7dy@}I9{xOUk:fdm">
                                         <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                         <value name="VALUE">
                                           <block type="lists_split" id="fSNHlFM[e|2s~?~WLoA]">
                                             <mutation mode="SPLIT"></mutation>
                                             <field name="MODE">SPLIT</field>
                                             <value name="INPUT">
                                               <block type="get_value" id="%}I/[z=}v|bA_s+cN3T+">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">kodi.0.info.playing_time_total</field>
                                               </block>
                                             </value>
                                             <value name="DELIM">
                                               <shadow type="text" id="bO/MuTT:URPjI@SOF^wu">
                                                 <field name="TEXT">:</field>
                                               </shadow>
                                             </value>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="variables_set" id="3L:9B.c/-jdK~YPS;}kk">
                                             <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                             <value name="VALUE">
                                               <block type="lists_split" id="m0vWY?4A}Fy?zECIMa-g">
                                                 <mutation mode="SPLIT"></mutation>
                                                 <field name="MODE">SPLIT</field>
                                                 <value name="INPUT">
                                                   <block type="get_value" id="cmBA^z.eb9hODfdHQbW8">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">kodi.0.info.playing_time</field>
                                                   </block>
                                                 </value>
                                                 <value name="DELIM">
                                                   <shadow type="text" id=";o/sw@k#dD0mWkC4+b)M">
                                                     <field name="TEXT">:</field>
                                                   </shadow>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id=";/]R)Ct0Dfu6i-d@fN1=">
                                                 <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="!A%IT%#arX*{$UY8=Kva">
                                                     <field name="NUM">0</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="variables_set" id="%LYJ{05i.|T3]O%OZlti">
                                                     <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                     <value name="VALUE">
                                                       <block type="math_number" id="-:ZTaSM~NWM#h9LoWuBz">
                                                         <field name="NUM">0</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="controls_for" id="2R-$*vTVI{p#n(T8RV.d">
                                                         <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                         <value name="FROM">
                                                           <shadow type="math_number" id="yo3lqjuQw}eovRb+XXQ?">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                         </value>
                                                         <value name="TO">
                                                           <shadow type="math_number">
                                                             <field name="NUM">10</field>
                                                           </shadow>
                                                           <block type="lists_length" id="030ssz#WyY6qdm{Y]+%7">
                                                             <value name="VALUE">
                                                               <block type="variables_get" id="LtjmBy}A-?%QRfowFhZH">
                                                                 <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <value name="BY">
                                                           <shadow type="math_number" id="W4)e3sbN-C[AtksvJyb0">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                         </value>
                                                         <statement name="DO">
                                                           <block type="math_change" id="gZ[fn:P}L%w5Hu*/k[w]">
                                                             <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                             <value name="DELTA">
                                                               <shadow type="math_number">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                               <block type="math_arithmetic" id="_nrssb{}I|MM@7r=B2*[" inline="false">
                                                                 <field name="OP">MULTIPLY</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="math_arithmetic" id="?QRRgY%9F+.UW^4Wl#AO">
                                                                     <field name="OP">POWER</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number" id="`nZhdJ)1xBsAmv:WOH{$">
                                                                         <field name="NUM">60</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="math_arithmetic" id="%5v;FD87a~}IdxMU?0vb">
                                                                         <field name="OP">MINUS</field>
                                                                         <value name="A">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="variables_get" id="~kv8]AFICio,y}2%8r:A">
                                                                             <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="B">
                                                                           <shadow type="math_number" id="By?4fEM=/cIUg=PVf-%.">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="convert_tonumber" id="Xjk8qkB+rf0:[Z@JKl{4">
                                                                     <value name="VALUE">
                                                                       <block type="lists_getIndex" id="=M7:!eN*k,;Op`ncPBu)">
                                                                         <mutation statement="false" at="true"></mutation>
                                                                         <field name="MODE">GET</field>
                                                                         <field name="WHERE">FROM_END</field>
                                                                         <value name="VALUE">
                                                                           <block type="variables_get" id="4n4]sPE}}yOyCqIR6sK$">
                                                                             <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="AT">
                                                                           <block type="variables_get" id="5KN91f+6[?BIQQU^P+T/">
                                                                             <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </statement>
                                                         <next>
                                                           <block type="controls_for" id="/[|3}k{qYeK4wFiN6#lx">
                                                             <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                             <value name="FROM">
                                                               <shadow type="math_number" id="1FErI$q)qi=X^N_:%Js?">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                             </value>
                                                             <value name="TO">
                                                               <shadow type="math_number">
                                                                 <field name="NUM">10</field>
                                                               </shadow>
                                                               <block type="lists_length" id="yJ$~7a^l4Gd#j:0c3$xr">
                                                                 <value name="VALUE">
                                                                   <block type="variables_get" id="Lh*:^j)}o|0jC8rH:.-+">
                                                                     <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <value name="BY">
                                                               <shadow type="math_number" id="T3rAediff*:%E88l7+4%">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                             </value>
                                                             <statement name="DO">
                                                               <block type="math_change" id="Bsy0,}!M#a)Xi$$B[t]z">
                                                                 <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                 <value name="DELTA">
                                                                   <shadow type="math_number">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="math_arithmetic" id="ecXevA40kHBJjiNry:#^" inline="false">
                                                                     <field name="OP">MULTIPLY</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="math_arithmetic" id="K#Ey7v.v;+lcl{1f@5]H">
                                                                         <field name="OP">POWER</field>
                                                                         <value name="A">
                                                                           <shadow type="math_number" id="a~E=mS#u_.VcC[jX^/;*">
                                                                             <field name="NUM">60</field>
                                                                           </shadow>
                                                                         </value>
                                                                         <value name="B">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="math_arithmetic" id="p}_MS2!F;,r~o9#j=$`e">
                                                                             <field name="OP">MINUS</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="variables_get" id="Wr7+iV$a;ynQ,P%0v/|h">
                                                                                 <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number" id="7DDk.nAP2`-o[3:5T/`V">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="convert_tonumber" id="95Wkc=Wn9wjOL/~emwC:">
                                                                         <value name="VALUE">
                                                                           <block type="lists_getIndex" id="):n}4;0GiBs#gE+_-.uf">
                                                                             <mutation statement="false" at="true"></mutation>
                                                                             <field name="MODE">GET</field>
                                                                             <field name="WHERE">FROM_END</field>
                                                                             <value name="VALUE">
                                                                               <block type="variables_get" id="WCs.rt_18?skHj|HC;)H">
                                                                                 <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="AT">
                                                                               <block type="variables_get" id="dA]HyO~W)iY5ROXqc$PI">
                                                                                 <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </statement>
                                                             <next>
                                                               <block type="variables_set" id="x8t?3^{cNVFaKtPFnFq9">
                                                                 <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_arithmetic" id="2+`tDY!LQG^9AZO8#!ZQ" inline="false">
                                                                     <field name="OP">MULTIPLY</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number" id="(_=}+a~Ov.r2s~-^a_*5">
                                                                         <field name="NUM">1000</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="math_arithmetic" id="D.`(%|9dOcm*(umN9bT@" inline="false">
                                                                         <field name="OP">MINUS</field>
                                                                         <value name="A">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="variables_get" id="u7f(0GaP.#L;(fYVBLIF">
                                                                             <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="B">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="variables_get" id="]@3~@l|_;uO[L%2ioP,k">
                                                                             <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="control" id="E.QKHpVBex}})iCx|o|3">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                     <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                     <value name="VALUE">
                                                                       <block type="text_join" id="r1UQi]J^lm7$v9OOADL%">
                                                                         <mutation items="2"></mutation>
                                                                         <value name="ADD0">
                                                                           <block type="convert_from_date" id="TgQBU@2m$Aam**8naRqf">
                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                             <field name="OPTION">hh:mm</field>
                                                                             <value name="VALUE">
                                                                               <block type="math_arithmetic" id="vFX,u4337mHL^[94MZjL">
                                                                                 <field name="OP">ADD</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="time_get" id="WGy*s;07oKI/J`GDI-x3">
                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                     <field name="OPTION">object</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="%/#p`[h/wlvqSaXg{l2J">
                                                                                     <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <value name="ADD1">
                                                                           <block type="text" id="+v9neh|_70u#CP~sT+@%">
                                                                             <field name="TEXT"> Uhr</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="variables_set" id="nhKmUFQhs[6|q%}ff0,i">
                                                                         <field name="VAR" id="HgJGj)ghP0%IGPO(|r4V">rest_min</field>
                                                                         <value name="VALUE">
                                                                           <block type="math_round" id="x}`o/-C2Wlv:@=^_3G[a">
                                                                             <field name="OP">ROUNDDOWN</field>
                                                                             <value name="NUM">
                                                                               <shadow type="math_number" id="Rguwmsm{fn2;p`R/F+a:">
                                                                                 <field name="NUM">3.1</field>
                                                                               </shadow>
                                                                               <block type="math_arithmetic" id="+onb0BIs?/9$Yw3z|L~1" inline="false">
                                                                                 <field name="OP">DIVIDE</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number" id="1ayYAO}MFY09NC(V(*GM">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="math_arithmetic" id="s!0#t?dmhC6%l^`PxZe}" inline="false">
                                                                                     <field name="OP">MINUS</field>
                                                                                     <value name="A">
                                                                                       <shadow type="math_number" id="#7%I3W~1uE-TD~wta#+4">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="SgkpuEuN:JsZXnT2uiEq">
                                                                                         <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <shadow type="math_number">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="qn{!2^XJ4`(v,M5e*2D(">
                                                                                         <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number" id="^L@[tikpu/4]}P`vZMd!">
                                                                                     <field name="NUM">60</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="variables_set" id="Ig)k@jiA9xaKTc]*wBI1">
                                                                             <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                             <value name="VALUE">
                                                                               <block type="math_arithmetic" id="7;16331LR(~*?2+JX6w(" inline="false">
                                                                                 <field name="OP">MINUS</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number" id="CIIcN4{7e~{BnyvZ*~^6">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="math_arithmetic" id=";3*On@WOxyMp^0y1_Z(Y" inline="false">
                                                                                     <field name="OP">MINUS</field>
                                                                                     <value name="A">
                                                                                       <shadow type="math_number">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="b%.CyBM,CrX$vS8~1tsR">
                                                                                         <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <shadow type="math_number">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="G)4-/!z*)m%l/V.ry4?R">
                                                                                         <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number" id=".+85]3KB6[(gBZ%[,7Y~">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="math_arithmetic" id="zmhqTi9sN}dQKx97##xL" inline="false">
                                                                                     <field name="OP">MULTIPLY</field>
                                                                                     <value name="A">
                                                                                       <shadow type="math_number" id="lis_nxPR2u]H-3F[$b~S">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="Bt;RhM}rb7h:@KbT}11W">
                                                                                         <field name="VAR" id="HgJGj)ghP0%IGPO(|r4V">rest_min</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <shadow type="math_number" id="LKQ#wr7Q=}y?2oYqM^Z(">
                                                                                         <field name="NUM">60</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <next>
                                                                               <block type="controls_if" id="NQRm#kW6C~H}~,#%L^7%">
                                                                                 <value name="IF0">
                                                                                   <block type="logic_compare" id="LB3RPmG+6NgIm[`*dHW*">
                                                                                     <field name="OP">LT</field>
                                                                                     <value name="A">
                                                                                       <block type="variables_get" id="x8kn5l:/}[T/I1{38:!m">
                                                                                         <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <block type="math_number" id="4MfeA;EPvu1_2Q5)5*18">
                                                                                         <field name="NUM">10</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <statement name="DO0">
                                                                                   <block type="variables_set" id="S4e+8dy%x$|x`kw^Y1eG">
                                                                                     <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="text_join" id="m8@abxaQFWUShO4Yh?^e">
                                                                                         <mutation items="2"></mutation>
                                                                                         <value name="ADD0">
                                                                                           <block type="text" id="CGW`SmYv*y^!z[QWs^o[">
                                                                                             <field name="TEXT">0</field>
                                                                                           </block>
                                                                                         </value>
                                                                                         <value name="ADD1">
                                                                                           <block type="variables_get" id="jhU!RpxkLcDqpJhV*2c2">
                                                                                             <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </statement>
                                                                                 <next>
                                                                                   <block type="control" id="Ea:z~+62@$PdX^kjvAcF">
                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                     <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="text_join" id="Ha28o];Hw|$Cmy5!r;{L">
                                                                                         <mutation items="4"></mutation>
                                                                                         <value name="ADD0">
                                                                                           <block type="variables_get" id="7OYB3%b#mpP$M/XIeJ%S">
                                                                                             <field name="VAR" id="HgJGj)ghP0%IGPO(|r4V">rest_min</field>
                                                                                           </block>
                                                                                         </value>
                                                                                         <value name="ADD1">
                                                                                           <block type="text" id="qD7(2)-oK%;2Rz.5k,:`">
                                                                                             <field name="TEXT">:</field>
                                                                                           </block>
                                                                                         </value>
                                                                                         <value name="ADD2">
                                                                                           <block type="variables_get" id="zNo@n~vAZH2|)3f|_NT}">
                                                                                             <field name="VAR" id="2aa2oIH5eFR9DL.}%Aq-">rest_sek</field>
                                                                                           </block>
                                                                                         </value>
                                                                                         <value name="ADD3">
                                                                                           <block type="text" id="gMw;QinOi/kC}T?H,Gbn">
                                                                                             <field name="TEXT"> Min.</field>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </next>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                             <statement name="ELSE">
                               <block type="timeouts_clearinterval" id="Jb@;uzYL;m`:c=QqzD4L">
                                 <field name="NAME">calc</field>
                                 <next>
                                   <block type="variables_set" id="iv;KGC[hF6MD=bcKz-}~">
                                     <field name="VAR" id="-d4vHniCbHM?ag:={@Pk">skript_aktiv</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="V0z@IGk2vj.t5+#2j3f;">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id="VSZMp_fJpd1OzYCY=~xN">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="text" id="b8vzkml]yd@f[0(Q`e(2">
                                             <field name="TEXT"></field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="control" id="AIf3cY6ex%9}xpyKmOtB">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="text" id="nX.)Ffq{`}-Hsq,#!6^6">
                                                 <field name="TEXT"></field>
                                               </block>
                                             </value>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                         </statement>
                        </block>
                        

                        D Offline
                        D Offline
                        dos1973
                        schrieb am zuletzt editiert von dos1973
                        #20

                        @Kuddel
                        Wow, ich bin begeistert.
                        Beide Werte sind vorhanden. ich habe bei mir den wert auf 5 Sekunden angepasst.
                        aber was ist den "calc"

                        rein optisch gesehen bei Restzeit 76:22, würde ich folgende Formatierung "01:16:22" ansprechender finden.

                        Klasse Ding. Vielen Dank für deine Mühe!

                        K 1 Antwort Letzte Antwort
                        0
                        • D dos1973

                          @Kuddel
                          Wow, ich bin begeistert.
                          Beide Werte sind vorhanden. ich habe bei mir den wert auf 5 Sekunden angepasst.
                          aber was ist den "calc"

                          rein optisch gesehen bei Restzeit 76:22, würde ich folgende Formatierung "01:16:22" ansprechender finden.

                          Klasse Ding. Vielen Dank für deine Mühe!

                          K Offline
                          K Offline
                          Kuddel
                          schrieb am zuletzt editiert von
                          #21

                          @dos1973 calc ist die Schleife. kannst du ignorieren. habe das Skript schon wieder umgebaut.

                          nehme jetzt die Spielzeit als trigger.

                          baue seine Vorschlag mit der Formatierung morgen noch ein

                          D 1 Antwort Letzte Antwort
                          0
                          • K Kuddel

                            @dos1973 calc ist die Schleife. kannst du ignorieren. habe das Skript schon wieder umgebaut.

                            nehme jetzt die Spielzeit als trigger.

                            baue seine Vorschlag mit der Formatierung morgen noch ein

                            D Offline
                            D Offline
                            dos1973
                            schrieb am zuletzt editiert von
                            #22

                            @Kuddel
                            playing time, habe ich auch schon dran gedacht - das ist ja auf sekundenbasis.
                            Jo, schonmal Danke & bis morgen.

                            1 Antwort Letzte Antwort
                            0
                            • paul53P paul53

                              @dos1973 sagte:

                              das geht sozusagen im Sekunden Takt.

                              Mit Sekundentakt sollte eine moderne Hardware zurecht kommen.

                              K Offline
                              K Offline
                              Kuddel
                              schrieb am zuletzt editiert von
                              #23

                              @paul53 kann man die Umrechnung der Restzeit evtl. besser bauen?

                              Ich habe das aktuell so umgesetzt:

                              020a581a-8362-41dd-aecc-9b6bf5ed568c-grafik.png

                              Würde auch irgendwie mit Konvertierung gehen ?

                              Irgendwie so ?

                              aad5f2ed-5249-4cc5-bfb2-e481c13b82a8-grafik.png

                              paul53P 1 Antwort Letzte Antwort
                              0
                              • K Kuddel

                                @paul53 kann man die Umrechnung der Restzeit evtl. besser bauen?

                                Ich habe das aktuell so umgesetzt:

                                020a581a-8362-41dd-aecc-9b6bf5ed568c-grafik.png

                                Würde auch irgendwie mit Konvertierung gehen ?

                                Irgendwie so ?

                                aad5f2ed-5249-4cc5-bfb2-e481c13b82a8-grafik.png

                                paul53P Offline
                                paul53P Offline
                                paul53
                                schrieb am zuletzt editiert von
                                #24

                                @Kuddel sagte:

                                Würde auch irgendwie mit Konvertierung gehen ?

                                Ja, man muss die Zeitzone berücksichtigen.

                                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                K 1 Antwort Letzte Antwort
                                0
                                • paul53P paul53

                                  @Kuddel sagte:

                                  Würde auch irgendwie mit Konvertierung gehen ?

                                  Ja, man muss die Zeitzone berücksichtigen.

                                  K Offline
                                  K Offline
                                  Kuddel
                                  schrieb am zuletzt editiert von
                                  #25

                                  @paul53 ah okay.

                                  habe zu dem Problem mal ein extra Threaad eröffnet:

                                  https://forum.iobroker.net/topic/38326/sekunden-in-std-min-sek-formatieren/2

                                  Auf die Zeitzonen wurde da auch schon hingewiesen.

                                  Weiter bin ich aber dadurch auch nicht ^^

                                  paul53P 1 Antwort Letzte Antwort
                                  0
                                  • K Kuddel

                                    @paul53 ah okay.

                                    habe zu dem Problem mal ein extra Threaad eröffnet:

                                    https://forum.iobroker.net/topic/38326/sekunden-in-std-min-sek-formatieren/2

                                    Auf die Zeitzonen wurde da auch schon hingewiesen.

                                    Weiter bin ich aber dadurch auch nicht ^^

                                    paul53P Offline
                                    paul53P Offline
                                    paul53
                                    schrieb am zuletzt editiert von
                                    #26

                                    @Kuddel sagte:

                                    Weiter bin ich aber dadurch auch nicht

                                    Die Lösung befindet sich im verlinkten Beitrag.

                                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                    K 1 Antwort Letzte Antwort
                                    0
                                    • paul53P paul53

                                      @Kuddel sagte:

                                      Weiter bin ich aber dadurch auch nicht

                                      Die Lösung befindet sich im verlinkten Beitrag.

                                      K Offline
                                      K Offline
                                      Kuddel
                                      schrieb am zuletzt editiert von
                                      #27

                                      @paul53 super, vielen Dank. Habe es hinbekommen.

                                      @dos1973

                                      Hier das fertige Skript:

                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                       <variables>
                                         <variable id="z6@)Eo%V776?qOlzgeJq">sekunden_total</variable>
                                         <variable id="c70ch.|4qGYP3!UEvS8x">sekunden</variable>
                                         <variable id="Gv49fQ40~+/ya6#JMvO}">time_total</variable>
                                         <variable id="8?J4Jmf7%_-wS9!yell|">time</variable>
                                         <variable id="7gbI~lkqQ~M|C;mJ+cDq">i</variable>
                                         <variable id="fB}3.DkAG[Zns[jkc^B)">diff</variable>
                                         <variable id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</variable>
                                       </variables>
                                       <block type="on_ext" id="mhrPpA^7UN)RTNT]/[[R" x="-12" y="-387">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                         <field name="CONDITION">ne</field>
                                         <field name="ACK_CONDITION"></field>
                                         <value name="OID0">
                                           <shadow type="field_oid" id="X%v$|Bp`D)/8o$MsBajH">
                                             <field name="oid">kodi.0.info.playing_time</field>
                                           </shadow>
                                         </value>
                                         <statement name="STATEMENT">
                                           <block type="controls_if" id="DPV3L8uxH[7hV$K{3Okp">
                                             <mutation else="1"></mutation>
                                             <value name="IF0">
                                               <block type="logic_compare" id="f;Y93jeAj5hLE=HpAXci">
                                                 <field name="OP">NEQ</field>
                                                 <value name="A">
                                                   <block type="get_value" id="+oIYTrzhXShgXD?-dx?!">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">kodi.0.state</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="text" id="L7`/vLtiabj}GQ5_)n?I">
                                                     <field name="TEXT">stop</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="variables_set" id="fTK`7dy@}I9{xOUk:fdm">
                                                 <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                 <value name="VALUE">
                                                   <block type="lists_split" id="fSNHlFM[e|2s~?~WLoA]">
                                                     <mutation mode="SPLIT"></mutation>
                                                     <field name="MODE">SPLIT</field>
                                                     <value name="INPUT">
                                                       <block type="get_value" id="%}I/[z=}v|bA_s+cN3T+">
                                                         <field name="ATTR">val</field>
                                                         <field name="OID">kodi.0.info.playing_time_total</field>
                                                       </block>
                                                     </value>
                                                     <value name="DELIM">
                                                       <shadow type="text" id="bO/MuTT:URPjI@SOF^wu">
                                                         <field name="TEXT">:</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="variables_set" id="3L:9B.c/-jdK~YPS;}kk">
                                                     <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                     <value name="VALUE">
                                                       <block type="lists_split" id="m0vWY?4A}Fy?zECIMa-g">
                                                         <mutation mode="SPLIT"></mutation>
                                                         <field name="MODE">SPLIT</field>
                                                         <value name="INPUT">
                                                           <block type="get_value" id="cmBA^z.eb9hODfdHQbW8">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">kodi.0.info.playing_time</field>
                                                           </block>
                                                         </value>
                                                         <value name="DELIM">
                                                           <shadow type="text" id=";o/sw@k#dD0mWkC4+b)M">
                                                             <field name="TEXT">:</field>
                                                           </shadow>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="variables_set" id=";/]R)Ct0Dfu6i-d@fN1=">
                                                         <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                         <value name="VALUE">
                                                           <block type="math_number" id="!A%IT%#arX*{$UY8=Kva">
                                                             <field name="NUM">0</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="variables_set" id="%LYJ{05i.|T3]O%OZlti">
                                                             <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                             <value name="VALUE">
                                                               <block type="math_number" id="-:ZTaSM~NWM#h9LoWuBz">
                                                                 <field name="NUM">0</field>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="controls_for" id="2R-$*vTVI{p#n(T8RV.d">
                                                                 <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                 <value name="FROM">
                                                                   <shadow type="math_number" id="yo3lqjuQw}eovRb+XXQ?">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                 </value>
                                                                 <value name="TO">
                                                                   <shadow type="math_number">
                                                                     <field name="NUM">10</field>
                                                                   </shadow>
                                                                   <block type="lists_length" id="030ssz#WyY6qdm{Y]+%7">
                                                                     <value name="VALUE">
                                                                       <block type="variables_get" id="LtjmBy}A-?%QRfowFhZH">
                                                                         <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="BY">
                                                                   <shadow type="math_number" id="W4)e3sbN-C[AtksvJyb0">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                 </value>
                                                                 <statement name="DO">
                                                                   <block type="math_change" id="gZ[fn:P}L%w5Hu*/k[w]">
                                                                     <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                     <value name="DELTA">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="math_arithmetic" id="_nrssb{}I|MM@7r=B2*[" inline="false">
                                                                         <field name="OP">MULTIPLY</field>
                                                                         <value name="A">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="math_arithmetic" id="?QRRgY%9F+.UW^4Wl#AO">
                                                                             <field name="OP">POWER</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number" id="`nZhdJ)1xBsAmv:WOH{$">
                                                                                 <field name="NUM">60</field>
                                                                               </shadow>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="math_arithmetic" id="%5v;FD87a~}IdxMU?0vb">
                                                                                 <field name="OP">MINUS</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="~kv8]AFICio,y}2%8r:A">
                                                                                     <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number" id="By?4fEM=/cIUg=PVf-%.">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <value name="B">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="convert_tonumber" id="Xjk8qkB+rf0:[Z@JKl{4">
                                                                             <value name="VALUE">
                                                                               <block type="lists_getIndex" id="=M7:!eN*k,;Op`ncPBu)">
                                                                                 <mutation statement="false" at="true"></mutation>
                                                                                 <field name="MODE">GET</field>
                                                                                 <field name="WHERE">FROM_END</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="variables_get" id="4n4]sPE}}yOyCqIR6sK$">
                                                                                     <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="AT">
                                                                                   <block type="variables_get" id="5KN91f+6[?BIQQU^P+T/">
                                                                                     <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </statement>
                                                                 <next>
                                                                   <block type="controls_for" id="/[|3}k{qYeK4wFiN6#lx">
                                                                     <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                     <value name="FROM">
                                                                       <shadow type="math_number" id="1FErI$q)qi=X^N_:%Js?">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <value name="TO">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">10</field>
                                                                       </shadow>
                                                                       <block type="lists_length" id="yJ$~7a^l4Gd#j:0c3$xr">
                                                                         <value name="VALUE">
                                                                           <block type="variables_get" id="Lh*:^j)}o|0jC8rH:.-+">
                                                                             <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <value name="BY">
                                                                       <shadow type="math_number" id="T3rAediff*:%E88l7+4%">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <statement name="DO">
                                                                       <block type="math_change" id="Bsy0,}!M#a)Xi$$B[t]z">
                                                                         <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                         <value name="DELTA">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="math_arithmetic" id="ecXevA40kHBJjiNry:#^" inline="false">
                                                                             <field name="OP">MULTIPLY</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="math_arithmetic" id="K#Ey7v.v;+lcl{1f@5]H">
                                                                                 <field name="OP">POWER</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number" id="a~E=mS#u_.VcC[jX^/;*">
                                                                                     <field name="NUM">60</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="math_arithmetic" id="p}_MS2!F;,r~o9#j=$`e">
                                                                                     <field name="OP">MINUS</field>
                                                                                     <value name="A">
                                                                                       <shadow type="math_number">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="Wr7+iV$a;ynQ,P%0v/|h">
                                                                                         <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <shadow type="math_number" id="7DDk.nAP2`-o[3:5T/`V">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="convert_tonumber" id="95Wkc=Wn9wjOL/~emwC:">
                                                                                 <value name="VALUE">
                                                                                   <block type="lists_getIndex" id="):n}4;0GiBs#gE+_-.uf">
                                                                                     <mutation statement="false" at="true"></mutation>
                                                                                     <field name="MODE">GET</field>
                                                                                     <field name="WHERE">FROM_END</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="variables_get" id="WCs.rt_18?skHj|HC;)H">
                                                                                         <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="AT">
                                                                                       <block type="variables_get" id="dA]HyO~W)iY5ROXqc$PI">
                                                                                         <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </statement>
                                                                     <next>
                                                                       <block type="variables_set" id="x8t?3^{cNVFaKtPFnFq9">
                                                                         <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                         <value name="VALUE">
                                                                           <block type="math_arithmetic" id="2+`tDY!LQG^9AZO8#!ZQ" inline="false">
                                                                             <field name="OP">MULTIPLY</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number" id="(_=}+a~Ov.r2s~-^a_*5">
                                                                                 <field name="NUM">1000</field>
                                                                               </shadow>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="math_arithmetic" id="D.`(%|9dOcm*(umN9bT@" inline="false">
                                                                                 <field name="OP">MINUS</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="u7f(0GaP.#L;(fYVBLIF">
                                                                                     <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="]@3~@l|_;uO[L%2ioP,k">
                                                                                     <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="variables_set" id="@IH=J5P5=tnH`9Iu_Px|">
                                                                             <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                             <value name="VALUE">
                                                                               <block type="math_arithmetic" id="~E$;9??|fPcDC|HJqW`-" inline="false">
                                                                                 <field name="OP">MINUS</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="1`UnN?gb.[~)w}d6VRR)">
                                                                                     <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id=")m(;caB*Y|AI7#H$k`-_">
                                                                                     <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <next>
                                                                               <block type="control" id="E.QKHpVBex}})iCx|o|3">
                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                 <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="text_join" id="r1UQi]J^lm7$v9OOADL%">
                                                                                     <mutation items="2"></mutation>
                                                                                     <value name="ADD0">
                                                                                       <block type="convert_from_date" id="TgQBU@2m$Aam**8naRqf">
                                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                         <field name="OPTION">hh:mm</field>
                                                                                         <value name="VALUE">
                                                                                           <block type="math_arithmetic" id="vFX,u4337mHL^[94MZjL">
                                                                                             <field name="OP">ADD</field>
                                                                                             <value name="A">
                                                                                               <shadow type="math_number">
                                                                                                 <field name="NUM">1</field>
                                                                                               </shadow>
                                                                                               <block type="time_get" id="WGy*s;07oKI/J`GDI-x3">
                                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                 <field name="OPTION">object</field>
                                                                                               </block>
                                                                                             </value>
                                                                                             <value name="B">
                                                                                               <shadow type="math_number">
                                                                                                 <field name="NUM">1</field>
                                                                                               </shadow>
                                                                                               <block type="variables_get" id="%/#p`[h/wlvqSaXg{l2J">
                                                                                                 <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="ADD1">
                                                                                       <block type="text" id="+v9neh|_70u#CP~sT+@%">
                                                                                         <field name="TEXT"> Uhr</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="comment" id=":K!+{P30dMt;$jGMg6$T">
                                                                                     <field name="COMMENT">Restzeit in DP schreiben</field>
                                                                                     <next>
                                                                                       <block type="controls_if" id="YLU1O|*kP;~~)*%A*c64" collapsed="true">
                                                                                         <mutation else="1"></mutation>
                                                                                         <value name="IF0">
                                                                                           <block type="logic_compare" id="O/cS/vtiw%t25mVoX0E)">
                                                                                             <field name="OP">GTE</field>
                                                                                             <value name="A">
                                                                                               <block type="variables_get" id="Z9ar3}8Z9NYbMmd_Lr{$">
                                                                                                 <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                                               </block>
                                                                                             </value>
                                                                                             <value name="B">
                                                                                               <block type="math_number" id="EQS;F?$mC9ays!GQHelg">
                                                                                                 <field name="NUM">3600</field>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </value>
                                                                                         <statement name="DO0">
                                                                                           <block type="control" id=":vGI/P.wI*w^?R3?]A_y">
                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                             <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                                             <value name="VALUE">
                                                                                               <block type="text_join" id="qj]1+vKK[~s9~4E-?Hmt">
                                                                                                 <mutation items="2"></mutation>
                                                                                                 <value name="ADD0">
                                                                                                   <block type="convert_from_date" id="op^3$IrO,sQp3qbNH[yr">
                                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                     <field name="OPTION">hh:mm:ss</field>
                                                                                                     <value name="VALUE">
                                                                                                       <block type="math_arithmetic" id="`@gy7^%rBU*AJl2gq,W^" inline="false">
                                                                                                         <field name="OP">ADD</field>
                                                                                                         <value name="A">
                                                                                                           <shadow type="math_number" id="7DRWC8OQ|/xV,23*f7b.">
                                                                                                             <field name="NUM">1</field>
                                                                                                           </shadow>
                                                                                                           <block type="math_arithmetic" id="SRr*2A-d~+C3S^ASaz|z" inline="false">
                                                                                                             <field name="OP">MULTIPLY</field>
                                                                                                             <value name="A">
                                                                                                               <shadow type="math_number" id="B;w,.X}/n^mV^MqBH1EO">
                                                                                                                 <field name="NUM">1</field>
                                                                                                               </shadow>
                                                                                                               <block type="variables_get" id="Gje!a(?`DOk/EP7U~{+7">
                                                                                                                 <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="B">
                                                                                                               <shadow type="math_number" id="eh15lqzy94bn2F7r%vLT">
                                                                                                                 <field name="NUM">1000</field>
                                                                                                               </shadow>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                         <value name="B">
                                                                                                           <shadow type="math_number" id="K2`(*`(@|mb~gR~jDTT.">
                                                                                                             <field name="NUM">1</field>
                                                                                                           </shadow>
                                                                                                           <block type="convert_from_date" id="D)wHz^=FFv!%zu14#F`9">
                                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                             <field name="OPTION">object</field>
                                                                                                             <value name="VALUE">
                                                                                                               <block type="text" id="l2}(S$*x*xXv8{@KIM.D">
                                                                                                                 <field name="TEXT">1970-01-01 00:00</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                   </block>
                                                                                                 </value>
                                                                                                 <value name="ADD1">
                                                                                                   <block type="text" id=":iAB8qR}G,901EBDh9V@">
                                                                                                     <field name="TEXT"> Std.</field>
                                                                                                   </block>
                                                                                                 </value>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </statement>
                                                                                         <statement name="ELSE">
                                                                                           <block type="control" id="1TUgHZS-t^g/r?roa;T:">
                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                             <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                                             <value name="VALUE">
                                                                                               <block type="text_join" id="T7V(Q!yelYlEyv$W7W4_">
                                                                                                 <mutation items="2"></mutation>
                                                                                                 <value name="ADD0">
                                                                                                   <block type="convert_from_date" id="jqWJ%(d*IN6r=2uM2yvn">
                                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                     <field name="OPTION">custom</field>
                                                                                                     <field name="FORMAT">mm:ss</field>
                                                                                                     <value name="VALUE">
                                                                                                       <block type="math_arithmetic" id="V_}s;3rr[k0N-jfh|V}}" inline="false">
                                                                                                         <field name="OP">ADD</field>
                                                                                                         <value name="A">
                                                                                                           <shadow type="math_number" id=".@}R8NgR0O}W6q=Evlt;">
                                                                                                             <field name="NUM">1</field>
                                                                                                           </shadow>
                                                                                                           <block type="math_arithmetic" id=")rp!A(b[(?HtEXZ4lGAs" inline="false">
                                                                                                             <field name="OP">MULTIPLY</field>
                                                                                                             <value name="A">
                                                                                                               <shadow type="math_number">
                                                                                                                 <field name="NUM">1</field>
                                                                                                               </shadow>
                                                                                                               <block type="variables_get" id="p?7L/:k:KJVYeaAb(Pvk">
                                                                                                                 <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="B">
                                                                                                               <shadow type="math_number" id="$eyPSY:~L?%j}!8_HgRv">
                                                                                                                 <field name="NUM">1000</field>
                                                                                                               </shadow>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                         <value name="B">
                                                                                                           <shadow type="math_number">
                                                                                                             <field name="NUM">1</field>
                                                                                                           </shadow>
                                                                                                           <block type="convert_from_date" id="y9P,E-JX6-@5QR+90)Ca">
                                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                             <field name="OPTION">object</field>
                                                                                                             <value name="VALUE">
                                                                                                               <block type="text" id="rE/w?T7DF_A_Vh|YK/Rp">
                                                                                                                 <field name="TEXT">1970-01-01 00:00</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                   </block>
                                                                                                 </value>
                                                                                                 <value name="ADD1">
                                                                                                   <block type="text" id="hNX8Lh|^E|EZ)wM(jO+[">
                                                                                                     <field name="TEXT"> Min.</field>
                                                                                                   </block>
                                                                                                 </value>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </statement>
                                                                                       </block>
                                                                                     </next>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </next>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                             <statement name="ELSE">
                                               <block type="control" id="VSZMp_fJpd1OzYCY=~xN">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="text" id="b8vzkml]yd@f[0(Q`e(2">
                                                     <field name="TEXT"></field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="AIf3cY6ex%9}xpyKmOtB">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="text" id="nX.)Ffq{`}-Hsq,#!6^6">
                                                         <field name="TEXT"></field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                           </block>
                                         </statement>
                                       </block>
                                       <block type="math_arithmetic" id="xwnzXAGK!}3ZV`cn+p-J" inline="false" x="318" y="281">
                                         <field name="OP">MINUS</field>
                                         <value name="A">
                                           <shadow type="math_number">
                                             <field name="NUM">1</field>
                                           </shadow>
                                           <block type="variables_get" id="SV_szV+egA]WXMJuUu0A">
                                             <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <shadow type="math_number">
                                             <field name="NUM">1</field>
                                           </shadow>
                                           <block type="variables_get" id="s7O)lDYhn!.(UeSGgj(c">
                                             <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                           </block>
                                         </value>
                                       </block>
                                      </xml>
                                      

                                      sigi234S 1 Antwort Letzte Antwort
                                      1
                                      • K Kuddel

                                        @paul53 super, vielen Dank. Habe es hinbekommen.

                                        @dos1973

                                        Hier das fertige Skript:

                                        <xml xmlns="https://developers.google.com/blockly/xml">
                                         <variables>
                                           <variable id="z6@)Eo%V776?qOlzgeJq">sekunden_total</variable>
                                           <variable id="c70ch.|4qGYP3!UEvS8x">sekunden</variable>
                                           <variable id="Gv49fQ40~+/ya6#JMvO}">time_total</variable>
                                           <variable id="8?J4Jmf7%_-wS9!yell|">time</variable>
                                           <variable id="7gbI~lkqQ~M|C;mJ+cDq">i</variable>
                                           <variable id="fB}3.DkAG[Zns[jkc^B)">diff</variable>
                                           <variable id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</variable>
                                         </variables>
                                         <block type="on_ext" id="mhrPpA^7UN)RTNT]/[[R" x="-12" y="-387">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                           <field name="CONDITION">ne</field>
                                           <field name="ACK_CONDITION"></field>
                                           <value name="OID0">
                                             <shadow type="field_oid" id="X%v$|Bp`D)/8o$MsBajH">
                                               <field name="oid">kodi.0.info.playing_time</field>
                                             </shadow>
                                           </value>
                                           <statement name="STATEMENT">
                                             <block type="controls_if" id="DPV3L8uxH[7hV$K{3Okp">
                                               <mutation else="1"></mutation>
                                               <value name="IF0">
                                                 <block type="logic_compare" id="f;Y93jeAj5hLE=HpAXci">
                                                   <field name="OP">NEQ</field>
                                                   <value name="A">
                                                     <block type="get_value" id="+oIYTrzhXShgXD?-dx?!">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">kodi.0.state</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="text" id="L7`/vLtiabj}GQ5_)n?I">
                                                       <field name="TEXT">stop</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO0">
                                                 <block type="variables_set" id="fTK`7dy@}I9{xOUk:fdm">
                                                   <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                   <value name="VALUE">
                                                     <block type="lists_split" id="fSNHlFM[e|2s~?~WLoA]">
                                                       <mutation mode="SPLIT"></mutation>
                                                       <field name="MODE">SPLIT</field>
                                                       <value name="INPUT">
                                                         <block type="get_value" id="%}I/[z=}v|bA_s+cN3T+">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">kodi.0.info.playing_time_total</field>
                                                         </block>
                                                       </value>
                                                       <value name="DELIM">
                                                         <shadow type="text" id="bO/MuTT:URPjI@SOF^wu">
                                                           <field name="TEXT">:</field>
                                                         </shadow>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="variables_set" id="3L:9B.c/-jdK~YPS;}kk">
                                                       <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                       <value name="VALUE">
                                                         <block type="lists_split" id="m0vWY?4A}Fy?zECIMa-g">
                                                           <mutation mode="SPLIT"></mutation>
                                                           <field name="MODE">SPLIT</field>
                                                           <value name="INPUT">
                                                             <block type="get_value" id="cmBA^z.eb9hODfdHQbW8">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">kodi.0.info.playing_time</field>
                                                             </block>
                                                           </value>
                                                           <value name="DELIM">
                                                             <shadow type="text" id=";o/sw@k#dD0mWkC4+b)M">
                                                               <field name="TEXT">:</field>
                                                             </shadow>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="variables_set" id=";/]R)Ct0Dfu6i-d@fN1=">
                                                           <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                           <value name="VALUE">
                                                             <block type="math_number" id="!A%IT%#arX*{$UY8=Kva">
                                                               <field name="NUM">0</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="variables_set" id="%LYJ{05i.|T3]O%OZlti">
                                                               <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                               <value name="VALUE">
                                                                 <block type="math_number" id="-:ZTaSM~NWM#h9LoWuBz">
                                                                   <field name="NUM">0</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="controls_for" id="2R-$*vTVI{p#n(T8RV.d">
                                                                   <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                   <value name="FROM">
                                                                     <shadow type="math_number" id="yo3lqjuQw}eovRb+XXQ?">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <value name="TO">
                                                                     <shadow type="math_number">
                                                                       <field name="NUM">10</field>
                                                                     </shadow>
                                                                     <block type="lists_length" id="030ssz#WyY6qdm{Y]+%7">
                                                                       <value name="VALUE">
                                                                         <block type="variables_get" id="LtjmBy}A-?%QRfowFhZH">
                                                                           <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <value name="BY">
                                                                     <shadow type="math_number" id="W4)e3sbN-C[AtksvJyb0">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <statement name="DO">
                                                                     <block type="math_change" id="gZ[fn:P}L%w5Hu*/k[w]">
                                                                       <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                       <value name="DELTA">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="math_arithmetic" id="_nrssb{}I|MM@7r=B2*[" inline="false">
                                                                           <field name="OP">MULTIPLY</field>
                                                                           <value name="A">
                                                                             <shadow type="math_number">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                             <block type="math_arithmetic" id="?QRRgY%9F+.UW^4Wl#AO">
                                                                               <field name="OP">POWER</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number" id="`nZhdJ)1xBsAmv:WOH{$">
                                                                                   <field name="NUM">60</field>
                                                                                 </shadow>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="math_arithmetic" id="%5v;FD87a~}IdxMU?0vb">
                                                                                   <field name="OP">MINUS</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="~kv8]AFICio,y}2%8r:A">
                                                                                       <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number" id="By?4fEM=/cIUg=PVf-%.">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <value name="B">
                                                                             <shadow type="math_number">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                             <block type="convert_tonumber" id="Xjk8qkB+rf0:[Z@JKl{4">
                                                                               <value name="VALUE">
                                                                                 <block type="lists_getIndex" id="=M7:!eN*k,;Op`ncPBu)">
                                                                                   <mutation statement="false" at="true"></mutation>
                                                                                   <field name="MODE">GET</field>
                                                                                   <field name="WHERE">FROM_END</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="variables_get" id="4n4]sPE}}yOyCqIR6sK$">
                                                                                       <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="AT">
                                                                                     <block type="variables_get" id="5KN91f+6[?BIQQU^P+T/">
                                                                                       <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </statement>
                                                                   <next>
                                                                     <block type="controls_for" id="/[|3}k{qYeK4wFiN6#lx">
                                                                       <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                       <value name="FROM">
                                                                         <shadow type="math_number" id="1FErI$q)qi=X^N_:%Js?">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                       </value>
                                                                       <value name="TO">
                                                                         <shadow type="math_number">
                                                                           <field name="NUM">10</field>
                                                                         </shadow>
                                                                         <block type="lists_length" id="yJ$~7a^l4Gd#j:0c3$xr">
                                                                           <value name="VALUE">
                                                                             <block type="variables_get" id="Lh*:^j)}o|0jC8rH:.-+">
                                                                               <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <value name="BY">
                                                                         <shadow type="math_number" id="T3rAediff*:%E88l7+4%">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                       </value>
                                                                       <statement name="DO">
                                                                         <block type="math_change" id="Bsy0,}!M#a)Xi$$B[t]z">
                                                                           <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                           <value name="DELTA">
                                                                             <shadow type="math_number">
                                                                               <field name="NUM">1</field>
                                                                             </shadow>
                                                                             <block type="math_arithmetic" id="ecXevA40kHBJjiNry:#^" inline="false">
                                                                               <field name="OP">MULTIPLY</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="math_arithmetic" id="K#Ey7v.v;+lcl{1f@5]H">
                                                                                   <field name="OP">POWER</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number" id="a~E=mS#u_.VcC[jX^/;*">
                                                                                       <field name="NUM">60</field>
                                                                                     </shadow>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="math_arithmetic" id="p}_MS2!F;,r~o9#j=$`e">
                                                                                       <field name="OP">MINUS</field>
                                                                                       <value name="A">
                                                                                         <shadow type="math_number">
                                                                                           <field name="NUM">1</field>
                                                                                         </shadow>
                                                                                         <block type="variables_get" id="Wr7+iV$a;ynQ,P%0v/|h">
                                                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="B">
                                                                                         <shadow type="math_number" id="7DDk.nAP2`-o[3:5T/`V">
                                                                                           <field name="NUM">1</field>
                                                                                         </shadow>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="convert_tonumber" id="95Wkc=Wn9wjOL/~emwC:">
                                                                                   <value name="VALUE">
                                                                                     <block type="lists_getIndex" id="):n}4;0GiBs#gE+_-.uf">
                                                                                       <mutation statement="false" at="true"></mutation>
                                                                                       <field name="MODE">GET</field>
                                                                                       <field name="WHERE">FROM_END</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="variables_get" id="WCs.rt_18?skHj|HC;)H">
                                                                                           <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="AT">
                                                                                         <block type="variables_get" id="dA]HyO~W)iY5ROXqc$PI">
                                                                                           <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </statement>
                                                                       <next>
                                                                         <block type="variables_set" id="x8t?3^{cNVFaKtPFnFq9">
                                                                           <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_arithmetic" id="2+`tDY!LQG^9AZO8#!ZQ" inline="false">
                                                                               <field name="OP">MULTIPLY</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number" id="(_=}+a~Ov.r2s~-^a_*5">
                                                                                   <field name="NUM">1000</field>
                                                                                 </shadow>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="math_arithmetic" id="D.`(%|9dOcm*(umN9bT@" inline="false">
                                                                                   <field name="OP">MINUS</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="u7f(0GaP.#L;(fYVBLIF">
                                                                                       <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="]@3~@l|_;uO[L%2ioP,k">
                                                                                       <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="variables_set" id="@IH=J5P5=tnH`9Iu_Px|">
                                                                               <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                               <value name="VALUE">
                                                                                 <block type="math_arithmetic" id="~E$;9??|fPcDC|HJqW`-" inline="false">
                                                                                   <field name="OP">MINUS</field>
                                                                                   <value name="A">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id="1`UnN?gb.[~)w}d6VRR)">
                                                                                       <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <value name="B">
                                                                                     <shadow type="math_number">
                                                                                       <field name="NUM">1</field>
                                                                                     </shadow>
                                                                                     <block type="variables_get" id=")m(;caB*Y|AI7#H$k`-_">
                                                                                       <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="control" id="E.QKHpVBex}})iCx|o|3">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                   <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="text_join" id="r1UQi]J^lm7$v9OOADL%">
                                                                                       <mutation items="2"></mutation>
                                                                                       <value name="ADD0">
                                                                                         <block type="convert_from_date" id="TgQBU@2m$Aam**8naRqf">
                                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                           <field name="OPTION">hh:mm</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="math_arithmetic" id="vFX,u4337mHL^[94MZjL">
                                                                                               <field name="OP">ADD</field>
                                                                                               <value name="A">
                                                                                                 <shadow type="math_number">
                                                                                                   <field name="NUM">1</field>
                                                                                                 </shadow>
                                                                                                 <block type="time_get" id="WGy*s;07oKI/J`GDI-x3">
                                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                   <field name="OPTION">object</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="B">
                                                                                                 <shadow type="math_number">
                                                                                                   <field name="NUM">1</field>
                                                                                                 </shadow>
                                                                                                 <block type="variables_get" id="%/#p`[h/wlvqSaXg{l2J">
                                                                                                   <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </value>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="ADD1">
                                                                                         <block type="text" id="+v9neh|_70u#CP~sT+@%">
                                                                                           <field name="TEXT"> Uhr</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="comment" id=":K!+{P30dMt;$jGMg6$T">
                                                                                       <field name="COMMENT">Restzeit in DP schreiben</field>
                                                                                       <next>
                                                                                         <block type="controls_if" id="YLU1O|*kP;~~)*%A*c64" collapsed="true">
                                                                                           <mutation else="1"></mutation>
                                                                                           <value name="IF0">
                                                                                             <block type="logic_compare" id="O/cS/vtiw%t25mVoX0E)">
                                                                                               <field name="OP">GTE</field>
                                                                                               <value name="A">
                                                                                                 <block type="variables_get" id="Z9ar3}8Z9NYbMmd_Lr{$">
                                                                                                   <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="B">
                                                                                                 <block type="math_number" id="EQS;F?$mC9ays!GQHelg">
                                                                                                   <field name="NUM">3600</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </value>
                                                                                           <statement name="DO0">
                                                                                             <block type="control" id=":vGI/P.wI*w^?R3?]A_y">
                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                               <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="text_join" id="qj]1+vKK[~s9~4E-?Hmt">
                                                                                                   <mutation items="2"></mutation>
                                                                                                   <value name="ADD0">
                                                                                                     <block type="convert_from_date" id="op^3$IrO,sQp3qbNH[yr">
                                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                       <field name="OPTION">hh:mm:ss</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="math_arithmetic" id="`@gy7^%rBU*AJl2gq,W^" inline="false">
                                                                                                           <field name="OP">ADD</field>
                                                                                                           <value name="A">
                                                                                                             <shadow type="math_number" id="7DRWC8OQ|/xV,23*f7b.">
                                                                                                               <field name="NUM">1</field>
                                                                                                             </shadow>
                                                                                                             <block type="math_arithmetic" id="SRr*2A-d~+C3S^ASaz|z" inline="false">
                                                                                                               <field name="OP">MULTIPLY</field>
                                                                                                               <value name="A">
                                                                                                                 <shadow type="math_number" id="B;w,.X}/n^mV^MqBH1EO">
                                                                                                                   <field name="NUM">1</field>
                                                                                                                 </shadow>
                                                                                                                 <block type="variables_get" id="Gje!a(?`DOk/EP7U~{+7">
                                                                                                                   <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                               <value name="B">
                                                                                                                 <shadow type="math_number" id="eh15lqzy94bn2F7r%vLT">
                                                                                                                   <field name="NUM">1000</field>
                                                                                                                 </shadow>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                           <value name="B">
                                                                                                             <shadow type="math_number" id="K2`(*`(@|mb~gR~jDTT.">
                                                                                                               <field name="NUM">1</field>
                                                                                                             </shadow>
                                                                                                             <block type="convert_from_date" id="D)wHz^=FFv!%zu14#F`9">
                                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                               <field name="OPTION">object</field>
                                                                                                               <value name="VALUE">
                                                                                                                 <block type="text" id="l2}(S$*x*xXv8{@KIM.D">
                                                                                                                   <field name="TEXT">1970-01-01 00:00</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                   <value name="ADD1">
                                                                                                     <block type="text" id=":iAB8qR}G,901EBDh9V@">
                                                                                                       <field name="TEXT"> Std.</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </statement>
                                                                                           <statement name="ELSE">
                                                                                             <block type="control" id="1TUgHZS-t^g/r?roa;T:">
                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                               <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="text_join" id="T7V(Q!yelYlEyv$W7W4_">
                                                                                                   <mutation items="2"></mutation>
                                                                                                   <value name="ADD0">
                                                                                                     <block type="convert_from_date" id="jqWJ%(d*IN6r=2uM2yvn">
                                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                       <field name="OPTION">custom</field>
                                                                                                       <field name="FORMAT">mm:ss</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="math_arithmetic" id="V_}s;3rr[k0N-jfh|V}}" inline="false">
                                                                                                           <field name="OP">ADD</field>
                                                                                                           <value name="A">
                                                                                                             <shadow type="math_number" id=".@}R8NgR0O}W6q=Evlt;">
                                                                                                               <field name="NUM">1</field>
                                                                                                             </shadow>
                                                                                                             <block type="math_arithmetic" id=")rp!A(b[(?HtEXZ4lGAs" inline="false">
                                                                                                               <field name="OP">MULTIPLY</field>
                                                                                                               <value name="A">
                                                                                                                 <shadow type="math_number">
                                                                                                                   <field name="NUM">1</field>
                                                                                                                 </shadow>
                                                                                                                 <block type="variables_get" id="p?7L/:k:KJVYeaAb(Pvk">
                                                                                                                   <field name="VAR" id="=M^bc[m%CQVRvq!f}vIA">rest_sek_gesamt</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                               <value name="B">
                                                                                                                 <shadow type="math_number" id="$eyPSY:~L?%j}!8_HgRv">
                                                                                                                   <field name="NUM">1000</field>
                                                                                                                 </shadow>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                           <value name="B">
                                                                                                             <shadow type="math_number">
                                                                                                               <field name="NUM">1</field>
                                                                                                             </shadow>
                                                                                                             <block type="convert_from_date" id="y9P,E-JX6-@5QR+90)Ca">
                                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                               <field name="OPTION">object</field>
                                                                                                               <value name="VALUE">
                                                                                                                 <block type="text" id="rE/w?T7DF_A_Vh|YK/Rp">
                                                                                                                   <field name="TEXT">1970-01-01 00:00</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                   <value name="ADD1">
                                                                                                     <block type="text" id="hNX8Lh|^E|EZ)wM(jO+[">
                                                                                                       <field name="TEXT"> Min.</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </statement>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                               <statement name="ELSE">
                                                 <block type="control" id="VSZMp_fJpd1OzYCY=~xN">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">javascript.0.sonstige.kodi_endzeit</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="text" id="b8vzkml]yd@f[0(Q`e(2">
                                                       <field name="TEXT"></field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="AIf3cY6ex%9}xpyKmOtB">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">javascript.0.sonstige.kodi_restzeit</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="nX.)Ffq{`}-Hsq,#!6^6">
                                                           <field name="TEXT"></field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                             </block>
                                           </statement>
                                         </block>
                                         <block type="math_arithmetic" id="xwnzXAGK!}3ZV`cn+p-J" inline="false" x="318" y="281">
                                           <field name="OP">MINUS</field>
                                           <value name="A">
                                             <shadow type="math_number">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="variables_get" id="SV_szV+egA]WXMJuUu0A">
                                               <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="variables_get" id="s7O)lDYhn!.(UeSGgj(c">
                                               <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field>
                                             </block>
                                           </value>
                                         </block>
                                        </xml>
                                        

                                        sigi234S Online
                                        sigi234S Online
                                        sigi234
                                        Forum Testing Most Active
                                        schrieb am zuletzt editiert von sigi234
                                        #28

                                        @Kuddel

                                        Hallo, da ist ein Fehler drinnen, Blöcke nicht verbunden

                                        Screenshot (2738)_LI.jpg

                                        Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                                        Immer Daten sichern!

                                        K 1 Antwort Letzte Antwort
                                        0
                                        • sigi234S sigi234

                                          @Kuddel

                                          Hallo, da ist ein Fehler drinnen, Blöcke nicht verbunden

                                          Screenshot (2738)_LI.jpg

                                          K Offline
                                          K Offline
                                          Kuddel
                                          schrieb am zuletzt editiert von
                                          #29

                                          @sigi234 oh danke, die blöcke sind überflüssig

                                          D 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          303

                                          Online

                                          32.7k

                                          Benutzer

                                          82.4k

                                          Themen

                                          1.3m

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

                                          • Du hast noch kein Konto? Registrieren

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