Hallo,
habe mir folgendes Blockly zusammen gestrickt.
Funktioniert auch gut.
Nur wenn ich das Script abbreche, warum auch immer, schaltet sich zwar das Script aus, aber die Zeit läuft dann weiter.
D.h. wenn ich bei Kreis 1 abbreche läuft nach der vorgegebenen Pause Kreis 2 an, obwohl ausgeschalten ist.
Wo in dem Script muss ich denn welchen Befehl zum Abbruch reinschreiben?
Vielen Dank für eure Hilfe!
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on_ext" id=";4_.oFchn$Px050OD.}E" x="-987" y="-163">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="MNSqYh-kbU~Y,NO`)WFS">
<field name="oid">javascript.0.scriptEnabled.Garten.Beregnung_Automatik_3Kreise</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="debug" id="CN!p{^szF$%{rbU)!DKg">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="p(1lre9|OX/U_HACly5`">
<field name="TEXT">test</field>
</shadow>
<block type="get_value" id="w!O%Q@OWN8FcCT`=Ixr5">
<field name="ATTR">val</field>
<field name="OID">javascript.0.scriptEnabled.Garten.Beregnung_Automatik_3Kreise</field>
</block>
</value>
<next>
<block type="update" id="SfX7t}H0!){W0{ATLVZ)">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown.Zeitvorgabe</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="-Uvv]RXf4GY%7N}!#*Ls">
<field name="NUM">25</field>
</block>
</value>
<next>
<block type="control" id=".Y7fE}dxm}+cO,Efq*IP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.AnAus3</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="|O^rsQ0re$`#frW!v?4z">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="update" id="74@p8gO}L6_-h/7jA1Q:">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown2.Zeitvorgabe2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="i*@nM-KpqmuI9K[ikJOy">
<field name="NUM">25</field>
</block>
</value>
<next>
<block type="control" id="5Z-W78Mq,TM1()%C_MJP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.AnAus4</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="~q[+T`DxFa+j?L#IIJ$c">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="sendto_custom" id="^}AiP;%)4lQR^/K3sm=L">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="send,text" with_statement="false"></mutation>
<field name="INSTANCE">sayit.0</field>
<field name="COMMAND">send</field>
<field name="LOG"></field>
<field name="WITH_STATEMENT">FALSE</field>
<value name="ARG0">
<shadow type="text" id="?DEAa_WN.%7^R_Y$n+^E">
<field name="TEXT">say</field>
</shadow>
</value>
<value name="ARG1">
<shadow type="text" id="FQx^PiJ5pI]$ON-/k^e.">
<field name="TEXT">Kreis 3, Hortensien, Hochbeete und Gewächshaus wird jetzt gestartet</field>
</shadow>
</value>
<next>
<block type="timeouts_wait" id="jTwpYUi-k~T57dD6Q-s`">
<field name="DELAY">21</field>
<field name="UNIT">min</field>
<next>
<block type="control" id="b.BD-eedZK`Pyp}I,Ize">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="(0J?mcLoY(or,xhp8NL/">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="debug" id="Lr=o|4{^*0;~QboB$sD7">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="yAQn`M,~p0*5WqaZTPHb">
<field name="TEXT">test</field>
</shadow>
<block type="get_value" id=")x`UI1fnECUu^bOF(F[[">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
</block>
</value>
<next>
<block type="controls_if" id="y$=*^@]ea@8KT~pWk*|,">
<value name="IF0">
<block type="logic_operation" id="DCz0mi?]7+O3`4T(%=ZF" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="gJsypX:,ioSL#XK(g_Wg">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="BS;k|Ng/*:EQ]:tWVU)i">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="f7)sJ$s@};d~4ANT~,tM">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="F7?|]37bu8,u5SL[bU4h">
<field name="OP">EQ</field>
<value name="A">
<block type="on_source" id="Rb6![b8OLlCeY`p}h4];">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="o?X0IR/gn0TUjIe:[=W7">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="7[RwncT/qBK|Z~?z7-qn">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown.Zeitvorgabe</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="mXjjKY;AuwGR[CC%^zB{">
<field name="NUM">30</field>
</block>
</value>
<next>
<block type="control" id="9j!2UnM^H{Z9|_tX(6,T">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.AnAus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id=";J1H*~+wLUKvS.}L/d|}">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="update" id="s[-5*|aUAJvcbO+N15Aq">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown2.Zeitvorgabe2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="QXm8KkPtxJ57eec1(Z-C">
<field name="NUM">25</field>
</block>
</value>
<next>
<block type="control" id="e|3GbIG-?0WR3wBL;^Qo">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.AnAus5</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="Si@ZE`3AR]tlAIr^IpMW">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="sendto_custom" id="b??aY:-b4x$dDJ?wI,=a">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="send,text" with_statement="false"></mutation>
<field name="INSTANCE">sayit.0</field>
<field name="COMMAND">send</field>
<field name="LOG"></field>
<field name="WITH_STATEMENT">FALSE</field>
<value name="ARG0">
<shadow type="text" id="NjnMsf3*U}N}pv3^^3HV">
<field name="TEXT">say</field>
</shadow>
</value>
<value name="ARG1">
<shadow type="text" id="btOCXnPQlO;|rH(Go)Sk">
<field name="TEXT">Kreis 1 und Hochbeete vorn wird jetzt gestartet</field>
</shadow>
</value>
<next>
<block type="timeouts_wait" id="b?I9O!Y[A+tY2w0@_fS[">
<field name="DELAY">31</field>
<field name="UNIT">min</field>
<next>
<block type="control" id="b@tW%,n)=qovqw8)|(*D">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="1A%Y~{SO/Q4s::+|X+uX">
<field name="NUM">2</field>
</block>
</value>
<next>
<block type="debug" id="Mr?3gi7ge~nCN[3smLvD">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="V8*=KJ+a@Y9;loXCC@D}">
<field name="TEXT">test</field>
</shadow>
<block type="get_value" id="([WLF)mc#}rcQ0w[=Z`/">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
</block>
</value>
<next>
<block type="controls_if" id="lwj)v{^4fcX{v9;ENwD-">
<value name="IF0">
<block type="logic_operation" id="_yjZ]FuCU}Tqee)#}d;!" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="M+oY6.m+=TKf2(w4N@NV">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="oj]d0vz~vf@F5)KCr8e1">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="^Jaf$^D,GEf,J,f$@kw~">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="k!erv~L.!Aa=3J[b(CUz">
<field name="OP">EQ</field>
<value name="A">
<block type="on_source" id="Y7h[5FyoAk;73TS9Fx)]">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="#CRls5_fe|}/42.i*2nR">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="EnM!6U^=Ae^=oeyRQa9?">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown.Zeitvorgabe</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="}1x4}O*;g06!]T;kW{(y">
<field name="NUM">15</field>
</block>
</value>
<next>
<block type="control" id="!;!.Yj[#`Y[IV!wMDIne">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.AnAus2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id=",[D`evpw}p*B|qoeXS,0">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="update" id="c{n%H~On^;YuZYuJ}Ekl">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown2.Zeitvorgabe2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="LD@40o;p@YzGK4?}C|zb">
<field name="NUM">15</field>
</block>
</value>
<next>
<block type="control" id="/2ifbB2H58/1Z1VYu[6E">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.AnAus6</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="ur+!$cBET?|ABLM=T}Ra">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="sendto_custom" id="D){;hLmj0]:r2;m3dWZz">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="send,text" with_statement="false"></mutation>
<field name="INSTANCE">sayit.0</field>
<field name="COMMAND">send</field>
<field name="LOG"></field>
<field name="WITH_STATEMENT">FALSE</field>
<value name="ARG0">
<shadow type="text" id="perN{GE/tQI+E,70#!nK">
<field name="TEXT">say</field>
</shadow>
</value>
<value name="ARG1">
<shadow type="text" id="N%]b6[#;J_s:V`tXa+:T">
<field name="TEXT">Kreis 2 und Zaun wird gestartet</field>
</shadow>
</value>
<next>
<block type="timeouts_wait" id="G(@9a=?Bu+#3+0RQ`!ue">
<field name="DELAY">15</field>
<field name="UNIT">min</field>
<next>
<block type="update" id="BZH`Y5UPQqu~Wtl!giXv">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Countdown3.countdown3</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="TrbYQ=zQ.K]remW9K:~O">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="control" id="4v:zGqTUOQz_C=Bg%FRP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="=R$pWeVyrb_l4PRmD-y-">
<field name="NUM">3</field>
</block>
</value>
<next>
<block type="debug" id="LgSFrO3x`vje/*_0c^}$">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="969?RPm~!FZo-(Z^89X)">
<field name="TEXT">test</field>
</shadow>
<block type="get_value" id="Pt#ks}$G(mgLKWSH|Dc/">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
</block>
</value>
<next>
<block type="controls_if" id="-+e([V~FLSyE^mpV]!{i">
<value name="IF0">
<block type="logic_compare" id="jIE.=eQ}b}([+1jES%X+">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="FN#,(Qeerc04:o8,)kHU">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="og/hGemtXANf3|*WU!Mn">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="3(:Q;:z9.s`4d%jnl,7e">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.scriptEnabled.Garten.Beregnung_Automatik_3Kreise</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="@mctqbtV)F!reVKU:53;">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="8#?,1~@HLEg!YS!;LZwz">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Beregnung_Automatik.0.Zaehler</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="5`EY7SBzdu^O6tIGlsaM">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="sendto_custom" id="k}W]S]6W,O*~)E5k+_lj">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="send,text" with_statement="false"></mutation>
<field name="INSTANCE">sayit.0</field>
<field name="COMMAND">send</field>
<field name="LOG"></field>
<field name="WITH_STATEMENT">FALSE</field>
<value name="ARG0">
<shadow type="text" id="=fP7*i#m3_J?+-q4nROa">
<field name="TEXT">say</field>
</shadow>
</value>
<value name="ARG1">
<shadow type="text" id="A-D=OCnP,%[HYFK.pYJ}">
<field name="TEXT">Beregnung ist jetzt beendet</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>