Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Blockly führt Script doppelt aus

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

Blockly führt Script doppelt aus

Blockly führt Script doppelt aus

Scheduled Pinned Locked Moved Blockly
6 Posts 2 Posters 591 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ymurawskiY Offline
    ymurawskiY Offline
    ymurawski
    wrote on last edited by ymurawski
    #1

    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>
    
    HomoranH 1 Reply Last reply
    0
    • ymurawskiY ymurawski

      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>
      
      HomoranH Do not disturb
      HomoranH Do not disturb
      Homoran
      Global Moderator Administrators
      wrote on last edited by
      #2

      @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

      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

      ymurawskiY 1 Reply Last reply
      0
      • HomoranH Homoran

        @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

        ymurawskiY Offline
        ymurawskiY Offline
        ymurawski
        wrote on last edited by
        #3

        kamera.jpg

        Bitte sehr 🙂

        HomoranH 1 Reply Last reply
        0
        • ymurawskiY ymurawski

          kamera.jpg

          Bitte sehr 🙂

          HomoranH Do not disturb
          HomoranH Do not disturb
          Homoran
          Global Moderator Administrators
          wrote on last edited by
          #4

          @ymurawski ist das alles?

          Ich sehe kein stop timeout

          kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

          der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

          ymurawskiY 1 Reply Last reply
          0
          • HomoranH Homoran

            @ymurawski ist das alles?

            Ich sehe kein stop timeout

            ymurawskiY Offline
            ymurawskiY Offline
            ymurawski
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0
            • ymurawskiY Offline
              ymurawskiY Offline
              ymurawski
              wrote on last edited by
              #6

              Kann geschlossen werden. habe es hinbekommen. Hier ein Tutorial:

              link text

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Support us

              ioBroker
              Community Adapters
              Donate

              310

              Online

              32.4k

              Users

              81.3k

              Topics

              1.3m

              Posts
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              ioBroker Community 2014-2025
              logo
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Unread 0
              • Categories
              • Unreplied
              • Popular
              • GitHub
              • Docu
              • Hilfe