@paul53 DAS WARS !!!
Woher soll manN wissen, daß für solche Umrechnungen Millisekunden gebraucht werden...
Ich schließe Dich mal in mein Abendgebet mit ein! DANKE!
Wofür ich das brauche...
Ich habe in meiner VIS einen Button, der die Umwälzpumpe des Pools eben nur für eine oder 1,5 Stunden einschalten soll und dann wieder abschaltet. Die Anzeige der Sekunden bis Null gefällt mir halt nicht, ich will die Restzeitanzeige in Stunde : Minute : Sekunde haben.
Und hiermit funktioniert es endlich:
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="op`Z.+Kx,aE}tc_RlE1S">cnt</variable>
<variable type="interval" id="Intervall">Intervall</variable>
</variables>
<block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
<field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
<value name="IF0">
<block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
<field name="ATTR">val</field>
<field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="OMIG~M!)Tgbh}SQ;13mw">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
<value name="VALUE">
<block type="math_number" id="dbNGw9IS[M)Fo:,64Ftw">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="update" id="BLpA3Wtq=[-u!y=E~ohK">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Countdown</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="/$!=DQM[MzDmvMuT}j*8">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
<value name="IF0">
<block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
<field name="ATTR">val</field>
<field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="9J!zFSmIB2Ib?}%UZFlQ">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
<value name="VALUE">
<block type="math_number" id="zv8qt$#}psja6KYs0[CW">
<field name="NUM">3605</field>
</block>
</value>
<next>
<block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
<field name="NAME">Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="math_change" id="2PKEM#zmbpbRYV$csQZw">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
<value name="DELTA">
<shadow type="math_number" id="1,?E/cgNvLx-BYFKT!3S">
<field name="NUM">-1</field>
</shadow>
</value>
<next>
<block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Countdown</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="30jny5z1x$veeMy[CBH7">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
</block>
</value>
<next>
<block type="update" id="iQvn17-#VC9W|^E8,0Yw">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Laufzeit</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_from_date" id="jPW;[GF@Lv/Zgl1QM0MI">
<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="Or$ri}W`{~ziqhDoyvaE">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="#|IH#ce)V15qnSgU@BOu">
<field name="NUM">1000</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number" id="XbbDt{NQ|]H@4.u/GkCy">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="ino^~y]SxM||24A7dhq9">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="ut/-Hd?zBjW|1!l{ei}l">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="EbgM5RoL!Hy3oAUYj^WD">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="![`kqY5pz}qn[,bY!6v@">
<field name="NUM">3600</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
<value name="IF0">
<block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="P9]m`16(*D;vVi!#}D.q">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
</block>
</value>
<value name="B">
<block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
<field name="NAME">Intervall</field>
<next>
<block type="variables_set" id="4YodaC{|-F{-(13tDnwj">
<field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
<value name="VALUE">
<block type="math_number" id="SML4q$W:q#or;l;hs^eh">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>