Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Countdown

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Countdown

    This topic has been deleted. Only users with topic management privileges can see it.
    • Matze1976
      Matze1976 last edited by

      Wie bekomme ich es hin, das mit von Datum heute bis Datum x die Resttage angezeigt werden, also in einen Datenpunkt geschrieben werden?

      crunchip paul53 2 Replies Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Matze1976 last edited by crunchip

        @Matze1976 eventuell hilft dieser Thread weiter
        oder du wirst hier vllt fündig

        1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Matze1976 last edited by

          @Matze1976 sagte:

          von Datum heute bis Datum x die Resttage angezeigt werden

          Wenn das künftige Datum im Format DD.MM.JJJJ vorliegt, muss zum Wandeln zuerst die Reihenfolge getauscht werden. Bei umgekehrter Reihenfolge JJJJ.MM.DD ist es nicht erforderlich.

          Blockly_temp.JPG

          Matze1976 1 Reply Last reply Reply Quote 0
          • Matze1976
            Matze1976 @paul53 last edited by

            @paul53 könntest du mir den Blockly Code rein setzen?

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Matze1976 last edited by

              @Matze1976 sagte in Countdown:

              könntest du mir den Blockly Code rein setzen?

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="QH)a+q+/HjBMpJitoK=X">datum</variable>
                </variables>
                <block type="comment" id="-8Q#8O{5;,7Y..MP%hLW" x="-37" y="-262">
                  <field name="COMMENT">Format: DD.MM.YYYY</field>
                  <next>
                    <block type="variables_set" id=";Y0.4)M3k/vxOsmby4Xy">
                      <field name="VAR" id="QH)a+q+/HjBMpJitoK=X">datum</field>
                      <value name="VALUE">
                        <block type="lists_split" id="4/QFHo_G:.MJ$;X`{P4]">
                          <mutation mode="SPLIT"></mutation>
                          <field name="MODE">SPLIT</field>
                          <value name="INPUT">
                            <block type="text" id="w0u;nXdc[wmh/,M~36ba">
                              <field name="TEXT">24.05.2020</field>
                            </block>
                          </value>
                          <value name="DELIM">
                            <shadow type="text" id="coS;jKZv/}Em3,.g7SZ%">
                              <field name="TEXT">.</field>
                            </shadow>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="[Xk9h=jzG6]]`1J%a*Zi">
                          <field name="VAR" id="QH)a+q+/HjBMpJitoK=X">datum</field>
                          <value name="VALUE">
                            <block type="text_join" id="BGr[z#v-,wmRX#B{xJ*V">
                              <mutation items="5"></mutation>
                              <value name="ADD0">
                                <block type="lists_getIndex" id="Vo~,]~vZ7fpVss=(VU#D">
                                  <mutation statement="false" at="true"></mutation>
                                  <field name="MODE">GET</field>
                                  <field name="WHERE">FROM_START</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="u)1:1G_LwMi^%[8!`@h+">
                                      <field name="VAR" id="QH)a+q+/HjBMpJitoK=X">datum</field>
                                    </block>
                                  </value>
                                  <value name="AT">
                                    <block type="math_number" id="z:EgV_3fzMliqDv*d7@t">
                                      <field name="NUM">3</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="text" id="v{.rg`EP3]-z+KK$!O={">
                                  <field name="TEXT">-</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="lists_getIndex" id=",Ed,A}`TT}uj~r@%~$1C">
                                  <mutation statement="false" at="true"></mutation>
                                  <field name="MODE">GET</field>
                                  <field name="WHERE">FROM_START</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="bls)qffc}OI}{r26Q0uf">
                                      <field name="VAR" id="QH)a+q+/HjBMpJitoK=X">datum</field>
                                    </block>
                                  </value>
                                  <value name="AT">
                                    <block type="math_number" id="G+6]tXOQv{Og^aZUNv^N">
                                      <field name="NUM">2</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="text" id="RGkfv;U1)Y4orfJNVYNp">
                                  <field name="TEXT">-</field>
                                </block>
                              </value>
                              <value name="ADD4">
                                <block type="lists_getIndex" id="DWU@g%Rq!{1upsYsOS{y">
                                  <mutation statement="false" at="true"></mutation>
                                  <field name="MODE">GET</field>
                                  <field name="WHERE">FROM_START</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="]p7OC{g_Yk4onB%1z88V">
                                      <field name="VAR" id="QH)a+q+/HjBMpJitoK=X">datum</field>
                                    </block>
                                  </value>
                                  <value name="AT">
                                    <block type="math_number" id="Vygz5c#iO~S92Po(c%FZ">
                                      <field name="NUM">1</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="update" id="/d+qy!+$iX:eyI4$T)Ex" inline="false">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">Object ID</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_round" id="Pz!QIVb1LT.zhltW_5VZ">
                                  <field name="OP">ROUNDUP</field>
                                  <value name="NUM">
                                    <shadow type="math_number" id="C.)jzzX:9UgS!rP9PEiV">
                                      <field name="NUM">3.1</field>
                                    </shadow>
                                    <block type="math_arithmetic" id="%cE,S^(^k:R]vKsm0I1Q" inline="false">
                                      <field name="OP">DIVIDE</field>
                                      <value name="A">
                                        <shadow type="math_number" id="~wZr;xu/(qG,sIE6])U@">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="math_arithmetic" id="=r_26i!LgMnIt17eE5jd" inline="false">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="EEGOvL@^jbcJG[g@XU-j">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="convert_from_date" id="*A^s]8q=h8~f5TXo0cE;">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                              <field name="OPTION">object</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="U1A!~okJ{ywBDd:POkS[">
                                                  <field name="VAR" id="QH)a+q+/HjBMpJitoK=X">datum</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="pM/9zf_[9r^pv:mkU|7B">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="time_get" id="p{4)88UXm0g}T[Ycx1#E">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                              <field name="OPTION">object</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="F]F|#O)y~8]6zPT`P*]D">
                                          <field name="NUM">86400000</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              

              Matze1976 1 Reply Last reply Reply Quote 0
              • Matze1976
                Matze1976 @paul53 last edited by

                @paul53

                DANKEEE BIST EIN SCHATZ

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate

                622
                Online

                32.0k
                Users

                80.4k
                Topics

                1.3m
                Posts

                3
                6
                275
                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