- Home
- Deutsch
- Skripten / Logik
- Blockly
- [gelöst] Kodi: Enduhrzeit berechnen
[gelöst] Kodi: Enduhrzeit berechnen
-
Hallo zusammen,
der Kodi Adapter zeigt mit die Dauer und die Spielzeit eines Films an:
kodi.0.info.playing_time_total; 01:31:42
kodi.0.info.playing_time: 31:36Ist es möglich daraus die Differenz, also den Rest zu berechnen und damit eine Enduhrzeit auszurechnen, wann der Film zu ende ist?
-
@Kuddel sagte:
den Rest zu berechnen und damit eine Enduhrzeit auszurechnen, wann der Film zu ende ist?
Vorschlag:
-
@paul53 iwo habe ich noch einen Fehler:
Ist: 12:26:35
Soll: 14:00:00 Uhr -
@Kuddel sagte:
wo habe ich noch einen Fehler:
diff = 1000 * (sekunden_total - sekunden)
Haben beide Datenpunkte den gleichen Namen ? -
@paul53 ah danke das minus hatte ich falsch. ich werde testen.
ja die DPs haben den gleichen Namen
EDIT: Funktioniert, Vielen Dank
-
hier das Endergenis als Blockly-Export
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <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="UyS4Ckq]DK=u(E|IV5|a" x="-37" y="-412"> <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="y%CApDq%H-@(J:5?MAiU"> <field name="oid">kodi.0.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="U|}v1P+7Z((QVxnb;L(Z"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="_WknMe|%WU5qtbA=6L4y"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="ne2kI/B~3Ag$)Up_!s92"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="^t@S/LR+s?0fdO/$$5Fr"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="D63tdWNK3cfIk,(8*g[7"> <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field> <value name="VALUE"> <block type="lists_split" id="#Bs8uF;CIVzH*#~zWC[Z"> <mutation mode="SPLIT"></mutation> <field name="MODE">SPLIT</field> <value name="INPUT"> <block type="get_value" id="O,$imajljBUn8`qd51tT"> <field name="ATTR">val</field> <field name="OID">kodi.0.info.playing_time_total</field> </block> </value> <value name="DELIM"> <shadow type="text" id="i][20zd:a%Z5WuNJbjiW"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="}rdCX^x;8$i%04ZJcd2o"> <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field> <value name="VALUE"> <block type="lists_split" id="/Tn?XMzhD[7o!]%7bN|`"> <mutation mode="SPLIT"></mutation> <field name="MODE">SPLIT</field> <value name="INPUT"> <block type="get_value" id="DHiTi[yB@_!HVVYFZQ#{"> <field name="ATTR">val</field> <field name="OID">kodi.0.info.playing_time</field> </block> </value> <value name="DELIM"> <shadow type="text" id="9r`t]#N.!+f5CYhltB$5"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="N+qpos_aO8E|Dv1]If3E"> <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field> <value name="VALUE"> <block type="math_number" id="e+Zv|}##KEg-jWW.VhR^"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="CI6cuB*r3V3air$w}Th*"> <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field> <value name="VALUE"> <block type="math_number" id=")aK/~m.cZKr^5i+?jiyR"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_for" id="05XR;DD2{J#JGlH#k1Pp"> <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field> <value name="FROM"> <shadow type="math_number" id="Z0e;xMGN}wF~qup4h:!n"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="5v*f*V{Pbzjd%cm[w9}|"> <field name="NUM">10</field> </shadow> <block type="lists_length" id=";l8nh!gomPd#o,AWU(x~"> <value name="VALUE"> <block type="variables_get" id="Fie%v/GluA(0/Uv2LjvW"> <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="Na-(x3y(g|Ic]PwD}Bc6"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="math_change" id="#RfBewH#M+$qHo,i[pW]"> <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field> <value name="DELTA"> <shadow type="math_number" id="c)!+NvI${{Hqg6ODoKwG"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="DO0C_qkin^w7Zg`13^Ax" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=":u]~YX#Px.)8XVC^+4OC"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="UthyNeMI|9X*q)Zg.`%k"> <field name="OP">POWER</field> <value name="A"> <shadow type="math_number" id=")MuNoA~pKeC)=?cD[FLN"> <field name="NUM">60</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="EZi-Gj-IR~d^|{BPNXC|"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="ugyZ{PW4wVs9l6@OZ9s1"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qaDS=5JKYmJ..f7O8[rN"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="^49ie8|ms}QAX2RjO=B("> <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field> </block> </value> <value name="B"> <shadow type="math_number" id="#;ZqpYS`M@3`7V=OE{#H"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="Hc[Z7Ru]=Ptfd}zfJPK)"> <field name="NUM">1</field> </shadow> <block type="convert_tonumber" id="jsfEtcf|%mTFET*+J97e"> <value name="VALUE"> <block type="lists_getIndex" id="{,3_@Jd`[eLJtDn9%zQ."> <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="t-j[3g5C#p5(I;hJu6`{"> <field name="VAR" id="Gv49fQ40~+/ya6#JMvO}">time_total</field> </block> </value> <value name="AT"> <block type="variables_get" id="#k^6{@JW.j_lLZz-!au["> <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="*i`Bgncmb]fI%^@Yqe+d"> <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field> <value name="FROM"> <shadow type="math_number" id="T:rLT72NA!Ldh.=kc(#!"> <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="/bH4Y.WEZHIFo-V02N1!"> <value name="VALUE"> <block type="variables_get" id="0CwKH!7j{{B.14[u{-pc"> <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="S?1g$6pH5gYVMz44YY[!"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="math_change" id="^$zYDn-;*4Y1zrxPf`|r"> <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="~T0g:DWVaNElI(yal`W!" 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="1k[z/FsR547Q9QvY8WT%"> <field name="OP">POWER</field> <value name="A"> <shadow type="math_number" id="#dXtj]g-7}K4y(W0N?_1"> <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="b-Q:1*!1y!-0ROIQ}2mg"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=";Yi(1HBUE0);GL[iBTB="> <field name="VAR" id="7gbI~lkqQ~M|C;mJ+cDq">i</field> </block> </value> <value name="B"> <shadow type="math_number" id="b8dUH`nESfT3H]?K#I!?"> <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="Gz7jq)g)/PC(]P*_n@hr"> <value name="VALUE"> <block type="lists_getIndex" id="7M0K,#1MX$pd$@jGnpXu"> <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="5jm{qI-%F/VhD?1%BdF4"> <field name="VAR" id="8?J4Jmf7%_-wS9!yell|">time</field> </block> </value> <value name="AT"> <block type="variables_get" id="}m`fxeU`x/9js9M#}FPY"> <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=")?r?W1sUUKIHU@q^jKu2"> <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field> <value name="VALUE"> <block type="math_arithmetic" id="9xBzQF]l!H5ehz:-`(nh" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="^}W9TM?z6jjL}N_j,Mx^"> <field name="NUM">1000</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="5SNb|`kFhqCJGU|p/@JB"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="CaGXbf_m9_?=FT}9C8ic" inline="false"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="-czVq.1JE(QbLjRK7NMa"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+vZTtD$s`!^[Woo)#Rk^"> <field name="VAR" id="z6@)Eo%V776?qOlzgeJq">sekunden_total</field> </block> </value> <value name="B"> <shadow type="math_number" id=";7BwHg}pRu600~Q4*No]"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="e[e9GA[x@o4N9f0,%5.^"> <field name="VAR" id="c70ch.|4qGYP3!UEvS8x">sekunden</field> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="ZHfzdb6%v,`[zO_!f:6d"> <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="convert_from_date" id="423)BA7-JL#+K^YrxtY!"> <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="M~;ci|@Wq$,ydkp6uLd1"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="?TYndgc}q5yB$k0|Tp?@"> <field name="NUM">1</field> </shadow> <block type="time_get" id="OGG8/S@3l23!N9-LzSR{"> <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" id="s-,[jty8kUa~cG{-qS1Z"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="v)f?IW~A1oRX9GvWUZMp"> <field name="VAR" id="fB}3.DkAG[Zns[jkc^B)">diff</field> </block> </value> </block> </value> </block> </value> </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> </block> </statement> </block> </statement> </block> </xml>
-
Danke Dir für das Bereitstellen des fertigen Blockeis
ich habe bei mir den DPkodi.0.seek
ergänzt
das hat den Vorteil dass ich vorspulen kann und die Enduhrzeit aktualisiert sich aus gleich.Was mir etwas Kopfzerbrechen macht ist die Häufigkeit der Aktualisierung da der DP "Seek" aufgrund der 3 "Komma Nachstellen" sehr viele Aktualisierungen erfährt, das geht sozusagen im Sekunden Takt.
@paul53
wie schätzt du das ein, kann ich das ignorieren oder sollte so etwas vermieden werden. -
@dos1973 sagte:
das geht sozusagen im Sekunden Takt.
Mit Sekundentakt sollte eine moderne Hardware zurecht kommen.
-
@dos1973 ja das mit seek macht sinn. habe ich direkt mit eingebaut
-
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 -
@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
-
@Kuddel
Ich habe den Ansatz Verfolgt bei Änderung von Seek ein Timeout zu setzen (2-5sekunden) und dann zu aktualisieren.
aber hat bisher nicht gefruchtetE
-
@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.
-
@dos1973 macht auch keinen sinn. das skript startet ja trotzdem bei jeder änderung. die berechnung folgt dann nur ein paar sekunden später
-
@Kuddel
Soll ja auch, ich will ja die ende Uhrzeit haben.Oder haben wir ein Missverständnis ?
-
@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 -
@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
-
@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>
-
@dos1973 habe die Restzeit auch noch eingebaut:
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>
-
@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!