Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [Vorlage]-Zeit herunterzählen bis GoogleTermin Eintritt

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Vorlage]-Zeit herunterzählen bis GoogleTermin Eintritt

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @hanan last edited by

      @hanan

      ich nutze das script momentan nicht - weiß nicht mal, ob das noch läuft? - hab kurz reingeschaut - du willst den suchBegriff, die ja der eigentliche eventname ist, in einem datenpunkt haben ? den gibt es doch :

      Image 1.png

      oder ist das eine script-unabhängige frage ?

      hanan 1 Reply Last reply Reply Quote 0
      • hanan
        hanan @liv-in-sky last edited by

        @liv-in-sky
        Hallo, natürlich läuft das Skript noch und ich habe dieses noch voll im Einsatz.
        Die Suche bei mir ist nach einem Namen von einem Sportverein, bei mir FC Basel 1893. Der Event ist zum Beispiel: 25.03.2021 13:00 - 15:00 FC Basel 1893 - SC Freiburg.
        Jetzt möchte ich zusätzlich den Text "FC Basel 1893 - SC Freiburg" in einen Datenpunk schreiben.

        liv-in-sky 1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @hanan last edited by

          @hanan
          zum verständnis - zeig mir mal ein bildchen der dp im ical event und wie du ihn rausfilterst - dann schau ich morgen mal

          hanan 1 Reply Last reply Reply Quote 0
          • hanan
            hanan @liv-in-sky last edited by

            @liv-in-sky
            Guten Morgen
            Hier mal meine ical2-html:

            <span style="font-weight: bold; color: white"><span class="icalNormal iCal-FC_Basel 1893">25.03.2021 13:00-15:00</span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-FC_Basel 18932'> SC Freiburg - FC Basel 1893</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-Mondkalender">28.03.2021  </span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-Mondkalender2'> 🌕 Vollmond</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-Mondkalender">04.04.2021  </span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-Mondkalender2'> 🌗 Abnehmender Halbmond</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-FC_Basel 1893">05.04.2021 16:00-18:00</span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-FC_Basel 18932'> FC Basel 1893 - FC Vaduz</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-FC_Basel 1893">10.04.2021 20:30-22:30</span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-FC_Basel 18932'> FC Luzern - FC Basel 1893</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-Mondkalender">12.04.2021  </span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-Mondkalender2'> 🌑 Neumond</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-FC_Basel 1893">18.04.2021 16:00-18:00</span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-FC_Basel 18932'> FC Basel 1893 - Servette FC</span></span><br/><span style="font-weight: bold; color: white"><span class="icalNormal iCal-Mondkalender">20.04.2021  </span></span><span style="font-weight: normal; color:white"><span class='icalNormal2 iCal-Mondkalender2'> 🌓 Zunehmender Halbmond</span></span>
            

            und hier das Blockly für die Suche "FC Basel 1893", welche ich danach in den Countdown-Adapter schreibe.
            Der Minutenintervall ist nur wegen dem Test:

            <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="/Z@?iF|RB-}UWrCdgO8l" x="-287" y="-336">
              <field name="SCHEDULE">* * * * *</field>
              <statement name="STATEMENT">
                <block type="controls_if" id="k$7XJl4TwwsH#F^BA]o!">
                  <value name="IF0">
                    <block type="logic_compare" id="M76Fa)lSqWA4~DpUBx]#">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="~cXDg*N0V}(j;3:-g@=W">
                          <field name="ATTR">val</field>
                          <field name="OID">countdown.0.countdowns.FCB Matsch.endDate</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="text" id="(L7Thmh8pK[9|obXZlJE">
                          <field name="TEXT">Invalid date</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="variables_set" id="Yn_03ee.K$F#2@`28d/M">
                      <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                      <value name="VALUE">
                        <block type="text" id="_%5/XWgSJPtR10.BNE?,">
                          <field name="TEXT">Basel 1893</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="[xt^RuL~Y|TiS0Re2?+#">
                          <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                          <value name="VALUE">
                            <block type="procedures_callcustomreturn" id="N;K:A$!9$8_uIv=#kGsc">
                              <mutation name="StringManipulation">
                                <arg name="i"></arg>
                                <arg name="j"></arg>
                              </mutation>
                              <value name="ARG0">
                                <block type="convert_tostring" id="}NBT];(s+uXuO#z=FiD.">
                                  <value name="VALUE">
                                    <block type="get_value" id="?}[v,-QV{dczpnW|a=qd">
                                      <field name="ATTR">val</field>
                                      <field name="OID">ical.2.data.html</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="ARG1">
                                <block type="variables_get" id="K2N=*^9uaX6H0}j]s5=*">
                                  <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="controls_if" id="/zQZ~5M`WY$~j~oKdH5z">
                              <value name="IF0">
                                <block type="logic_compare" id="Z?!zm|/x#bu*Q7]r4,%4">
                                  <field name="OP">NEQ</field>
                                  <value name="A">
                                    <block type="variables_get" id="F$bDE3t^u;v%QO/XXCr6">
                                      <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="NcEs_VXKEGxjrfy]h3_[">
                                      <field name="NUM">-1</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id="GYrFB;7cr*:#h}.et0I~">
                                  <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                  <value name="VALUE">
                                    <block type="text_getSubstring" id="-/-p`iD:y_vgxgLa5+dk">
                                      <mutation at1="true" at2="true"></mutation>
                                      <field name="WHERE1">FROM_START</field>
                                      <field name="WHERE2">FROM_START</field>
                                      <value name="STRING">
                                        <block type="variables_get" id="6{Y.CU(rNYFSz7JKw6gr">
                                          <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                        </block>
                                      </value>
                                      <value name="AT1">
                                        <block type="math_number" id="Kq.B-X,mqp;-N#)X=Q+P">
                                          <field name="NUM">10</field>
                                        </block>
                                      </value>
                                      <value name="AT2">
                                        <block type="math_number" id="t@;2+]ISoUKt$e,;oqY3">
                                          <field name="NUM">14</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="vT$zjFC6[`*5|+?^FUYb">
                                      <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                      <value name="VALUE">
                                        <block type="text_getSubstring" id="iKSGk7wasI6U%DoU%/~`">
                                          <mutation at1="true" at2="true"></mutation>
                                          <field name="WHERE1">FROM_START</field>
                                          <field name="WHERE2">FROM_START</field>
                                          <value name="STRING">
                                            <block type="variables_get" id="|d#VH=fnVXwAs^x#8Z{d">
                                              <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                            </block>
                                          </value>
                                          <value name="AT1">
                                            <block type="math_number" id="t#m1rz,4t`GTw`v1v_YC">
                                              <field name="NUM">15</field>
                                            </block>
                                          </value>
                                          <value name="AT2">
                                            <block type="math_number" id="Jz.]{TpX{G65p$t=zQmh">
                                              <field name="NUM">16</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="debug" id="--O3@Ew@70yHrA|80r^B">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="vUqJQDqZYEP1~M}JHa]U">
                                              <field name="TEXT">test</field>
                                            </shadow>
                                            <block type="variables_get" id="KmvnGC^%j/LAP~CH2O.=">
                                              <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="timeouts_settimeout" id=":8H?ff.:HrbvkOig[yJ[">
                                              <field name="NAME">timeout4</field>
                                              <field name="DELAY">3</field>
                                              <field name="UNIT">sec</field>
                                              <statement name="STATEMENT">
                                                <block type="controls_if" id="^-$KSt-IwY$gkV9zU9Pd">
                                                  <mutation else="1"></mutation>
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="4o(6_1vMy*Fpu#As|X14">
                                                      <field name="OP">GT</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="b-p,2nK}n*ke1Xi9wl`g">
                                                          <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="time_get" id="Bi$kG3R-!qDo[PIR;#wq">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                          <field name="OPTION">h</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="schedule_create" id="4Q,qI3!9]bUX-]NQvf-P">
                                                      <field name="NAME">datumSchedule</field>
                                                      <value name="SCHEDULE">
                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="?75wOi3|4ORjpXgU9SSn">
                                                          <field name="CRON">* * * * *</field>
                                                        </shadow>
                                                        <block type="text_join" id="A*!}}?bQe6=SR5,+#z@4">
                                                          <mutation items="6"></mutation>
                                                          <value name="ADD0">
                                                            <block type="variables_get" id="hJOK@v*3*~(!S5cOgth;">
                                                              <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="text" id="=cxyzRaBVprL+dg3GT/{">
                                                              <field name="TEXT"> </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD2">
                                                            <block type="variables_get" id="*Tk9Oa|zErcUBQUUxT!U">
                                                              <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD3">
                                                            <block type="text" id="U=3Zo6aR4L#}:M|v)x:M">
                                                              <field name="TEXT"> *</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD4">
                                                            <block type="text" id="U.G0Et9x?LX,p)Rxpg-e">
                                                              <field name="TEXT"> *</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD5">
                                                            <block type="text" id="*[F-,a-H0aNhT2AJ6JmU">
                                                              <field name="TEXT"> *</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="STATEMENT">
                                                        <block type="control" id="Mbk~Q;0UP@A8@^F[0Mou">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                          <field name="OID">countdown.0.setup.FCB Matsch</field>
                                                          <field name="WITH_DELAY">TRUE</field>
                                                          <field name="DELAY_MS">1000</field>
                                                          <field name="UNIT">ms</field>
                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="variables_get" id="r?o81v9MAq6qgqme2YN?">
                                                              <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="timeouts_settimeout" id="ryfODWCYatf{RY8|7?C%">
                                                              <field name="NAME">timeout2</field>
                                                              <field name="DELAY">10</field>
                                                              <field name="UNIT">sec</field>
                                                              <statement name="STATEMENT">
                                                                <block type="schedule_clear" id="@}/RY2BL~F{L#mhFxsM=">
                                                                  <field name="NAME">datumSchedule</field>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                  <statement name="ELSE">
                                                    <block type="control" id="--.){w[29%H}dCX)QZre">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                      <field name="OID">countdown.0.setup.FCB Matsch</field>
                                                      <field name="WITH_DELAY">TRUE</field>
                                                      <field name="DELAY_MS">1000</field>
                                                      <field name="UNIT">ms</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="variables_get" id="0qiq9Ta*z-gm~VXO{T]/">
                                                          <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
            

            und hier noch den Termineintrag vom Outlook:
            30c755a9-2e9c-438b-8087-473c77598257-image.png

            liv-in-sky 1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @hanan last edited by

              @hanan

              hier ist eine variante - ich habe nur den teil mit der funktion geändert - darin wird die zeit bestimmt und die variable suchbegriff wird auf den kalendereintags-namen gesetzt - du mußt dann die var suchbegriff in deinen dp setzen.

              Image 2.png

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="toV%#XU#+u-q8j}%lQO5">i</variable>
                 <variable id="=laq7tvUO(q,%US6)j!u">j</variable>
                 <variable id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</variable>
                 <variable id="dl(4-B)s(J1z0(yKCcPM">eventDatum</variable>
                 <variable id="xKL%f`?jvCh0ok?{c^rL">stunde</variable>
                 <variable id="4_[a*D)c$D0Fg1e?^r-#">minute</variable>
                 <variable type="timeout" id="timeout4">timeout4</variable>
                 <variable type="cron" id="datumSchedule">datumSchedule</variable>
                 <variable type="timeout" id="timeout2">timeout2</variable>
               </variables>
               <block type="schedule" id="/Z@?iF|RB-}UWrCdgO8l" x="-287" y="-336">
                 <field name="SCHEDULE">* * * * *</field>
                 <statement name="STATEMENT">
                   <block type="controls_if" id="k$7XJl4TwwsH#F^BA]o!">
                     <value name="IF0">
                       <block type="logic_compare" id="M76Fa)lSqWA4~DpUBx]#">
                         <field name="OP">EQ</field>
                         <value name="A">
                           <block type="get_value" id="~cXDg*N0V}(j;3:-g@=W">
                             <field name="ATTR">val</field>
                             <field name="OID">countdown.0.countdowns.FCB Matsch.endDate</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="text" id="(L7Thmh8pK[9|obXZlJE">
                             <field name="TEXT">Invalid date</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </statement>
               </block>
               <block type="procedures_defcustomreturn" id=".4jhH[;Isgq*k0Elo0tw" x="612" y="-263">
                 <mutation statements="false">
                   <arg name="i" varid="toV%#XU#+u-q8j}%lQO5"></arg>
                   <arg name="j" varid="=laq7tvUO(q,%US6)j!u"></arg>
                 </mutation>
                 <field name="NAME">StringManipulation2</field>
                 <field name="SCRIPT">DQoNCi8vbG9nKEpTT04uc3RyaW5naWZ5KGkpKQ0KbGV0IG15RXJnZWJuaXM9LTE7DQoNCmZvciAobGV0IGFhPTA7YWE8aS5sZW5ndGg7YWErKyl7DQogIC8vICBsb2coaVthYV0uZXZlbnQpDQogICAgaWYoaVthYV0uZXZlbnQuaW5jbHVkZXMoaikpIHsvKmxvZyhpW2FhXS5ldmVudCk7Ki9teUVyZ2VibmlzPWlbYWFdLmRhdGU7c3VjaEJlZ3JpZmY9aVthYV0uZXZlbnQ7YnJlYWt9DQogICANCn0NCg0KDQovL2xvZyhteUVyZ2VibmlzKQ0KcmV0dXJuIG15RXJnZWJuaXM7</field>
                 <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
               </block>
               <block type="variables_set" id="Yn_03ee.K$F#2@`28d/M" x="-113" y="-212">
                 <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                 <value name="VALUE">
                   <block type="text" id="_%5/XWgSJPtR10.BNE?,">
                     <field name="TEXT">Basel 1893</field>
                   </block>
                 </value>
                 <next>
                   <block type="variables_set" id="[xt^RuL~Y|TiS0Re2?+#">
                     <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                     <value name="VALUE">
                       <block type="procedures_callcustomreturn" id="g?#2EB$^BkG@k+r=Bv|]">
                         <mutation name="StringManipulation2">
                           <arg name="i"></arg>
                           <arg name="j"></arg>
                         </mutation>
                         <value name="ARG0">
                           <block type="get_value" id="?}[v,-QV{dczpnW|a=qd">
                             <field name="ATTR">val</field>
                             <field name="OID">ical.0.data.table</field>
                           </block>
                         </value>
                         <value name="ARG1">
                           <block type="variables_get" id="K2N=*^9uaX6H0}j]s5=*">
                             <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <next>
                       <block type="controls_if" id="/zQZ~5M`WY$~j~oKdH5z">
                         <value name="IF0">
                           <block type="logic_compare" id="Z?!zm|/x#bu*Q7]r4,%4">
                             <field name="OP">NEQ</field>
                             <value name="A">
                               <block type="variables_get" id="F$bDE3t^u;v%QO/XXCr6">
                                 <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="NcEs_VXKEGxjrfy]h3_[">
                                 <field name="NUM">-1</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="variables_set" id="GYrFB;7cr*:#h}.et0I~">
                             <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                             <value name="VALUE">
                               <block type="text_getSubstring" id="-/-p`iD:y_vgxgLa5+dk">
                                 <mutation at1="true" at2="true"></mutation>
                                 <field name="WHERE1">FROM_START</field>
                                 <field name="WHERE2">FROM_START</field>
                                 <value name="STRING">
                                   <block type="variables_get" id="6{Y.CU(rNYFSz7JKw6gr">
                                     <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                   </block>
                                 </value>
                                 <value name="AT1">
                                   <block type="math_number" id="Kq.B-X,mqp;-N#)X=Q+P">
                                     <field name="NUM">12</field>
                                   </block>
                                 </value>
                                 <value name="AT2">
                                   <block type="math_number" id="t@;2+]ISoUKt$e,;oqY3">
                                     <field name="NUM">13</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="variables_set" id="vT$zjFC6[`*5|+?^FUYb">
                                 <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                 <value name="VALUE">
                                   <block type="text_getSubstring" id="iKSGk7wasI6U%DoU%/~`">
                                     <mutation at1="true" at2="true"></mutation>
                                     <field name="WHERE1">FROM_START</field>
                                     <field name="WHERE2">FROM_START</field>
                                     <value name="STRING">
                                       <block type="variables_get" id="|d#VH=fnVXwAs^x#8Z{d">
                                         <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                       </block>
                                     </value>
                                     <value name="AT1">
                                       <block type="math_number" id="t#m1rz,4t`GTw`v1v_YC">
                                         <field name="NUM">15</field>
                                       </block>
                                     </value>
                                     <value name="AT2">
                                       <block type="math_number" id="Jz.]{TpX{G65p$t=zQmh">
                                         <field name="NUM">16</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="debug" id="dCLeDz(n@AvlXBiXCXw.">
                                     <field name="Severity">log</field>
                                     <value name="TEXT">
                                       <shadow type="text" id="J42$[^PW@Pg,FMd8dx~}">
                                         <field name="TEXT">test</field>
                                       </shadow>
                                       <block type="variables_get" id="t]8dz(9aJ4fbLd(JPv5p">
                                         <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="debug" id="--O3@Ew@70yHrA|80r^B">
                                         <field name="Severity">log</field>
                                         <value name="TEXT">
                                           <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="vUqJQDqZYEP1~M}JHa]U">
                                             <field name="TEXT">test</field>
                                           </shadow>
                                           <block type="variables_get" id="KmvnGC^%j/LAP~CH2O.=">
                                             <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="debug" id="@D}2|sZ`qt0Jw`}~MHoZ">
                                             <field name="Severity">log</field>
                                             <value name="TEXT">
                                               <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
                                                 <field name="TEXT">test</field>
                                               </shadow>
                                               <block type="variables_get" id="*!vl!IxcFiTS+=$S@iu*">
                                                 <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="debug" id="U/?(?G1iL7EA@=.oE`-#">
                                                 <field name="Severity">log</field>
                                                 <value name="TEXT">
                                                   <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
                                                     <field name="TEXT">test</field>
                                                   </shadow>
                                                   <block type="variables_get" id="^8:$QQ;mFMZx^e-Y%)S6">
                                                     <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="timeouts_settimeout" id=":8H?ff.:HrbvkOig[yJ[">
                                                     <field name="NAME">timeout4</field>
                                                     <field name="DELAY">3</field>
                                                     <field name="UNIT">sec</field>
                                                     <statement name="STATEMENT">
                                                       <block type="controls_if" id="^-$KSt-IwY$gkV9zU9Pd">
                                                         <mutation else="1"></mutation>
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="4o(6_1vMy*Fpu#As|X14">
                                                             <field name="OP">GT</field>
                                                             <value name="A">
                                                               <block type="variables_get" id="b-p,2nK}n*ke1Xi9wl`g">
                                                                 <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="time_get" id="Bi$kG3R-!qDo[PIR;#wq">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                 <field name="OPTION">h</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="schedule_create" id="4Q,qI3!9]bUX-]NQvf-P">
                                                             <field name="NAME">datumSchedule</field>
                                                             <value name="SCHEDULE">
                                                               <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="?75wOi3|4ORjpXgU9SSn">
                                                                 <field name="CRON">* * * * *</field>
                                                               </shadow>
                                                               <block type="text_join" id="A*!}}?bQe6=SR5,+#z@4">
                                                                 <mutation items="6"></mutation>
                                                                 <value name="ADD0">
                                                                   <block type="variables_get" id="hJOK@v*3*~(!S5cOgth;">
                                                                     <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ADD1">
                                                                   <block type="text" id="=cxyzRaBVprL+dg3GT/{">
                                                                     <field name="TEXT"> </field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ADD2">
                                                                   <block type="variables_get" id="*Tk9Oa|zErcUBQUUxT!U">
                                                                     <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ADD3">
                                                                   <block type="text" id="U=3Zo6aR4L#}:M|v)x:M">
                                                                     <field name="TEXT"> *</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ADD4">
                                                                   <block type="text" id="U.G0Et9x?LX,p)Rxpg-e">
                                                                     <field name="TEXT"> *</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ADD5">
                                                                   <block type="text" id="*[F-,a-H0aNhT2AJ6JmU">
                                                                     <field name="TEXT"> *</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <statement name="STATEMENT">
                                                               <block type="control" id="Mbk~Q;0UP@A8@^F[0Mou">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                 <field name="OID">countdown.0.setup.FCB Matsch</field>
                                                                 <field name="WITH_DELAY">TRUE</field>
                                                                 <field name="DELAY_MS">1000</field>
                                                                 <field name="UNIT">ms</field>
                                                                 <field name="CLEAR_RUNNING">FALSE</field>
                                                                 <value name="VALUE">
                                                                   <block type="variables_get" id="r?o81v9MAq6qgqme2YN?">
                                                                     <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="timeouts_settimeout" id="ryfODWCYatf{RY8|7?C%">
                                                                     <field name="NAME">timeout2</field>
                                                                     <field name="DELAY">10</field>
                                                                     <field name="UNIT">sec</field>
                                                                     <statement name="STATEMENT">
                                                                       <block type="schedule_clear" id="@}/RY2BL~F{L#mhFxsM=">
                                                                         <field name="NAME">datumSchedule</field>
                                                                       </block>
                                                                     </statement>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </statement>
                                                           </block>
                                                         </statement>
                                                         <statement name="ELSE">
                                                           <block type="control" id="--.){w[29%H}dCX)QZre">
                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                             <field name="OID">countdown.0.setup.FCB Matsch</field>
                                                             <field name="WITH_DELAY">TRUE</field>
                                                             <field name="DELAY_MS">1000</field>
                                                             <field name="UNIT">ms</field>
                                                             <field name="CLEAR_RUNNING">FALSE</field>
                                                             <value name="VALUE">
                                                               <block type="variables_get" id="0qiq9Ta*z-gm~VXO{T]/">
                                                                 <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </statement>
                                                       </block>
                                                     </statement>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
              </xml>
              

              1 Reply Last reply Reply Quote 0
              • hanan
                hanan last edited by

                Hallo liv-in-sky
                Supi, besten Dank. Das funktioniert top und ist genau das was ich gesucht habe.
                Besten Dank für Deine schnelle Hilfe, ich hätte dieses nie hinbekommen.

                liv-in-sky 1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @hanan last edited by

                  @hanan gerne

                  hanan 1 Reply Last reply Reply Quote 0
                  • hanan
                    hanan @liv-in-sky last edited by

                    Hallo liv-in-sky
                    Seit dem Update auf v5.1.23 funktioniert das Schreiben in die Datenpunkte nicht mehr.
                    Hast Du mir eventuell einen Tipp?

                    Datenpunkt für suchBegriff

                    {
                      "_id": "0_userdata.0.Variablen.Vis_Schalter.FCB_gegen",
                      "type": "state",
                      "common": {
                        "name": "FCB_gegen",
                        "role": "",
                        "type": "string",
                        "desc": "Manuell erzeugt",
                        "def": "",
                        "read": true,
                        "write": true
                      },
                      "native": {},
                      "acl": {
                        "object": 1636,
                        "owner": "system.user.admin",
                        "ownerGroup": "system.group.administrator",
                        "state": 1636
                      },
                      "from": "system.adapter.admin.0",
                      "user": "system.user.admin",
                      "ts": 1630321470550
                    }
                    

                    Datenpunkt für eventDatum

                    {
                      "type": "state",
                      "common": {
                        "read": true,
                        "write": true,
                        "name": "FC Basel",
                        "type": "string",
                        "def": "29.08.2021 16:30:00",
                        "role": null
                      },
                      "native": {},
                      "_id": "countdown.0.setup.FC Basel",
                      "acl": {
                        "object": 1636,
                        "state": 1636,
                        "owner": "system.user.admin",
                        "ownerGroup": "system.group.administrator"
                      },
                      "from": "system.adapter.admin.0",
                      "user": "system.user.admin",
                      "ts": 1630320897926
                    }
                    
                    liv-in-sky 2 Replies Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @hanan last edited by

                      @hanan oh mann - das ist lange her - ich muss das erstmal wieder finden - ich schau mal

                      hanan 1 Reply Last reply Reply Quote 0
                      • hanan
                        hanan @liv-in-sky last edited by

                        @liv-in-sky
                        Das Skript funktioniert, sehe ich im Debug output, doch können die beiden Daten nichtmehr in die jeweiligen Datenpunkte geschrieben werden.

                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @hanan last edited by

                          @hanan

                          poste bitte das script - ich muss das importieren

                          hanan 1 Reply Last reply Reply Quote 0
                          • hanan
                            hanan @liv-in-sky last edited by hanan

                            @liv-in-sky

                            <xml xmlns="https://developers.google.com/blockly/xml">
                              <variables>
                                <variable id="toV%#XU#+u-q8j}%lQO5">i</variable>
                                <variable id="=laq7tvUO(q,%US6)j!u">j</variable>
                                <variable id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</variable>
                                <variable id="dl(4-B)s(J1z0(yKCcPM">eventDatum</variable>
                                <variable id="xKL%f`?jvCh0ok?{c^rL">stunde</variable>
                                <variable id="4_[a*D)c$D0Fg1e?^r-#">minute</variable>
                                <variable type="timeout" id="timeout4">timeout4</variable>
                                <variable type="cron" id="datumSchedule">datumSchedule</variable>
                                <variable type="timeout" id="timeout2">timeout2</variable>
                              </variables>
                              <block type="procedures_defcustomreturn" id=".4jhH[;Isgq*k0Elo0tw" x="163" y="-712">
                                <mutation statements="false">
                                  <arg name="i" varid="toV%#XU#+u-q8j}%lQO5"></arg>
                                  <arg name="j" varid="=laq7tvUO(q,%US6)j!u"></arg>
                                </mutation>
                                <field name="NAME">StringManipulation2</field>
                                <field name="SCRIPT">DQoNCi8vbG9nKEpTT04uc3RyaW5naWZ5KGkpKQ0KbGV0IG15RXJnZWJuaXM9LTE7DQoNCmZvciAobGV0IGFhPTA7YWE8aS5sZW5ndGg7YWErKyl7DQogIC8vICBsb2coaVthYV0uZXZlbnQpDQogICAgaWYoaVthYV0uZXZlbnQuaW5jbHVkZXMoaikpIHsvKmxvZyhpW2FhXS5ldmVudCk7Ki9teUVyZ2VibmlzPWlbYWFdLmRhdGU7c3VjaEJlZ3JpZmY9aVthYV0uZXZlbnQ7YnJlYWt9DQogICANCn0NCg0KDQovL2xvZyhteUVyZ2VibmlzKQ0KcmV0dXJuIG15RXJnZWJuaXM7</field>
                                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                              </block>
                              <block type="on_ext" id="qMd2zp!`jX-7i1:h/_G;" x="-287" y="-662">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <value name="OID0">
                                  <shadow type="field_oid" id="kr$tstAFs]QhLrKlNNoz">
                                    <field name="oid">countdown.0.countdowns.FC Basel.reached</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="$g`#_r*#6^uxk0K|Q|Tt">
                                    <mutation elseif="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_operation" id="]sXJg]u-cPjXadE5=hG1" inline="false">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="{!Rnk_(=3t]X67`petBQ">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="mTL6SIt(Aj~_.;mH3=xR">
                                                <field name="ATTR">val</field>
                                                <field name="OID">countdown.0.countdowns.FC Basel.reached</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="-6I4]}?W]Xv:4E=2q#i4">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id=".cvPRJXKUfkd4*DBc@IW">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="2=ZjTG(T#VNZbpFE]Zzd">
                                                <field name="ATTR">val</field>
                                                <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="W6z=qlg;ult*~@$K!0ri">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="1Na}tzv^U0BpCL+?qud}">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="v_r~x-0mXdB:rHJSK.gK">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <value name="IF1">
                                      <block type="logic_operation" id="~0{ny@u#Q8+yY-AOe:):" inline="false">
                                        <field name="OP">OR</field>
                                        <value name="A">
                                          <block type="logic_operation" id="d@K~FVUoKm}~Y~(k2ObJ" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="kloYtw+X3N4YvdcPj%uD">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="z-4a^}oAR]v6`qKT^Fni">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">countdown.0.countdowns.FC Basel.reached</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="8HLnr6B`/LTuA9O:1[Rp">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="v_f#g|UNmN+B?=wm(01d">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id=":1EY%O5Fw5mBph*IF]Xa">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="M#70+@ciE48e!Dm{RuJR">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="[Y1?|yhYN89xcT~o[Qf_">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="Z.0oguVR%/AWy3TO]x!R">
                                                <field name="ATTR">val</field>
                                                <field name="OID">countdown.0.countdowns.FC Basel.endDate</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="text" id="v5KT*)FSpKtToJ7K:[@(">
                                                <field name="TEXT">Invalid date</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO1">
                                      <block type="control" id="oS*Vfh7N8]Hu9=*V%W6t">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id=")(C6tn!lD(v?|{_tYt;Q">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="4RjTm,E[-};p]-jxu-Ze">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">countdown.0.setup.FC Basel</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="text" id="+7kxy.u*8]]~r#ftU0/y">
                                                <field name="TEXT"></field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="pEj1$]dz*s]leHe`YR#-">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">120</field>
                                                <field name="UNIT">min</field>
                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text" id="mj,l#mf/+X7x|D%x.Cf}">
                                                    <field name="TEXT"></field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="LVXT1Gs5f3a:Vw,C3f?a">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                    <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">120</field>
                                                    <field name="UNIT">min</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="^j1BUs13H$ii7XTRc@fy">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="schedule" id="/Z@?iF|RB-}UWrCdgO8l">
                                    <field name="SCHEDULE">*/30 8-21 * * *</field>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="k$7XJl4TwwsH#F^BA]o!">
                                        <value name="IF0">
                                          <block type="logic_operation" id="#HG.._U-Ge,?pWE#S[:X" inline="false">
                                            <field name="OP">OR</field>
                                            <value name="A">
                                              <block type="logic_compare" id="9f+@Q))b-J0s6E[!|u12">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="oqo=zB1v[Zu2]hs{Q0^|">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">countdown.0.countdowns.FC Basel.reached</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="yElSM@?hiE5nlmJBWK1/">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id=";c.w*taLtS%5+thu.:Z6">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="Ho.I%k;m:ufg)Fk3G;3]">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">countdown.0.countdowns.FC Basel.endDate</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="text" id="hH9![JK-i;6O5)JWf$hG">
                                                    <field name="TEXT">Invalid date</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="Yn_03ee.K$F#2@`28d/M">
                                            <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                            <value name="VALUE">
                                              <block type="text" id="_%5/XWgSJPtR10.BNE?,">
                                                <field name="TEXT">Basel</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="[xt^RuL~Y|TiS0Re2?+#">
                                                <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                <value name="VALUE">
                                                  <block type="procedures_callcustomreturn" id="g?#2EB$^BkG@k+r=Bv|]">
                                                    <mutation name="StringManipulation2">
                                                      <arg name="i"></arg>
                                                      <arg name="j"></arg>
                                                    </mutation>
                                                    <value name="ARG0">
                                                      <block type="get_value" id="?}[v,-QV{dczpnW|a=qd">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">ical.2.data.table</field>
                                                      </block>
                                                    </value>
                                                    <value name="ARG1">
                                                      <block type="variables_get" id="K2N=*^9uaX6H0}j]s5=*">
                                                        <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="controls_if" id="/zQZ~5M`WY$~j~oKdH5z">
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="Z?!zm|/x#bu*Q7]r4,%4">
                                                        <field name="OP">NEQ</field>
                                                        <value name="A">
                                                          <block type="variables_get" id="F$bDE3t^u;v%QO/XXCr6">
                                                            <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="NcEs_VXKEGxjrfy]h3_[">
                                                            <field name="NUM">-1</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="variables_set" id="GYrFB;7cr*:#h}.et0I~">
                                                        <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                        <value name="VALUE">
                                                          <block type="text_getSubstring" id="-/-p`iD:y_vgxgLa5+dk">
                                                            <mutation at1="true" at2="true"></mutation>
                                                            <field name="WHERE1">FROM_START</field>
                                                            <field name="WHERE2">FROM_START</field>
                                                            <value name="STRING">
                                                              <block type="variables_get" id="6{Y.CU(rNYFSz7JKw6gr">
                                                                <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                              </block>
                                                            </value>
                                                            <value name="AT1">
                                                              <block type="math_number" id="Kq.B-X,mqp;-N#)X=Q+P">
                                                                <field name="NUM">12</field>
                                                              </block>
                                                            </value>
                                                            <value name="AT2">
                                                              <block type="math_number" id="t@;2+]ISoUKt$e,;oqY3">
                                                                <field name="NUM">13</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="variables_set" id="vT$zjFC6[`*5|+?^FUYb">
                                                            <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                                            <value name="VALUE">
                                                              <block type="text_getSubstring" id="iKSGk7wasI6U%DoU%/~`">
                                                                <mutation at1="true" at2="true"></mutation>
                                                                <field name="WHERE1">FROM_START</field>
                                                                <field name="WHERE2">FROM_START</field>
                                                                <value name="STRING">
                                                                  <block type="variables_get" id="|d#VH=fnVXwAs^x#8Z{d">
                                                                    <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                                  </block>
                                                                </value>
                                                                <value name="AT1">
                                                                  <block type="math_number" id="t#m1rz,4t`GTw`v1v_YC">
                                                                    <field name="NUM">15</field>
                                                                  </block>
                                                                </value>
                                                                <value name="AT2">
                                                                  <block type="math_number" id="Jz.]{TpX{G65p$t=zQmh">
                                                                    <field name="NUM">16</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="debug" id="dCLeDz(n@AvlXBiXCXw.">
                                                                <field name="Severity">log</field>
                                                                <value name="TEXT">
                                                                  <shadow type="text" id="J42$[^PW@Pg,FMd8dx~}">
                                                                    <field name="TEXT">test</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="t]8dz(9aJ4fbLd(JPv5p">
                                                                    <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="debug" id="--O3@Ew@70yHrA|80r^B">
                                                                    <field name="Severity">log</field>
                                                                    <value name="TEXT">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="vUqJQDqZYEP1~M}JHa]U">
                                                                        <field name="TEXT">test</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="KmvnGC^%j/LAP~CH2O.=">
                                                                        <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="debug" id="@D}2|sZ`qt0Jw`}~MHoZ">
                                                                        <field name="Severity">log</field>
                                                                        <value name="TEXT">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
                                                                            <field name="TEXT">test</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="*!vl!IxcFiTS+=$S@iu*">
                                                                            <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="U/?(?G1iL7EA@=.oE`-#">
                                                                            <field name="Severity">log</field>
                                                                            <value name="TEXT">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
                                                                                <field name="TEXT">test</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="^8:$QQ;mFMZx^e-Y%)S6">
                                                                                <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="timeouts_settimeout" id=":8H?ff.:HrbvkOig[yJ[">
                                                                                <field name="NAME">timeout4</field>
                                                                                <field name="DELAY">3</field>
                                                                                <field name="UNIT">sec</field>
                                                                                <statement name="STATEMENT">
                                                                                  <block type="controls_if" id="^-$KSt-IwY$gkV9zU9Pd">
                                                                                    <mutation else="1"></mutation>
                                                                                    <value name="IF0">
                                                                                      <block type="logic_compare" id="4o(6_1vMy*Fpu#As|X14">
                                                                                        <field name="OP">GT</field>
                                                                                        <value name="A">
                                                                                          <block type="variables_get" id="b-p,2nK}n*ke1Xi9wl`g">
                                                                                            <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="time_get" id="Bi$kG3R-!qDo[PIR;#wq">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                            <field name="OPTION">h</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="schedule_create" id="4Q,qI3!9]bUX-]NQvf-P">
                                                                                        <field name="NAME">datumSchedule</field>
                                                                                        <value name="SCHEDULE">
                                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="?75wOi3|4ORjpXgU9SSn">
                                                                                            <field name="CRON">* * * * *</field>
                                                                                          </shadow>
                                                                                          <block type="text_join" id="A*!}}?bQe6=SR5,+#z@4">
                                                                                            <mutation items="6"></mutation>
                                                                                            <value name="ADD0">
                                                                                              <block type="variables_get" id="hJOK@v*3*~(!S5cOgth;">
                                                                                                <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD1">
                                                                                              <block type="text" id="=cxyzRaBVprL+dg3GT/{">
                                                                                                <field name="TEXT"> </field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD2">
                                                                                              <block type="variables_get" id="*Tk9Oa|zErcUBQUUxT!U">
                                                                                                <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD3">
                                                                                              <block type="text" id="U=3Zo6aR4L#}:M|v)x:M">
                                                                                                <field name="TEXT"> *</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD4">
                                                                                              <block type="text" id="U.G0Et9x?LX,p)Rxpg-e">
                                                                                                <field name="TEXT"> *</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD5">
                                                                                              <block type="text" id="*[F-,a-H0aNhT2AJ6JmU">
                                                                                                <field name="TEXT"> *</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="STATEMENT">
                                                                                          <block type="control" id="Mbk~Q;0UP@A8@^F[0Mou">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                            <field name="OID">countdown.0.setup.FC Basel</field>
                                                                                            <field name="WITH_DELAY">TRUE</field>
                                                                                            <field name="DELAY_MS">1000</field>
                                                                                            <field name="UNIT">ms</field>
                                                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="variables_get" id="r?o81v9MAq6qgqme2YN?">
                                                                                                <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="control" id="Nz%11urUbBT2c_+6~vUK">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                                <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field>
                                                                                                <field name="WITH_DELAY">TRUE</field>
                                                                                                <field name="DELAY_MS">2000</field>
                                                                                                <field name="UNIT">ms</field>
                                                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="variables_get" id=":D;!al^ufSTpm5dn;HqV">
                                                                                                    <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="timeouts_settimeout" id="ryfODWCYatf{RY8|7?C%">
                                                                                                    <field name="NAME">timeout2</field>
                                                                                                    <field name="DELAY">10</field>
                                                                                                    <field name="UNIT">sec</field>
                                                                                                    <statement name="STATEMENT">
                                                                                                      <block type="schedule_clear" id="@}/RY2BL~F{L#mhFxsM=">
                                                                                                        <field name="NAME">datumSchedule</field>
                                                                                                      </block>
                                                                                                    </statement>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </statement>
                                                                                      </block>
                                                                                    </statement>
                                                                                    <statement name="ELSE">
                                                                                      <block type="control" id="--.){w[29%H}dCX)QZre">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                        <field name="OID">countdown.0.setup.FC Basel</field>
                                                                                        <field name="WITH_DELAY">TRUE</field>
                                                                                        <field name="DELAY_MS">1000</field>
                                                                                        <field name="UNIT">ms</field>
                                                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="variables_get" id="0qiq9Ta*z-gm~VXO{T]/">
                                                                                            <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="control" id="J@u{-ak8EhzU+j]BLUpd">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                            <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field>
                                                                                            <field name="WITH_DELAY">TRUE</field>
                                                                                            <field name="DELAY_MS">2000</field>
                                                                                            <field name="UNIT">ms</field>
                                                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="variables_get" id="=`c+9CFW^h@u=EyPJ34$">
                                                                                                <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </statement>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </xml>
                            
                            liv-in-sky 1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @hanan last edited by

                              @hanan sagte in [Vorlage]-Zeit herunterzählen bis GoogleTermin Eintritt:

                              <xml xmlns="https://developers.google.com/blockly/xml">

                              ich muss gestehen, ich glaube, ich habe den countdown adapter etwas missbraucht - ich schau mal, ob ich morgen ein anderes script zusammenbringe

                              der countdown adapter ist bei dir noch gestartet ?

                              hanan 1 Reply Last reply Reply Quote 0
                              • hanan
                                hanan @liv-in-sky last edited by hanan

                                @liv-in-sky

                                Habe oben eben nochmals mein aktuelles Blockly-Skript eingefügt...

                                Jep, und ich beschreibe im Ordner setup den Datenpunkt FC Basel mit dem eventDatum, welches eben nicht mehr übernommen wird.

                                liv-in-sky hanan 2 Replies Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @hanan last edited by

                                  @hanan ist bei mir auch - da machen wir uns einen neuen datenpunkt und schreiben den mit dem richtigen namen - in der vis nimmst du dann den neuen dp zur anzeige des namen

                                  1 Reply Last reply Reply Quote 0
                                  • hanan
                                    hanan @hanan last edited by

                                    Hmmmm....
                                    Komisch, jetzt hat es soeben geklappt. Verstehe ich nichts mehr.
                                    Die Datenpunkte wurden um 16:30 Uhr plötzlich beschrieben.

                                    liv-in-sky hanan 2 Replies Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @hanan last edited by

                                      @hanan

                                      ich gebe dir ein neues script, welches auch den countdown adapter nutzt

                                      1 Reply Last reply Reply Quote 0
                                      • hanan
                                        hanan @hanan last edited by

                                        Einen neuen Datenpunkt im countdowns/setup/FC Basel kann ich doch seit v5.1.23 nicht mehr erstellen oder?

                                        liv-in-sky 1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @hanan last edited by

                                          @hanan

                                          das macht der adapter - hast du im adapter setting den counter angelegt - oder geht das nicht mehr

                                          1 Reply Last reply Reply Quote 0
                                          • hanan
                                            hanan last edited by

                                            Sorry, muss um 19:15 Uhr weg.
                                            Aber erstmal Danke für Deine Hilfe.

                                            c9d20861-57dd-480f-ab8a-21f552e21e7f-image.png

                                            liv-in-sky 3 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            916
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly javascript
                                            4
                                            58
                                            5386
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo