NEWS
Timeout variabel in Blockly [gelöst]
-
****Hallo Leute ich bin neu hier.
Ich versuche nun schon seit einigen Tagen im Blockly ein variable aus schalt Zeit zu kreieren.
Da ich vorher nichts mit Skripte zu tun hatte, fällt es mir schwer.
Ich bin nun mal nur ein Straßenbauer.
Wie kann ich das im Blockly realisieren.
Hier mein Versuch.****
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="schedule" id="wkfpcj2YY*#A:Sb_|IQi" x="-388" y="-337"><field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"><block type="control" id="A2g#B!1wGbnUe=+T{cf8"><mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Basic.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="j+uo):s{Y!Ln9Yf6i@=C"><field name="BOOL">TRUE</field></block></value> <next><block type="variables_set" id="j7N@0n,gP+3!EKfn;yyR"><field name="VAR">variable Zeit</field> <value name="VALUE"><block type="convert_from_date" id="PXq5lf8-hb*Kk+-JGfH:"><mutation format="false" language="false"></mutation> <field name="OPTION">s</field> <value name="VALUE"><block type="math_number" id="2JE%^J%Ev/M]saWd-jdh"><field name="NUM">20</field></block></value></block></value> <next><block type="timeouts_cleartimeout" id="KNrcqz^xo*q{5.Ai^Xj:"><field name="NAME">timeout</field> <next><block type="timeouts_settimeout" id="?c,|u`G0no@)j%+[h^_q"><field name="NAME">timeout</field> <field name="DELAY">variable Zeit</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="control" id="d,@@*k)?8sxJR*:ub-e4"><mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Basic.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="xQ`C2M;e)q@xnVjKINrr"><field name="BOOL">FALSE</field></block></value></block></statement></block></next></block></next></block></next></block></statement></block></xml>
-
https://forum.iobroker.net/viewtopic.php?f=21&t=15505&p=162929#p162929 lässt sich nicht nur auf Tage anwenden.
-
****Danke das war es.
Hast mir sehr gut weiter geholfen. Da wäre ich so nicht drauf gekommen.
Danke,Danke :lol:****
-
das war es. `
Dann markiere bitte das Thema im Betreff des ersten Beitrags als [gelöst]. -
@paul53
Das Thema kann nicht mehr gefunden werden.
Kann mir noch jemand den Thread nennen?
Oder die Lösung? -