Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Wie viel Tage bis Termin

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    340

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    306

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    931

Wie viel Tage bis Termin

Geplant Angeheftet Gesperrt Verschoben Blockly
26 Beiträge 4 Kommentatoren 1.1k Aufrufe 3 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • David G.D David G.

    @mickym

    Genau, das meine ich.

    @OliverIO
    Probiere in meinen Skripten immer so wenig andere Adapter einzubinden wie nötig.
    Es geht auch nicht um die VIS. Geht um eine Terminübersicht der kommenden Woche die ich per telegram versende. Über die Tage ermitteln ich die Termine für diesen Zeitraum.

    mickymM Online
    mickymM Online
    mickym
    Most Active
    schrieb am zuletzt editiert von mickym
    #16

    @david-g

    7e55d197-b273-49ba-ab69-d319f36800d5-image.png

    Also ich habs mit Z+2 hinbekommen, wenn man den ISO String benutzt.

    Das Datum alleine nutzt nichts - weil irgendwas die Timezone dazurechnet und dann kommt immer 2:00 Uhr früh raus.

    Ich schau mal ob irgendwas mit CET funktioniert, da absolute Zeitoffsets ja blöde sind.

    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

    paul53P mickymM 2 Antworten Letzte Antwort
    0
    • mickymM mickym

      @david-g

      7e55d197-b273-49ba-ab69-d319f36800d5-image.png

      Also ich habs mit Z+2 hinbekommen, wenn man den ISO String benutzt.

      Das Datum alleine nutzt nichts - weil irgendwas die Timezone dazurechnet und dann kommt immer 2:00 Uhr früh raus.

      Ich schau mal ob irgendwas mit CET funktioniert, da absolute Zeitoffsets ja blöde sind.

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #17

      @mickym sagte: Also ich habs mit Z+2 hinbekommen, wenn man den ISO String benutzt-

      Dann stimmt es aber nur zur Sommerzeit.

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Antwort Letzte Antwort
      0
      • mickymM mickym

        @david-g

        7e55d197-b273-49ba-ab69-d319f36800d5-image.png

        Also ich habs mit Z+2 hinbekommen, wenn man den ISO String benutzt.

        Das Datum alleine nutzt nichts - weil irgendwas die Timezone dazurechnet und dann kommt immer 2:00 Uhr früh raus.

        Ich schau mal ob irgendwas mit CET funktioniert, da absolute Zeitoffsets ja blöde sind.

        mickymM Online
        mickymM Online
        mickym
        Most Active
        schrieb am zuletzt editiert von mickym
        #18

        @mickym

        @paul53 sagte in Wie viel Tage bis Termin:

        @mickym sagte: Also ich habs mit Z+2 hinbekommen, wenn man den ISO String benutzt-

        Dann stimmt es aber nur zur Sommerzeit.

        Dann gibt man das einfach fix ein - das geht: Also aus dem Datestring den vorderen Teil vor dem T abschneiden und dann T00:00 anhängen.

        bbf71b09-b68b-4e22-9bc5-b575b89758a3-image.png

        Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

        David G.D 1 Antwort Letzte Antwort
        0
        • mickymM mickym

          @mickym

          @paul53 sagte in Wie viel Tage bis Termin:

          @mickym sagte: Also ich habs mit Z+2 hinbekommen, wenn man den ISO String benutzt-

          Dann stimmt es aber nur zur Sommerzeit.

          Dann gibt man das einfach fix ein - das geht: Also aus dem Datestring den vorderen Teil vor dem T abschneiden und dann T00:00 anhängen.

          bbf71b09-b68b-4e22-9bc5-b575b89758a3-image.png

          David G.D Online
          David G.D Online
          David G.
          schrieb am zuletzt editiert von David G.
          #19

          @mickym

          Das habe ich beim rechnen mal probiert.

          Hatte zu DD.MM.JJJJ konvertiert für das aktuelle Datum und den Termin, mit der Hoffnung dass dann die Uhrzeit ignoriert wird.

          Wenn ich dann Termin-Uhrzeit rechne kommt NaN als Ergebniss.

          Zeigt eure Lovelace-Visualisierung klick
          (Auch ideal um sich Anregungen zu holen)

          Meine Tabellen für eure Visualisierung klick

          mickymM paul53P 3 Antworten Letzte Antwort
          0
          • David G.D David G.

            @mickym

            Das habe ich beim rechnen mal probiert.

            Hatte zu DD.MM.JJJJ konvertiert für das aktuelle Datum und den Termin, mit der Hoffnung dass dann die Uhrzeit ignoriert wird.

            Wenn ich dann Termin-Uhrzeit rechne kommt NaN als Ergebniss.

            mickymM Online
            mickymM Online
            mickym
            Most Active
            schrieb am zuletzt editiert von mickym
            #20

            @david-g Ich habs bald. ;) - bin halt als Blockly Laie etc. langsam - aber ich denke bin auf gutem Weg.

            Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

            1 Antwort Letzte Antwort
            0
            • David G.D David G.

              @mickym

              Das habe ich beim rechnen mal probiert.

              Hatte zu DD.MM.JJJJ konvertiert für das aktuelle Datum und den Termin, mit der Hoffnung dass dann die Uhrzeit ignoriert wird.

              Wenn ich dann Termin-Uhrzeit rechne kommt NaN als Ergebniss.

              paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von paul53
              #21

              @david-g sagte: Hatte zu DD.MM.JJJJ konvertiert für das aktuelle Datum

              Die Lösung mal getestet?

              Bild_2021-08-07_000043.png

              date: 11.08.2021 (00:00 Uhr Ortszeit)

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              1 Antwort Letzte Antwort
              0
              • David G.D David G.

                @mickym

                Das habe ich beim rechnen mal probiert.

                Hatte zu DD.MM.JJJJ konvertiert für das aktuelle Datum und den Termin, mit der Hoffnung dass dann die Uhrzeit ignoriert wird.

                Wenn ich dann Termin-Uhrzeit rechne kommt NaN als Ergebniss.

                mickymM Online
                mickymM Online
                mickym
                Most Active
                schrieb am zuletzt editiert von mickym
                #22

                @david-g
                Ich habs!!! ;) - Als Blockly Legastheniker bin ich ganz stolz
                So das funktioniert meines Erachtens:

                89d7d5de-e05a-4b8f-bf58-29cb9a6234ae-image.png

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <variables>
                   <variable id="d1?gZzO#Ee;5nkD=25+p">termin</variable>
                   <variable id=",{yVx}S,?U_1?xsS0IO;">heute</variable>
                   <variable id="VM?rt|mIhKs?tvJ{G6E|">inTagen</variable>
                 </variables>
                 <block type="variables_set" id="P%BplVP^J:4=RP.Fk06[" x="87" y="38">
                   <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                   <value name="VALUE">
                     <block type="text" id="z6cycfSj0mKCILp8-OKn">
                       <field name="TEXT">2021-08-10T20:00:00.000Z</field>
                     </block>
                   </value>
                   <next>
                     <block type="variables_set" id="C/jWKeNBnr.ZCPv}2KYl">
                       <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                       <value name="VALUE">
                         <block type="convert_from_date" id="h^CggrSLC`]{BL}b=BIV">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                           <field name="OPTION">object</field>
                           <value name="VALUE">
                             <block type="text_join" id="PHI)-xQjVC[}K0P$4WMi">
                               <mutation items="2"></mutation>
                               <value name="ADD0">
                                 <block type="text_getSubstring" id="X3{W|mvT2$5OB]`vn2Eq">
                                   <mutation at1="false" at2="true"></mutation>
                                   <field name="WHERE1">FIRST</field>
                                   <field name="WHERE2">FROM_START</field>
                                   <value name="STRING">
                                     <block type="variables_get" id="VVO]kBR$JYvv$YbuK=;C">
                                       <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                     </block>
                                   </value>
                                   <value name="AT2">
                                     <block type="text_indexOf" id="]9WIuP!/kSkCLGE4EOpV">
                                       <field name="END">FIRST</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id="LxPXPb*R+*4i_z6MZP[a">
                                           <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                         </block>
                                       </value>
                                       <value name="FIND">
                                         <shadow type="text" id="}@NDsVJtdwn@8.[JZK{1">
                                           <field name="TEXT">T</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="ADD1">
                                 <block type="text" id="U*l}yM;e)7yVD8T)MgP^">
                                   <field name="TEXT">00:00</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="Cx*sQRm/Pwt6NuuLMNBb">
                           <field name="VAR" id=",{yVx}S,?U_1?xsS0IO;">heute</field>
                           <value name="VALUE">
                             <block type="convert_from_date" id="-+QkN*;XsDvY3E@X@4,H">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                               <field name="OPTION">object</field>
                               <value name="VALUE">
                                 <block type="text_join" id="$gEQ)xy{UqB8l/8Yz7|z">
                                   <mutation items="2"></mutation>
                                   <value name="ADD0">
                                     <block type="time_get" id="`Mb?^~n*+3?E#i.4`NC#">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                       <field name="OPTION">custom</field>
                                       <field name="FORMAT">JJJJ-MM-TT</field>
                                     </block>
                                   </value>
                                   <value name="ADD1">
                                     <block type="text" id="RuHYT0/REHu$c*D7pXcL">
                                       <field name="TEXT">T00:00</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="variables_set" id="N7x9UN]:=-5o?6=d4jed">
                               <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                               <value name="VALUE">
                                 <block type="math_round" id=";A(P7CYQGSfP`4dC]U{|">
                                   <field name="OP">ROUNDDOWN</field>
                                   <value name="NUM">
                                     <shadow type="math_number" id="=dQLmrn_#x}r5a{-B}*W">
                                       <field name="NUM">3.1</field>
                                     </shadow>
                                     <block type="math_arithmetic" id="?V!+2,apS9_ym.)w%PGU">
                                       <field name="OP">DIVIDE</field>
                                       <value name="A">
                                         <shadow type="math_number" id="AND[V0z/y@H:!`_i@m7A">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="math_arithmetic" id="D)jqxX5=sjt|c^HwBS].">
                                           <field name="OP">MINUS</field>
                                           <value name="A">
                                             <shadow type="math_number" id="}T|ND~@8/)/fE@6GEiub">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="variables_get" id="lm)9)3UC3f4f_]|X,O_3">
                                               <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="n16IlOivfSDyBWa,|V5Y">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="variables_get" id="RPzMF6EVZsL(4[5:NV~{">
                                               <field name="VAR" id=",{yVx}S,?U_1?xsS0IO;">heute</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id="98?%-1Edl1xJ?e%m$Ubw">
                                           <field name="NUM">86400000</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="debug" id="{g9O#GZD`Tp}@k+cZ%u,">
                                   <field name="Severity">log</field>
                                   <value name="TEXT">
                                     <shadow type="text" id="]afAYRl}ohne}GU]uFn:">
                                       <field name="TEXT">test</field>
                                     </shadow>
                                     <block type="text_join" id=")z^;LBNJASd5?4_t|y;$">
                                       <mutation items="3"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="8631V=0jJ:ih%f%luf|t">
                                           <field name="TEXT">Der Termin ist in </field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="variables_get" id="x+Ze-dx!.E!$,*dm}c3!">
                                           <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                                         </block>
                                       </value>
                                       <value name="ADD2">
                                         <block type="text" id="-c;/Y?1EbU-V!k!-~vuI">
                                           <field name="TEXT"> Tagen</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
                </xml>
                

                Ich hab halt heute und den Termin in Variablen gespeichert. Du musst halt in die Variable Termin Deinen date-String setzen!!

                So ohne debug und ohne heute Variable kann man das Blockly tatsächlich soweit vereinfachen:

                baaf8754-530a-45a2-9b99-082e2ac01caa-image.png

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <variables>
                   <variable id="d1?gZzO#Ee;5nkD=25+p">termin</variable>
                   <variable id="VM?rt|mIhKs?tvJ{G6E|">inTagen</variable>
                 </variables>
                 <block type="variables_set" id="P%BplVP^J:4=RP.Fk06[" x="13" y="-37">
                   <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                   <value name="VALUE">
                     <block type="text" id="z6cycfSj0mKCILp8-OKn">
                       <field name="TEXT">2021-08-10T20:00:00.000Z</field>
                     </block>
                   </value>
                   <next>
                     <block type="variables_set" id="N7x9UN]:=-5o?6=d4jed">
                       <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                       <value name="VALUE">
                         <block type="math_round" id=";A(P7CYQGSfP`4dC]U{|">
                           <field name="OP">ROUNDDOWN</field>
                           <value name="NUM">
                             <shadow type="math_number" id="=dQLmrn_#x}r5a{-B}*W">
                               <field name="NUM">3.1</field>
                             </shadow>
                             <block type="math_arithmetic" id="?V!+2,apS9_ym.)w%PGU">
                               <field name="OP">DIVIDE</field>
                               <value name="A">
                                 <shadow type="math_number" id="AND[V0z/y@H:!`_i@m7A">
                                   <field name="NUM">1</field>
                                 </shadow>
                                 <block type="math_arithmetic" id="D)jqxX5=sjt|c^HwBS].">
                                   <field name="OP">MINUS</field>
                                   <value name="A">
                                     <shadow type="math_number" id="}T|ND~@8/)/fE@6GEiub">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="convert_from_date" id="h^CggrSLC`]{BL}b=BIV">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                       <field name="OPTION">object</field>
                                       <value name="VALUE">
                                         <block type="text_join" id="PHI)-xQjVC[}K0P$4WMi">
                                           <mutation items="2"></mutation>
                                           <value name="ADD0">
                                             <block type="text_getSubstring" id="X3{W|mvT2$5OB]`vn2Eq">
                                               <mutation at1="false" at2="true"></mutation>
                                               <field name="WHERE1">FIRST</field>
                                               <field name="WHERE2">FROM_START</field>
                                               <value name="STRING">
                                                 <block type="variables_get" id="VVO]kBR$JYvv$YbuK=;C">
                                                   <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                 </block>
                                               </value>
                                               <value name="AT2">
                                                 <block type="text_indexOf" id="]9WIuP!/kSkCLGE4EOpV">
                                                   <field name="END">FIRST</field>
                                                   <value name="VALUE">
                                                     <block type="variables_get" id="LxPXPb*R+*4i_z6MZP[a">
                                                       <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                     </block>
                                                   </value>
                                                   <value name="FIND">
                                                     <shadow type="text" id="}@NDsVJtdwn@8.[JZK{1">
                                                       <field name="TEXT">T</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="text" id="U*l}yM;e)7yVD8T)MgP^">
                                               <field name="TEXT">00:00</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="n16IlOivfSDyBWa,|V5Y">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="convert_from_date" id="-+QkN*;XsDvY3E@X@4,H">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                       <field name="OPTION">object</field>
                                       <value name="VALUE">
                                         <block type="text_join" id="$gEQ)xy{UqB8l/8Yz7|z">
                                           <mutation items="2"></mutation>
                                           <value name="ADD0">
                                             <block type="time_get" id="`Mb?^~n*+3?E#i.4`NC#">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                               <field name="OPTION">custom</field>
                                               <field name="FORMAT">JJJJ-MM-TT</field>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="text" id="RuHYT0/REHu$c*D7pXcL">
                                               <field name="TEXT">T00:00</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <shadow type="math_number" id="98?%-1Edl1xJ?e%m$Ubw">
                                   <field name="NUM">86400000</field>
                                 </shadow>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="debug" id="{g9O#GZD`Tp}@k+cZ%u,">
                           <field name="Severity">log</field>
                           <value name="TEXT">
                             <shadow type="text" id="]afAYRl}ohne}GU]uFn:">
                               <field name="TEXT">test</field>
                             </shadow>
                             <block type="variables_get" id="x+Ze-dx!.E!$,*dm}c3!">
                               <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
                </xml>
                

                Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                David G.D 2 Antworten Letzte Antwort
                2
                • mickymM mickym

                  @david-g
                  Ich habs!!! ;) - Als Blockly Legastheniker bin ich ganz stolz
                  So das funktioniert meines Erachtens:

                  89d7d5de-e05a-4b8f-bf58-29cb9a6234ae-image.png

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <variables>
                     <variable id="d1?gZzO#Ee;5nkD=25+p">termin</variable>
                     <variable id=",{yVx}S,?U_1?xsS0IO;">heute</variable>
                     <variable id="VM?rt|mIhKs?tvJ{G6E|">inTagen</variable>
                   </variables>
                   <block type="variables_set" id="P%BplVP^J:4=RP.Fk06[" x="87" y="38">
                     <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                     <value name="VALUE">
                       <block type="text" id="z6cycfSj0mKCILp8-OKn">
                         <field name="TEXT">2021-08-10T20:00:00.000Z</field>
                       </block>
                     </value>
                     <next>
                       <block type="variables_set" id="C/jWKeNBnr.ZCPv}2KYl">
                         <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                         <value name="VALUE">
                           <block type="convert_from_date" id="h^CggrSLC`]{BL}b=BIV">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                             <field name="OPTION">object</field>
                             <value name="VALUE">
                               <block type="text_join" id="PHI)-xQjVC[}K0P$4WMi">
                                 <mutation items="2"></mutation>
                                 <value name="ADD0">
                                   <block type="text_getSubstring" id="X3{W|mvT2$5OB]`vn2Eq">
                                     <mutation at1="false" at2="true"></mutation>
                                     <field name="WHERE1">FIRST</field>
                                     <field name="WHERE2">FROM_START</field>
                                     <value name="STRING">
                                       <block type="variables_get" id="VVO]kBR$JYvv$YbuK=;C">
                                         <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                       </block>
                                     </value>
                                     <value name="AT2">
                                       <block type="text_indexOf" id="]9WIuP!/kSkCLGE4EOpV">
                                         <field name="END">FIRST</field>
                                         <value name="VALUE">
                                           <block type="variables_get" id="LxPXPb*R+*4i_z6MZP[a">
                                             <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                           </block>
                                         </value>
                                         <value name="FIND">
                                           <shadow type="text" id="}@NDsVJtdwn@8.[JZK{1">
                                             <field name="TEXT">T</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="ADD1">
                                   <block type="text" id="U*l}yM;e)7yVD8T)MgP^">
                                     <field name="TEXT">00:00</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="variables_set" id="Cx*sQRm/Pwt6NuuLMNBb">
                             <field name="VAR" id=",{yVx}S,?U_1?xsS0IO;">heute</field>
                             <value name="VALUE">
                               <block type="convert_from_date" id="-+QkN*;XsDvY3E@X@4,H">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                 <field name="OPTION">object</field>
                                 <value name="VALUE">
                                   <block type="text_join" id="$gEQ)xy{UqB8l/8Yz7|z">
                                     <mutation items="2"></mutation>
                                     <value name="ADD0">
                                       <block type="time_get" id="`Mb?^~n*+3?E#i.4`NC#">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                         <field name="OPTION">custom</field>
                                         <field name="FORMAT">JJJJ-MM-TT</field>
                                       </block>
                                     </value>
                                     <value name="ADD1">
                                       <block type="text" id="RuHYT0/REHu$c*D7pXcL">
                                         <field name="TEXT">T00:00</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="variables_set" id="N7x9UN]:=-5o?6=d4jed">
                                 <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                                 <value name="VALUE">
                                   <block type="math_round" id=";A(P7CYQGSfP`4dC]U{|">
                                     <field name="OP">ROUNDDOWN</field>
                                     <value name="NUM">
                                       <shadow type="math_number" id="=dQLmrn_#x}r5a{-B}*W">
                                         <field name="NUM">3.1</field>
                                       </shadow>
                                       <block type="math_arithmetic" id="?V!+2,apS9_ym.)w%PGU">
                                         <field name="OP">DIVIDE</field>
                                         <value name="A">
                                           <shadow type="math_number" id="AND[V0z/y@H:!`_i@m7A">
                                             <field name="NUM">1</field>
                                           </shadow>
                                           <block type="math_arithmetic" id="D)jqxX5=sjt|c^HwBS].">
                                             <field name="OP">MINUS</field>
                                             <value name="A">
                                               <shadow type="math_number" id="}T|ND~@8/)/fE@6GEiub">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                               <block type="variables_get" id="lm)9)3UC3f4f_]|X,O_3">
                                                 <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <shadow type="math_number" id="n16IlOivfSDyBWa,|V5Y">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                               <block type="variables_get" id="RPzMF6EVZsL(4[5:NV~{">
                                                 <field name="VAR" id=",{yVx}S,?U_1?xsS0IO;">heute</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <shadow type="math_number" id="98?%-1Edl1xJ?e%m$Ubw">
                                             <field name="NUM">86400000</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="debug" id="{g9O#GZD`Tp}@k+cZ%u,">
                                     <field name="Severity">log</field>
                                     <value name="TEXT">
                                       <shadow type="text" id="]afAYRl}ohne}GU]uFn:">
                                         <field name="TEXT">test</field>
                                       </shadow>
                                       <block type="text_join" id=")z^;LBNJASd5?4_t|y;$">
                                         <mutation items="3"></mutation>
                                         <value name="ADD0">
                                           <block type="text" id="8631V=0jJ:ih%f%luf|t">
                                             <field name="TEXT">Der Termin ist in </field>
                                           </block>
                                         </value>
                                         <value name="ADD1">
                                           <block type="variables_get" id="x+Ze-dx!.E!$,*dm}c3!">
                                             <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                                           </block>
                                         </value>
                                         <value name="ADD2">
                                           <block type="text" id="-c;/Y?1EbU-V!k!-~vuI">
                                             <field name="TEXT"> Tagen</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                  </xml>
                  

                  Ich hab halt heute und den Termin in Variablen gespeichert. Du musst halt in die Variable Termin Deinen date-String setzen!!

                  So ohne debug und ohne heute Variable kann man das Blockly tatsächlich soweit vereinfachen:

                  baaf8754-530a-45a2-9b99-082e2ac01caa-image.png

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <variables>
                     <variable id="d1?gZzO#Ee;5nkD=25+p">termin</variable>
                     <variable id="VM?rt|mIhKs?tvJ{G6E|">inTagen</variable>
                   </variables>
                   <block type="variables_set" id="P%BplVP^J:4=RP.Fk06[" x="13" y="-37">
                     <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                     <value name="VALUE">
                       <block type="text" id="z6cycfSj0mKCILp8-OKn">
                         <field name="TEXT">2021-08-10T20:00:00.000Z</field>
                       </block>
                     </value>
                     <next>
                       <block type="variables_set" id="N7x9UN]:=-5o?6=d4jed">
                         <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                         <value name="VALUE">
                           <block type="math_round" id=";A(P7CYQGSfP`4dC]U{|">
                             <field name="OP">ROUNDDOWN</field>
                             <value name="NUM">
                               <shadow type="math_number" id="=dQLmrn_#x}r5a{-B}*W">
                                 <field name="NUM">3.1</field>
                               </shadow>
                               <block type="math_arithmetic" id="?V!+2,apS9_ym.)w%PGU">
                                 <field name="OP">DIVIDE</field>
                                 <value name="A">
                                   <shadow type="math_number" id="AND[V0z/y@H:!`_i@m7A">
                                     <field name="NUM">1</field>
                                   </shadow>
                                   <block type="math_arithmetic" id="D)jqxX5=sjt|c^HwBS].">
                                     <field name="OP">MINUS</field>
                                     <value name="A">
                                       <shadow type="math_number" id="}T|ND~@8/)/fE@6GEiub">
                                         <field name="NUM">1</field>
                                       </shadow>
                                       <block type="convert_from_date" id="h^CggrSLC`]{BL}b=BIV">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                         <field name="OPTION">object</field>
                                         <value name="VALUE">
                                           <block type="text_join" id="PHI)-xQjVC[}K0P$4WMi">
                                             <mutation items="2"></mutation>
                                             <value name="ADD0">
                                               <block type="text_getSubstring" id="X3{W|mvT2$5OB]`vn2Eq">
                                                 <mutation at1="false" at2="true"></mutation>
                                                 <field name="WHERE1">FIRST</field>
                                                 <field name="WHERE2">FROM_START</field>
                                                 <value name="STRING">
                                                   <block type="variables_get" id="VVO]kBR$JYvv$YbuK=;C">
                                                     <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                   </block>
                                                 </value>
                                                 <value name="AT2">
                                                   <block type="text_indexOf" id="]9WIuP!/kSkCLGE4EOpV">
                                                     <field name="END">FIRST</field>
                                                     <value name="VALUE">
                                                       <block type="variables_get" id="LxPXPb*R+*4i_z6MZP[a">
                                                         <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                       </block>
                                                     </value>
                                                     <value name="FIND">
                                                       <shadow type="text" id="}@NDsVJtdwn@8.[JZK{1">
                                                         <field name="TEXT">T</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="ADD1">
                                               <block type="text" id="U*l}yM;e)7yVD8T)MgP^">
                                                 <field name="TEXT">00:00</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <shadow type="math_number" id="n16IlOivfSDyBWa,|V5Y">
                                         <field name="NUM">1</field>
                                       </shadow>
                                       <block type="convert_from_date" id="-+QkN*;XsDvY3E@X@4,H">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                         <field name="OPTION">object</field>
                                         <value name="VALUE">
                                           <block type="text_join" id="$gEQ)xy{UqB8l/8Yz7|z">
                                             <mutation items="2"></mutation>
                                             <value name="ADD0">
                                               <block type="time_get" id="`Mb?^~n*+3?E#i.4`NC#">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                 <field name="OPTION">custom</field>
                                                 <field name="FORMAT">JJJJ-MM-TT</field>
                                               </block>
                                             </value>
                                             <value name="ADD1">
                                               <block type="text" id="RuHYT0/REHu$c*D7pXcL">
                                                 <field name="TEXT">T00:00</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <shadow type="math_number" id="98?%-1Edl1xJ?e%m$Ubw">
                                     <field name="NUM">86400000</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="debug" id="{g9O#GZD`Tp}@k+cZ%u,">
                             <field name="Severity">log</field>
                             <value name="TEXT">
                               <shadow type="text" id="]afAYRl}ohne}GU]uFn:">
                                 <field name="TEXT">test</field>
                               </shadow>
                               <block type="variables_get" id="x+Ze-dx!.E!$,*dm}c3!">
                                 <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                  </xml>
                  

                  David G.D Online
                  David G.D Online
                  David G.
                  schrieb am zuletzt editiert von
                  #23

                  @mickym

                  Werde ich heute Nachmittag mal testen^^

                  Zeigt eure Lovelace-Visualisierung klick
                  (Auch ideal um sich Anregungen zu holen)

                  Meine Tabellen für eure Visualisierung klick

                  1 Antwort Letzte Antwort
                  0
                  • mickymM mickym

                    @david-g
                    Ich habs!!! ;) - Als Blockly Legastheniker bin ich ganz stolz
                    So das funktioniert meines Erachtens:

                    89d7d5de-e05a-4b8f-bf58-29cb9a6234ae-image.png

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="d1?gZzO#Ee;5nkD=25+p">termin</variable>
                       <variable id=",{yVx}S,?U_1?xsS0IO;">heute</variable>
                       <variable id="VM?rt|mIhKs?tvJ{G6E|">inTagen</variable>
                     </variables>
                     <block type="variables_set" id="P%BplVP^J:4=RP.Fk06[" x="87" y="38">
                       <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                       <value name="VALUE">
                         <block type="text" id="z6cycfSj0mKCILp8-OKn">
                           <field name="TEXT">2021-08-10T20:00:00.000Z</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="C/jWKeNBnr.ZCPv}2KYl">
                           <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                           <value name="VALUE">
                             <block type="convert_from_date" id="h^CggrSLC`]{BL}b=BIV">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                               <field name="OPTION">object</field>
                               <value name="VALUE">
                                 <block type="text_join" id="PHI)-xQjVC[}K0P$4WMi">
                                   <mutation items="2"></mutation>
                                   <value name="ADD0">
                                     <block type="text_getSubstring" id="X3{W|mvT2$5OB]`vn2Eq">
                                       <mutation at1="false" at2="true"></mutation>
                                       <field name="WHERE1">FIRST</field>
                                       <field name="WHERE2">FROM_START</field>
                                       <value name="STRING">
                                         <block type="variables_get" id="VVO]kBR$JYvv$YbuK=;C">
                                           <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                         </block>
                                       </value>
                                       <value name="AT2">
                                         <block type="text_indexOf" id="]9WIuP!/kSkCLGE4EOpV">
                                           <field name="END">FIRST</field>
                                           <value name="VALUE">
                                             <block type="variables_get" id="LxPXPb*R+*4i_z6MZP[a">
                                               <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                             </block>
                                           </value>
                                           <value name="FIND">
                                             <shadow type="text" id="}@NDsVJtdwn@8.[JZK{1">
                                               <field name="TEXT">T</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="ADD1">
                                     <block type="text" id="U*l}yM;e)7yVD8T)MgP^">
                                       <field name="TEXT">00:00</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="variables_set" id="Cx*sQRm/Pwt6NuuLMNBb">
                               <field name="VAR" id=",{yVx}S,?U_1?xsS0IO;">heute</field>
                               <value name="VALUE">
                                 <block type="convert_from_date" id="-+QkN*;XsDvY3E@X@4,H">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                   <field name="OPTION">object</field>
                                   <value name="VALUE">
                                     <block type="text_join" id="$gEQ)xy{UqB8l/8Yz7|z">
                                       <mutation items="2"></mutation>
                                       <value name="ADD0">
                                         <block type="time_get" id="`Mb?^~n*+3?E#i.4`NC#">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                           <field name="OPTION">custom</field>
                                           <field name="FORMAT">JJJJ-MM-TT</field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="text" id="RuHYT0/REHu$c*D7pXcL">
                                           <field name="TEXT">T00:00</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="variables_set" id="N7x9UN]:=-5o?6=d4jed">
                                   <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                                   <value name="VALUE">
                                     <block type="math_round" id=";A(P7CYQGSfP`4dC]U{|">
                                       <field name="OP">ROUNDDOWN</field>
                                       <value name="NUM">
                                         <shadow type="math_number" id="=dQLmrn_#x}r5a{-B}*W">
                                           <field name="NUM">3.1</field>
                                         </shadow>
                                         <block type="math_arithmetic" id="?V!+2,apS9_ym.)w%PGU">
                                           <field name="OP">DIVIDE</field>
                                           <value name="A">
                                             <shadow type="math_number" id="AND[V0z/y@H:!`_i@m7A">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="math_arithmetic" id="D)jqxX5=sjt|c^HwBS].">
                                               <field name="OP">MINUS</field>
                                               <value name="A">
                                                 <shadow type="math_number" id="}T|ND~@8/)/fE@6GEiub">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="variables_get" id="lm)9)3UC3f4f_]|X,O_3">
                                                   <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <shadow type="math_number" id="n16IlOivfSDyBWa,|V5Y">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="variables_get" id="RPzMF6EVZsL(4[5:NV~{">
                                                   <field name="VAR" id=",{yVx}S,?U_1?xsS0IO;">heute</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="98?%-1Edl1xJ?e%m$Ubw">
                                               <field name="NUM">86400000</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="debug" id="{g9O#GZD`Tp}@k+cZ%u,">
                                       <field name="Severity">log</field>
                                       <value name="TEXT">
                                         <shadow type="text" id="]afAYRl}ohne}GU]uFn:">
                                           <field name="TEXT">test</field>
                                         </shadow>
                                         <block type="text_join" id=")z^;LBNJASd5?4_t|y;$">
                                           <mutation items="3"></mutation>
                                           <value name="ADD0">
                                             <block type="text" id="8631V=0jJ:ih%f%luf|t">
                                               <field name="TEXT">Der Termin ist in </field>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="variables_get" id="x+Ze-dx!.E!$,*dm}c3!">
                                               <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                                             </block>
                                           </value>
                                           <value name="ADD2">
                                             <block type="text" id="-c;/Y?1EbU-V!k!-~vuI">
                                               <field name="TEXT"> Tagen</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                    </xml>
                    

                    Ich hab halt heute und den Termin in Variablen gespeichert. Du musst halt in die Variable Termin Deinen date-String setzen!!

                    So ohne debug und ohne heute Variable kann man das Blockly tatsächlich soweit vereinfachen:

                    baaf8754-530a-45a2-9b99-082e2ac01caa-image.png

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="d1?gZzO#Ee;5nkD=25+p">termin</variable>
                       <variable id="VM?rt|mIhKs?tvJ{G6E|">inTagen</variable>
                     </variables>
                     <block type="variables_set" id="P%BplVP^J:4=RP.Fk06[" x="13" y="-37">
                       <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                       <value name="VALUE">
                         <block type="text" id="z6cycfSj0mKCILp8-OKn">
                           <field name="TEXT">2021-08-10T20:00:00.000Z</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="N7x9UN]:=-5o?6=d4jed">
                           <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                           <value name="VALUE">
                             <block type="math_round" id=";A(P7CYQGSfP`4dC]U{|">
                               <field name="OP">ROUNDDOWN</field>
                               <value name="NUM">
                                 <shadow type="math_number" id="=dQLmrn_#x}r5a{-B}*W">
                                   <field name="NUM">3.1</field>
                                 </shadow>
                                 <block type="math_arithmetic" id="?V!+2,apS9_ym.)w%PGU">
                                   <field name="OP">DIVIDE</field>
                                   <value name="A">
                                     <shadow type="math_number" id="AND[V0z/y@H:!`_i@m7A">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="math_arithmetic" id="D)jqxX5=sjt|c^HwBS].">
                                       <field name="OP">MINUS</field>
                                       <value name="A">
                                         <shadow type="math_number" id="}T|ND~@8/)/fE@6GEiub">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="convert_from_date" id="h^CggrSLC`]{BL}b=BIV">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                           <field name="OPTION">object</field>
                                           <value name="VALUE">
                                             <block type="text_join" id="PHI)-xQjVC[}K0P$4WMi">
                                               <mutation items="2"></mutation>
                                               <value name="ADD0">
                                                 <block type="text_getSubstring" id="X3{W|mvT2$5OB]`vn2Eq">
                                                   <mutation at1="false" at2="true"></mutation>
                                                   <field name="WHERE1">FIRST</field>
                                                   <field name="WHERE2">FROM_START</field>
                                                   <value name="STRING">
                                                     <block type="variables_get" id="VVO]kBR$JYvv$YbuK=;C">
                                                       <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                     </block>
                                                   </value>
                                                   <value name="AT2">
                                                     <block type="text_indexOf" id="]9WIuP!/kSkCLGE4EOpV">
                                                       <field name="END">FIRST</field>
                                                       <value name="VALUE">
                                                         <block type="variables_get" id="LxPXPb*R+*4i_z6MZP[a">
                                                           <field name="VAR" id="d1?gZzO#Ee;5nkD=25+p">termin</field>
                                                         </block>
                                                       </value>
                                                       <value name="FIND">
                                                         <shadow type="text" id="}@NDsVJtdwn@8.[JZK{1">
                                                           <field name="TEXT">T</field>
                                                         </shadow>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="text" id="U*l}yM;e)7yVD8T)MgP^">
                                                   <field name="TEXT">00:00</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id="n16IlOivfSDyBWa,|V5Y">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="convert_from_date" id="-+QkN*;XsDvY3E@X@4,H">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                           <field name="OPTION">object</field>
                                           <value name="VALUE">
                                             <block type="text_join" id="$gEQ)xy{UqB8l/8Yz7|z">
                                               <mutation items="2"></mutation>
                                               <value name="ADD0">
                                                 <block type="time_get" id="`Mb?^~n*+3?E#i.4`NC#">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                   <field name="OPTION">custom</field>
                                                   <field name="FORMAT">JJJJ-MM-TT</field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="text" id="RuHYT0/REHu$c*D7pXcL">
                                                   <field name="TEXT">T00:00</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="98?%-1Edl1xJ?e%m$Ubw">
                                       <field name="NUM">86400000</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="debug" id="{g9O#GZD`Tp}@k+cZ%u,">
                               <field name="Severity">log</field>
                               <value name="TEXT">
                                 <shadow type="text" id="]afAYRl}ohne}GU]uFn:">
                                   <field name="TEXT">test</field>
                                 </shadow>
                                 <block type="variables_get" id="x+Ze-dx!.E!$,*dm}c3!">
                                   <field name="VAR" id="VM?rt|mIhKs?tvJ{G6E|">inTagen</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                    </xml>
                    

                    David G.D Online
                    David G.D Online
                    David G.
                    schrieb am zuletzt editiert von David G.
                    #24

                    @mickym

                    Hab es nachgebaut und läuft.
                    Muss allerdings wie bei meinem Versuch noch 1 drauf rechnen. Der Morgige Tag liefert 0 als Ergebniss.

                    Das ist die generierte Nachricht.
                    Damit ihr auch seht, worum es geht.

                    Screenshot_20210807-095021_Telegram.jpg

                    Alter Screen als ein Geburtstag anstand.
                    Screenshot_20210807-101220_Telegram.jpg

                    Geht wenn die Sonntags verschickt wird dann schön von Mo bis So alle Tage durch.
                    (sind grad noch einige Testtermine hinterlegt. Die Geburtstage werden wie die anderen Termine dargestellt.)

                    @mickym
                    Nicht, dass du noch von node red zu blockly abwanderst 🤪

                    Zeigt eure Lovelace-Visualisierung klick
                    (Auch ideal um sich Anregungen zu holen)

                    Meine Tabellen für eure Visualisierung klick

                    mickymM 1 Antwort Letzte Antwort
                    0
                    • David G.D David G.

                      @mickym

                      Hab es nachgebaut und läuft.
                      Muss allerdings wie bei meinem Versuch noch 1 drauf rechnen. Der Morgige Tag liefert 0 als Ergebniss.

                      Das ist die generierte Nachricht.
                      Damit ihr auch seht, worum es geht.

                      Screenshot_20210807-095021_Telegram.jpg

                      Alter Screen als ein Geburtstag anstand.
                      Screenshot_20210807-101220_Telegram.jpg

                      Geht wenn die Sonntags verschickt wird dann schön von Mo bis So alle Tage durch.
                      (sind grad noch einige Testtermine hinterlegt. Die Geburtstage werden wie die anderen Termine dargestellt.)

                      @mickym
                      Nicht, dass du noch von node red zu blockly abwanderst 🤪

                      mickymM Online
                      mickymM Online
                      mickym
                      Most Active
                      schrieb am zuletzt editiert von
                      #25

                      @david-g Ehrlich gesagt verstehe ich zwar nicht, warum Du eins drauf rechnen musst, weil wenn Du mein Teil da importiert hast und den String als Termin als Ausgang nimmst - funktioniert es so. Aber egal Du hast Dir ja geholfen. ;)

                      @david-g sagte in Wie viel Tage bis Termin:

                      @mickym
                      Nicht, dass du noch von node red zu blockly abwanderst 🤪

                      Da brauchst Du keine Sorge haben - aber will auch nicht mehr diese Diskussion beginnen. ;)

                      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                      David G.D 1 Antwort Letzte Antwort
                      0
                      • mickymM mickym

                        @david-g Ehrlich gesagt verstehe ich zwar nicht, warum Du eins drauf rechnen musst, weil wenn Du mein Teil da importiert hast und den String als Termin als Ausgang nimmst - funktioniert es so. Aber egal Du hast Dir ja geholfen. ;)

                        @david-g sagte in Wie viel Tage bis Termin:

                        @mickym
                        Nicht, dass du noch von node red zu blockly abwanderst 🤪

                        Da brauchst Du keine Sorge haben - aber will auch nicht mehr diese Diskussion beginnen. ;)

                        David G.D Online
                        David G.D Online
                        David G.
                        schrieb am zuletzt editiert von David G.
                        #26

                        @mickym

                        Habe deinen Code nicht importieren können.
                        Hat immer einen Fehler ausgegeben.
                        Aber war ja schnell nachzubauen.

                        Evtl wird das Datum anders gewertet, was er in der Schleife aus dem Datenpunkt holt..... Ka....

                        Jedenfalls vielen Dank für die Hilfe.

                        Keine Sorge, die Diskussion müssen wir nicht führen.
                        Wurde A schon oft genug geführt und B kann jeder machen was ihm besser gefällt.

                        Zeigt eure Lovelace-Visualisierung klick
                        (Auch ideal um sich Anregungen zu holen)

                        Meine Tabellen für eure Visualisierung klick

                        1 Antwort Letzte Antwort
                        0

                        Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                        Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                        Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                        Registrieren Anmelden
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        553

                        Online

                        32.8k

                        Benutzer

                        82.8k

                        Themen

                        1.3m

                        Beiträge
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Anmelden

                        • Du hast noch kein Konto? Registrieren

                        • Anmelden oder registrieren, um zu suchen
                        • Erster Beitrag
                          Letzter Beitrag
                        0
                        • Home
                        • Aktuell
                        • Tags
                        • Ungelesen 0
                        • Kategorien
                        • Unreplied
                        • Beliebt
                        • GitHub
                        • Docu
                        • Hilfe