NEWS
Blockly führt Script doppelt aus
-
Hallo, und zwar habe ich ein Problem mit meinen Blockly script.
Ich habe 3 Kameras die bei Betätigung des Tür Sensors und Abwesenheit von mir, per RTSP ein kleines Video Aufzeichnen und das dann per Telegram an mich versenden.
Das Funktioniert auch tadellos aber es wird immer doppelt gesendet.
Ich habe schon probiert mir ein Datenpunkt zu erstellen oder die Sensoren direkt anzusteuern...egal wie es wird doppelt gesendet.Ich weiß nicht ob das im Zusammenhang steht, aber in meinen VIS habe ich mehrere Buttons die Alexa Routinen starten. Diese Button lösen auch doppelt aus. Also Alexa spricht kurz und fängt dann von vorne an.
Hier mal das Blockly script:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on" id="|6hT1}cR:WfIlHBT-E@x" x="-1763" y="-1638"> <field name="OID">javascript.0.TuerGeoeffnetUndAbwesend</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_settimeout" id="s]3gsN8zsV68ks)pKhzY"> <field name="NAME">timeout2</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="exec" id="dDwB56u5^D[IqF26Vgz*"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG">log</field> <value name="COMMAND"> <shadow type="text" id="zSYV5{v;D#tJ|g%}oJf/"> <field name="TEXT">ffmpeg -y -i rtsp://admin:01384655@192.168.1.245:554/h264Preview_01_sub -t 10 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 10 /opt/iobroker/cam1.mp4</field> </shadow> </value> <next> <block type="exec" id="x|`S-r/p=XcEM%n?`[:H"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG">log</field> <value name="COMMAND"> <shadow type="text" id="g)}F_tYNf27fXhs.*3Ou"> <field name="TEXT">ffmpeg -y -i rtsp://admin:01384655@192.168.1.246:554/h264Preview_01_sub -t 15 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 10 /opt/iobroker/cam2.mp4</field> </shadow> </value> <next> <block type="exec" id="@ZtCCb=jt}s)(/oyYlrr"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG">log</field> <value name="COMMAND"> <shadow type="text" id="3447l}YWkET=Eb-K1@yc"> <field name="TEXT">ffmpeg -y -i rtsp://admin:01384655@192.168.1.247:554/h264Preview_01_sub -t 10 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 10 /opt/iobroker/cam3.mp4</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="t.8t4/CexnY;QFj6FRdE"> <field name="NAME">timeout</field> <field name="DELAY">30</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="telegram" id="]ly{5FXKmZm|qp?@KSYL"> <field name="INSTANCE">.3</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="FxF3~=P%hRcVj_+is8E3"> <field name="TEXT">/opt/iobroker/cam1.mp4</field> </shadow> </value> <next> <block type="telegram" id=":u}fevbvVQC8wsMGc6u6"> <field name="INSTANCE">.3</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="@}p?|jkAj:;(Nqb@Fp~s"> <field name="TEXT">/opt/iobroker/cam2.mp4</field> </shadow> </value> <next> <block type="telegram" id="9n=0WAZ5bmk5qt@?}h=S"> <field name="INSTANCE">.3</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="07YvJAU]N0?3dni}h]m*"> <field name="TEXT">/opt/iobroker/cam3.mp4</field> </shadow> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
@ymurawski sagte in Blockly führt Script doppelt aus:
Hier mal das Blockly script:
Hast du auch einen Screenshot?
Das xml lässt sich am Handy schlecht umsetzen -
Bitte sehr
-
@ymurawski ist das alles?
Ich sehe kein stop timeout
-
@Homoran
Ja das ist alles soweit. Ich probiere es mal mit dem Stop Timeout.Das seltsame ist ja, das die Log zeigt das die Aufzeichnung der 3 Streams bereits doppelt ausgelöst wird , also noch bevor das Timeout für Telegram kommt.
-
Kann geschlossen werden. habe es hinbekommen. Hier ein Tutorial: