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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly - Nutzen von timestamp

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Blockly - Nutzen von timestamp

Scheduled Pinned Locked Moved Skripten / Logik
javascript
17 Posts 8 Posters 5.7k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pihero

    Ich hatte mir erhofft jemand kann dazu ein screenshot von einem Blockly posten...:grimacing:

    D Online
    D Online
    darkiop
    Most Active
    wrote on last edited by
    #6

    @Pihero So hatte ich das damals gelöst:

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="" id="59HLJC4k2H0Acf)X=$]m">ts</variable>
        <variable type="" id="oRhIzMXKnJNKV_V{H?LF">aktuelle_uhrzeit</variable>
        <variable type="" id="`BmY|d0AKZ`SR(Nl]CF/">timestamp_diff</variable>
        <variable type="" id="d3%s*b]Heop54]5zlj|%">last_seen_thorsten</variable>
        <variable type="" id="fYJ*dYr2KjvzU5E%Ejjo">last_seen_thorsten_ts</variable>
        <variable type="" id="7?dmcNa:E]I]l;e%3vo_">last_seen_jenny</variable>
        <variable type="" id="FaqLR/(Vfk(Y-#s-7E%`">last_seen_jenny_ts</variable>
      </variables>
      <block type="procedures_defcustomreturn" id="G1oc~.]_;g6uVSdzbZoA" x="-1512" y="538">
        <mutation statements="false">
          <arg name="ts" varid="59HLJC4k2H0Acf)X=$]m"></arg>
        </mutation>
        <field name="NAME">getTS</field>
        <field name="SCRIPT">dmFyIHplaXQgPSBuZXcgRGF0ZSgpOwp6ZWl0LnNldFRpbWUgKHRzICogMTAwMCk7IApyZXR1cm4gemVpdDs=</field>
        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
      </block>
      <block type="schedule" id="t`r3m(f_UM:XjXCWS/xF" x="-1512" y="597">
        <field name="SCHEDULE">*/5 * * * *</field>
        <statement name="STATEMENT">
          <block type="variables_set" id="b.DLuu0xy*Z2O_%qSkPt">
            <field name="VAR" id="oRhIzMXKnJNKV_V{H?LF" variabletype="">aktuelle_uhrzeit</field>
            <value name="VALUE">
              <block type="time_get" id="U5!(THWOswx.V%3F}.67">
                <mutation format="false" language="false"></mutation>
                <field name="OPTION">object</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="hjb%/=fMaOC#J+8@Jyn(">
                <field name="VAR" id="`BmY|d0AKZ`SR(Nl]CF/" variabletype="">timestamp_diff</field>
                <value name="VALUE">
                  <block type="math_number" id="wlauof!@X4GgVBA@Uom2">
                    <field name="NUM">80000</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="/DNzzsoCSs;ksf{Cmn(d">
                    <field name="VAR" id="d3%s*b]Heop54]5zlj|%" variabletype="">last_seen_thorsten</field>
                    <value name="VALUE">
                      <block type="get_value" id="SOpMun[v];CWbma/i4Xp">
                        <field name="ATTR">val</field>
                        <field name="OID">unifi.0.default.clients.98:09:cf:1a:88:38._last_seen_by_uap</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="LH6oMNBD0ngleN{Ur`)2">
                        <field name="VAR" id="fYJ*dYr2KjvzU5E%Ejjo" variabletype="">last_seen_thorsten_ts</field>
                        <value name="VALUE">
                          <block type="convert_from_date" id="0bZtc=vFxxQ(|5`y1(yq">
                            <mutation format="false" language="false"></mutation>
                            <field name="OPTION">object</field>
                            <value name="VALUE">
                              <block type="procedures_callcustomreturn" id="h}lQ0uL]F2em_s~kv~d(">
                                <mutation name="getTS">
                                  <arg name="ts"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="variables_get" id="rUSB[K},mVsY9{[dp*d+">
                                    <field name="VAR" id="d3%s*b]Heop54]5zlj|%" variabletype="">last_seen_thorsten</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="lUPt~6P.D|^C6^pR3W);">
                            <field name="VAR" id="7?dmcNa:E]I]l;e%3vo_" variabletype="">last_seen_jenny</field>
                            <value name="VALUE">
                              <block type="get_value" id="F@9E;.kxfY`yQFkZSULR">
                                <field name="ATTR">val</field>
                                <field name="OID">unifi.0.default.clients.8c:25:05:11:0d:49._last_seen_by_uap</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="A%Fx/eGowb`R,NTnNt9R">
                                <field name="VAR" id="FaqLR/(Vfk(Y-#s-7E%`" variabletype="">last_seen_jenny_ts</field>
                                <value name="VALUE">
                                  <block type="convert_from_date" id="!XCM,_zY3bdW`)kmfmL!">
                                    <mutation format="false" language="false"></mutation>
                                    <field name="OPTION">object</field>
                                    <value name="VALUE">
                                      <block type="procedures_callcustomreturn" id="3Q~-!?5(4dBt@I;a;:3a">
                                        <mutation name="getTS">
                                          <arg name="ts"></arg>
                                        </mutation>
                                        <value name="ARG0">
                                          <block type="variables_get" id="8:_c:G^ARff:rEVU/UFO">
                                            <field name="VAR" id="7?dmcNa:E]I]l;e%3vo_" variabletype="">last_seen_jenny</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="Ply|{:Xv*W8AtKkxMX_K" collapsed="true" disabled="true">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="fNnQZ2zXpi2=)h.T{`LK">
                                        <field name="TEXT">test</field>
                                      </shadow>
                                      <block type="text_join" id="3Qx^B%}p?0Ve4/I@o~cZ">
                                        <mutation items="7"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="yj7oE88mDQ2flwaV-6=F">
                                            <field name="TEXT">Aktuelle Uhrzeit: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="convert_from_date" id="6{-kHN.+ht[K/.D|KT;m">
                                            <mutation format="true" language="false"></mutation>
                                            <field name="OPTION">custom</field>
                                            <field name="FORMAT">JJJJ.MM.TT SS:mm:ss.sss</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="|zP0#{.;9gFbjRxgab[]">
                                                <field name="VAR" id="oRhIzMXKnJNKV_V{H?LF" variabletype="">aktuelle_uhrzeit</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="U6?%/NX]#E+.^@,.#rW*">
                                            <field name="TEXT"> | </field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="text" id=".S:Np[7WH=@TCT:PPq9!">
                                            <field name="TEXT">last_seen thorsten: </field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="convert_from_date" id="~/zPYESI1J9p+v^gWi?b">
                                            <mutation format="true" language="false"></mutation>
                                            <field name="OPTION">custom</field>
                                            <field name="FORMAT">JJJJ.MM.TT SS:mm:ss.sss</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="Yufs)T71h)j?74DH|G@w">
                                                <field name="VAR" id="fYJ*dYr2KjvzU5E%Ejjo" variabletype="">last_seen_thorsten_ts</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="=%8qHO6Yj4h,{B=lqLA`">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="logic_compare" id="=kHyKPmi*MLLuU.#}X++">
                                            <field name="OP">LTE</field>
                                            <value name="A">
                                              <block type="math_arithmetic" id="K`D0VQbV_1/G,CIz|S9f">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="9hM*sO57r/pj=EW.;R*x">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="=H+F1UqH/hMs%!+__/9e">
                                                    <field name="VAR" id="oRhIzMXKnJNKV_V{H?LF" variabletype="">aktuelle_uhrzeit</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="e}Q)ytnk|qES61y{Q4(;">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="ltUwyUllbIka78*7!wrt">
                                                    <field name="VAR" id="fYJ*dYr2KjvzU5E%Ejjo" variabletype="">last_seen_thorsten_ts</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="x:XE@)Y}J5KnZGo)I,ZE">
                                                <field name="VAR" id="`BmY|d0AKZ`SR(Nl]CF/" variabletype="">timestamp_diff</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="update" id="]mn5-AuLcnLrwuPK4);4">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">javascript.0.Anwesenheit.Anwesenheit_Thorsten</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="text" id="^=A=KH.]X8iOh{Me%{,9">
                                                <field name="TEXT">anwesend</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="debug" id="0$Z;t[Q!9Zw^3p=)eY]g">
                                                <field name="Severity">log</field>
                                                <value name="TEXT">
                                                  <shadow type="text" id="tgAR/:h9PUL*ahqGfksn">
                                                    <field name="TEXT">+++ Thorsten ist anwesend +++</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="update" id="m`ZKqcoU0%:gIzEDeNqi">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">javascript.0.Anwesenheit.Anwesenheit_Thorsten</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="text" id="}T6de5pJFM[LC8Z(/8kS">
                                                <field name="TEXT">abwesend</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="debug" id="IYf=V%/#m_,zOb_)Tp%x">
                                                <field name="Severity">log</field>
                                                <value name="TEXT">
                                                  <shadow type="text" id="`}dCSyDMI^HbUOpp}!0k">
                                                    <field name="TEXT">+++ Thorsten ist abwesend +++</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="debug" id="feUUz(DpxrIZd^%{o-_l" collapsed="true" disabled="true">
                                            <field name="Severity">log</field>
                                            <value name="TEXT">
                                              <shadow type="text" id="fNnQZ2zXpi2=)h.T{`LK">
                                                <field name="TEXT">test</field>
                                              </shadow>
                                              <block type="text_join" id="O*3[+VphvR:*f`xi%gm|">
                                                <mutation items="7"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="byC}oq-Q^o/@tXQGlSe|">
                                                    <field name="TEXT">Aktuelle Uhrzeit: </field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="convert_from_date" id=",k/q~,Fr/A]-y0k[O:Bn">
                                                    <mutation format="true" language="false"></mutation>
                                                    <field name="OPTION">custom</field>
                                                    <field name="FORMAT">JJJJ.MM.TT SS:mm:ss.sss</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="aqY,!BBS3vFg(-wuF.zy">
                                                        <field name="VAR" id="oRhIzMXKnJNKV_V{H?LF" variabletype="">aktuelle_uhrzeit</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="ADD2">
                                                  <block type="text" id="tF.0b/hihcrtt`9k@ufP">
                                                    <field name="TEXT"> | </field>
                                                  </block>
                                                </value>
                                                <value name="ADD3">
                                                  <block type="text" id="2SSTbE8R|xcBl`{P3UJ%">
                                                    <field name="TEXT">last_seen jenny: </field>
                                                  </block>
                                                </value>
                                                <value name="ADD4">
                                                  <block type="convert_from_date" id="EuSMks=F/g1G0oQJ_|/)">
                                                    <mutation format="true" language="false"></mutation>
                                                    <field name="OPTION">custom</field>
                                                    <field name="FORMAT">JJJJ.MM.TT SS:mm:ss.sss</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="AMU]HWwsjFwh!~DfSD!A">
                                                        <field name="VAR" id="FaqLR/(Vfk(Y-#s-7E%`" variabletype="">last_seen_jenny_ts</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="controls_if" id="N}W%s5Z,{/Z;Ytrf3}dN">
                                                <mutation else="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_compare" id="-(~{Fb2a9em3_q(j+PGt">
                                                    <field name="OP">LTE</field>
                                                    <value name="A">
                                                      <block type="math_arithmetic" id="w@A:XR#dlsEQ;0GL#riE">
                                                        <field name="OP">MINUS</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="9hM*sO57r/pj=EW.;R*x">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="f(*If9z;a,~LHsBUsV51">
                                                            <field name="VAR" id="oRhIzMXKnJNKV_V{H?LF" variabletype="">aktuelle_uhrzeit</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="e}Q)ytnk|qES61y{Q4(;">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id=":/CGxKcHlrMX8ZA,64I!">
                                                            <field name="VAR" id="FaqLR/(Vfk(Y-#s-7E%`" variabletype="">last_seen_jenny_ts</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="variables_get" id="5Y=ldc{EH+*!JG?O1TwR">
                                                        <field name="VAR" id="`BmY|d0AKZ`SR(Nl]CF/" variabletype="">timestamp_diff</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="update" id="alVfxkvB+BI1%/l?9qn_">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">javascript.0.Anwesenheit.Anwesenheit_Jenny</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="N;z}^!RGRpq.4zA4R(eE">
                                                        <field name="TEXT">anwesend</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="6Lp(Py}AOj?1D]6K%*Xn">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="V!M}dfq,RlvK{RY8,aC+">
                                                            <field name="TEXT">+++ Jenny ist anwesend +++</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <statement name="ELSE">
                                                  <block type="update" id="+s6T;I])9Cnp8?l:9Fi(">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">javascript.0.Anwesenheit.Anwesenheit_Jenny</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="+Lpx%a/BQ0+!WT5p+ikQ">
                                                        <field name="TEXT">abwesend</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="GryKo|b?7s8e=y[|$DT7">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="cl4;]UO)JU:})U28};rg">
                                                            <field name="TEXT">+++ Jenny ist abwesend +++</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    

    Proxmox-ioBroker-Redis-HA Doku: https://forum.iobroker.net/topic/47478/dokumentation-einer-proxmox-iobroker-redis-ha-umgebung

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pihero
      wrote on last edited by
      #7

      Boah...das ist mir zu krass :grimacing:

      Bisher bin ich nur mit Blockly unterwegs da es mir nur um die Umrechnung des timestamps geht fällt es mir schwer das zu extrahieren...

      Gruß, Philipp

      haselchenH D 2 Replies Last reply
      0
      • P Pihero

        Boah...das ist mir zu krass :grimacing:

        Bisher bin ich nur mit Blockly unterwegs da es mir nur um die Umrechnung des timestamps geht fällt es mir schwer das zu extrahieren...

        Gruß, Philipp

        haselchenH Offline
        haselchenH Offline
        haselchen
        Most Active
        wrote on last edited by
        #8

        @Pihero

        DAS über dir IST ein Blockly :grimacing:

        Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

        1 Reply Last reply
        0
        • P Pihero

          Boah...das ist mir zu krass :grimacing:

          Bisher bin ich nur mit Blockly unterwegs da es mir nur um die Umrechnung des timestamps geht fällt es mir schwer das zu extrahieren...

          Gruß, Philipp

          D Online
          D Online
          darkiop
          Most Active
          wrote on last edited by
          #9

          @Pihero Einfach das ganze XML Schema markieren und im Blockly-Editor importieren :)

          Proxmox-ioBroker-Redis-HA Doku: https://forum.iobroker.net/topic/47478/dokumentation-einer-proxmox-iobroker-redis-ha-umgebung

          M 1 Reply Last reply
          0
          • D darkiop

            @Pihero Einfach das ganze XML Schema markieren und im Blockly-Editor importieren :)

            M Offline
            M Offline
            Markus84
            wrote on last edited by
            #10

            @darkiop Danke für das Skript. Die 80.000 bei timestamp_diff sind das Millisekunden? Also 80 Sekunden?

            D 1 Reply Last reply
            0
            • M Markus84

              @darkiop Danke für das Skript. Die 80.000 bei timestamp_diff sind das Millisekunden? Also 80 Sekunden?

              D Online
              D Online
              darkiop
              Most Active
              wrote on last edited by
              #11

              @Markus84 genau

              Proxmox-ioBroker-Redis-HA Doku: https://forum.iobroker.net/topic/47478/dokumentation-einer-proxmox-iobroker-redis-ha-umgebung

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pihero
                wrote on last edited by
                #12

                Ok, das mit dem Import hat geklappt aber ...

                Ich möchte eigentlich nur einen Timestamp wieder in eine Uhrzeit umrechnen.

                Folgend ein Bild meiner Wetterabfrage der heimischen Wetterstation:

                Bildschirmfoto 2020-05-03 um 17.51.45.png

                Ich hab schon versucht die Informationen aus darkiop's Blockly zu verwenden Ergebnis ist aber "0". Zumindest so wie ich es jetzt probiert habe.

                Kann mir jemand noch einen Tipp geben?

                Danke und Gruß, Philipp

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Pihero
                  wrote on last edited by
                  #13

                  Hallo,

                  kann mir bitte jemand bei diesem Thema helfen?

                  Ich wundere mich das ich dazu nicht wirklich was finde...Timestamp mit blockly umrechnen klingt irgendwie nach Basic-Funktion.

                  Danke und Gruß, Philipp

                  dslraserD 1 Reply Last reply
                  0
                  • P Pihero

                    Hallo,

                    kann mir bitte jemand bei diesem Thema helfen?

                    Ich wundere mich das ich dazu nicht wirklich was finde...Timestamp mit blockly umrechnen klingt irgendwie nach Basic-Funktion.

                    Danke und Gruß, Philipp

                    dslraserD Offline
                    dslraserD Offline
                    dslraser
                    Forum Testing Most Active
                    wrote on last edited by dslraser
                    #14

                    @Pihero

                    was genau brauchst Du denn ?

                    Beispiel:

                    Bildschirmfoto 2020-05-26 um 16.20.24.png

                    Ergebnis:

                    Test: 26.05.2020 16:10:59
                    

                    oder eben letzte Änderung...

                    Bildschirmfoto 2020-05-26 um 16.22.10.png

                    Test: 26.05.2020 13:11:58
                    

                    oder
                    Bildschirmfoto 2020-05-26 um 16.30.14.png

                     am 26.05.2020 um 16:27:02
                    

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                     <variables>
                       <variable type="" id="{ch+LIpS0,zq5nO[0!tR">irgend_ein_geraet</variable>
                     </variables>
                     <block type="variables_set" id="4v#ot4K,um%8cKr~m:45" x="-1562" y="488">
                       <field name="VAR" id="{ch+LIpS0,zq5nO[0!tR" variabletype="">irgend_ein_geraet</field>
                       <value name="VALUE">
                         <block type="field_oid" id="bu:^TZJhM(NpA[5`7/bg">
                           <field name="oid">hm-rpc.0.xxx.1.STATE</field>
                         </block>
                       </value>
                       <next>
                         <block type="debug" id="4H/;Ao@[7-g?b[qI7~4E">
                           <field name="Severity">log</field>
                           <value name="TEXT">
                             <shadow type="text" id="sf+hk$N#Nt_HfK5ufCwt">
                               <field name="TEXT">test</field>
                             </shadow>
                             <block type="text_join" id="b!Fdl74bx;4js5`0TFR@">
                               <mutation items="4"></mutation>
                               <value name="ADD0">
                                 <block type="text" id="#ZvnKXLi(u^;vM|;Th!r">
                                   <field name="TEXT">am </field>
                                 </block>
                               </value>
                               <value name="ADD1">
                                 <block type="convert_from_date" id="qM(0Y%+wgO[$^cp,Q=LE" inline="false">
                                   <mutation format="false" language="false"></mutation>
                                   <field name="OPTION">DD.MM.YYYY</field>
                                   <value name="VALUE">
                                     <block type="get_value_var" id="a!w:zOwkChP;cz2iS.cj">
                                       <field name="ATTR">lc</field>
                                       <value name="OID">
                                         <shadow type="text" id="F%$Y*?Y8S1Z2fC9AN(~I">
                                           <field name="TEXT"></field>
                                         </shadow>
                                         <block type="variables_get" id="+he/3wQ6RCBRb?Gw`3IK">
                                           <field name="VAR" id="{ch+LIpS0,zq5nO[0!tR" variabletype="">irgend_ein_geraet</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="ADD2">
                                 <block type="text" id="M{2}[#[9*,d^a;5/Lc+E">
                                   <field name="TEXT"> um </field>
                                 </block>
                               </value>
                               <value name="ADD3">
                                 <block type="convert_from_date" id="kQoue1.`]}9F|yUDfW(q" inline="false">
                                   <mutation format="false" language="false"></mutation>
                                   <field name="OPTION">hh:mm:ss</field>
                                   <value name="VALUE">
                                     <block type="get_value_var" id="Q]I%(o=Jf7z,8C.es8zr">
                                       <field name="ATTR">lc</field>
                                       <value name="OID">
                                         <shadow type="text" id="F%$Y*?Y8S1Z2fC9AN(~I">
                                           <field name="TEXT"></field>
                                         </shadow>
                                         <block type="variables_get" id="(2bwL{e~m0m:R]:QPHEY">
                                           <field name="VAR" id="{ch+LIpS0,zq5nO[0!tR" variabletype="">irgend_ein_geraet</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                    </xml>
                    

                    1 Reply Last reply
                    2
                    • P Offline
                      P Offline
                      Pihero
                      wrote on last edited by
                      #15

                      alles klar das ist genau das was ich suche :)

                      Danke!

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        KleinesA
                        wrote on last edited by
                        #16

                        Ich habe ein Problem mit der Konvertierung von Timestamp.

                        Der Timestamp 1671658670 erzeugt bei der Konvertierung folgendes Zeit:
                        Tue Jan 20 1970 09:20:58 GMT+0100 (Mitteleuropäische Normalzeit)

                        Richtig wäre aber Mittwoch, 21. Dezember 2022 22:37:50.

                        Wo liegt mein Fehler?

                        AsgothianA 1 Reply Last reply
                        0
                        • K KleinesA

                          Ich habe ein Problem mit der Konvertierung von Timestamp.

                          Der Timestamp 1671658670 erzeugt bei der Konvertierung folgendes Zeit:
                          Tue Jan 20 1970 09:20:58 GMT+0100 (Mitteleuropäische Normalzeit)

                          Richtig wäre aber Mittwoch, 21. Dezember 2022 22:37:50.

                          Wo liegt mein Fehler?

                          AsgothianA Offline
                          AsgothianA Offline
                          Asgothian
                          Developer
                          wrote on last edited by
                          #17

                          @kleinesa Prüf mal die Systemzeit auf dem Rechner wo der ioBroker installiert ist.

                          A.

                          ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
                          "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

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


                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          378

                          Online

                          32.7k

                          Users

                          82.4k

                          Topics

                          1.3m

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

                          • Don't have an account? Register

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