Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Blockly - Laufzeit

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

      Hallo, ich habe ein Timer Bloxkly geschriebe der mir saget wie lange ein Gerät an war und das ganze wird dann von aktuell in heute und gesammt umgerechnet. So soll es zumindestens sein 😄

      Jetzt ist das Problem, dass ich ja nur Sekunden habe natürlich kann ich dir mit /60 auf Minuten umrechnen aber da bekommt man ja nur dofe Dezimalzahlen raus 😕 kann man das irgend wie schöner machen?

      Natürlich würde ich mich über verbesserungen am Blockly freuen, wenn das nur murx ist was ich da gemacht habe 😄

      Blockly Export:

      ! ````
      <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id="l6Z=S=!#}@k(kcvfrCz{" x="-512" y="-287"><mutation items="1"></mutation>
      <field name="CONDITION">ne</field>

      <value name="OID0"><shadow type="field_oid" id="EKOG)dfNnNSusAA!8F~4"><field name="oid">fritzdect.0.DECT200_087610446720.state</field></shadow></value> 
      <statement name="STATEMENT"><block type="debug" id="BQ|2{R#dI*-Y@h~TNsw{"><field name="Severity">log</field>
          <value name="TEXT"><shadow type="text" id="V~G8QT8]7.Fbl~]}ErVT"><field name="TEXT">Timer start</field></shadow></value> 
          <next><block type="controls_if" id="5aVF?C_*e?##-RlU5fLU"><value name="IF0"><block type="logic_compare" id=":5}H8*PNR]L*|zr}Up7^"><field name="OP">EQ</field>
                  <value name="A"><block type="get_value" id="gw22jsv1qfc3wBENve;R"><field name="ATTR">val</field>
                      <field name="OID">fritzdect.0.DECT200_087610446720.state</field></block></value> 
                  <value name="B"><block type="logic_boolean" id="x2pn(I4QH#2Gk%M3[o/r"><field name="BOOL">FALSE</field></block></value></block></value> 
              <statement name="DO0"><block type="update" id="Qy_/Qa-Z9*|M,Ue_F@6M"><mutation delay_input="false"></mutation>
                  <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_heute</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE"><block type="math_arithmetic" id="^?)98DbLl73vX,N=s@/@"><field name="OP">ADD</field>
                      <value name="A"><shadow type="math_number" id="%!Au?z=f?DYU3yXY}#mR"><field name="NUM">1</field></shadow> 
                        <block type="get_value" id="rfh0EAa(!^W;D6DG2~4]"><field name="ATTR">val</field>
                          <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_heute</field></block></value> 
                      <value name="B"><shadow type="math_number" id="_]U5;rUF~{/]es^A#/HS"><field name="NUM">1</field></shadow> 
                        <block type="get_value" id="_rOM:B6~ejxU[(4~1o-8"><field name="ATTR">val</field>
                          <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_aktuell</field></block></value></block></value> 
                  <next><block type="update" id="OeH:86:KjJK;Q}1s;/),"><mutation delay_input="true"></mutation>
                      <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_aktuell</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">100</field>
                      <field name="UNIT">ms</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE"><block type="math_number" id="u8dtH#wW*qH_bla}*9jw"><field name="NUM">0</field></block></value></block></next></block></statement> 
              <next><block type="controls_if" id="q5cZ_K@(kLIVvr[Zb],*"><value name="IF0"><block type="logic_compare" id="k@_NM~Dj|mA#9d7oD-5)"><field name="OP">EQ</field>
                      <value name="A"><block type="get_value" id="Nx=_z~_5zJyxhuK5c3/g"><field name="ATTR">val</field>
                          <field name="OID">fritzdect.0.DECT200_087610446720.state</field></block></value> 
                      <value name="B"><block type="logic_boolean" id="?O}-TPr{mW7~U=BCIZs+"><field name="BOOL">TRUE</field></block></value></block></value> 
                  <statement name="DO0"><block type="variables_set" id="Gt3U+8_O7}I0+7Wrv5dp"><field name="VAR">Timer</field>
                      <value name="VALUE"><block type="math_number" id="LDLLHrD!c:]_1)//CTMK"><field name="NUM">0</field></block></value> 
                      <next><block type="timeouts_setinterval" id="Tk5P^~-rC~atb@e%^vFL"><field name="NAME">Intervall</field>
                          <field name="INTERVAL">1</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT"><block type="math_change" id="1bh=Ww|M3QCbeBY]6+9C"><field name="VAR">Timer</field>
                              <value name="DELTA"><shadow type="math_number" id="YQ`7`*jC!-QpygkN0=Vv"><field name="NUM">1</field></shadow></value> 
                              <next><block type="controls_if" id="J8MF145/DNoi1lXBnOSf"><value name="IF0"><block type="logic_compare" id="U[/z]DbHYk=]pVj}4Clh"><field name="OP">EQ</field>
                                      <value name="A"><block type="get_value" id="yU91!0ia.OL}(Y;?_5kB"><field name="ATTR">val</field>
                                          <field name="OID">fritzdect.0.DECT200_087610446720.state</field></block></value> 
                                      <value name="B"><block type="logic_boolean" id="V9w#lY?9ODXm,e}|d(*N"><field name="BOOL">FALSE</field></block></value></block></value> 
                                  <statement name="DO0"><block type="update" id="aGEj[H.QzUHrJ3i:c=x("><mutation delay_input="false"></mutation>
                                      <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_aktuell</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE"><block type="variables_get" id="%zVCd,oL{ezhAWScste]"><field name="VAR">Timer</field></block></value> 
                                      <next><block type="timeouts_clearinterval" id="sOe/=+V#wj^LS_88wB.l"><field name="NAME">Intervall</field>
                                          <next><block type="debug" id="P~f-cpUN#VR4P-a=mCcQ"><field name="Severity">log</field>
                                              <value name="TEXT"><shadow type="text" id="|~YbB;X!CcnfgX77r][U"><field name="TEXT">Timer Stop</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></next></block></next></block></statement> 
      <next><block type="schedule" id="_QIb|/k#KfH~0vL_Vqa1"><field name="SCHEDULE">0 0 * * *</field>
          <statement name="STATEMENT"><block type="debug" id="-uzM/nUsOh|l0[PvW!f8"><field name="Severity">log</field>
              <value name="TEXT"><shadow type="text" id="x*MwyV,0z(bQsP!y+mQw"><field name="TEXT">Übertrage auf Gesammt und Tag reset</field></shadow></value> 
              <next><block type="update" id="tDC{8R-B%kRu)7omXoA!"><mutation delay_input="false"></mutation>
                  <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_gesammt</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE"><block type="math_arithmetic" id="`4I*^^67@ZVGXL[/svAn"><field name="OP">ADD</field>
                      <value name="A"><shadow type="math_number" id="kwqF]HOOitwUBM_OKrMU"><field name="NUM">1</field></shadow> 
                        <block type="get_value" id="2ByBDxiO|kycB8zjw249"><field name="ATTR">val</field>
                          <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_gesammt</field></block></value> 
                      <value name="B"><shadow type="math_number" id="4DTXns=x*PaAnJ7457Q/"><field name="NUM">1</field></shadow> 
                        <block type="get_value" id="E=*Ued]-jo5p{Ozn7MIP"><field name="ATTR">val</field>
                          <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_heute</field></block></value></block></value> 
                  <next><block type="update" id="O*Ln)U%T/#zim8/M#}8:"><mutation delay_input="true"></mutation>
                      <field name="OID">javascript.0.Pool.Filteranlage.Betriebsstunden_heute</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">100</field>
                      <field name="UNIT">ms</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE"><block type="math_number" id="#xA)h~((8X,vjMGGn]5V"><field name="NUM">0</field></block></value></block></next></block></next></block></statement></block></next></block> 
      

      <block type="math_change" id="GOO~-!Wv-*BG6lpQ(js" x="891" y="710"><field name="VAR">cnt</field> <value name="DELTA"><shadow type="math_number" id="?v%)-9T?:)2^S)qrM~,*"><field name="NUM">1</field></shadow></value></block> <block type="math_change" id="[pc%*}{rE.WS(OYF-V^b" x="911" y="750"><field name="VAR">cnt</field> <value name="DELTA"><shadow type="math_number" id="i{95U0@k-HQ#GFXOL;"><field name="NUM">1</field></shadow></value></block> <block type="math_change" id="@}@Luhcycc-Mm{iZ{uV" x="931" y="790"><field name="VAR">cnt</field>
      <value name="DELTA"><shadow type="math_number" id="T!D_;LG-dDPzh2K^jBmc"><field name="NUM">1</field></shadow></value></block></xml>

      [7208_1.png](/assets/uploads/files/7208_1.png)
      1 Reply Last reply Reply Quote 0
      • M
        mameier1234 last edited by

        Ich mache das so… (für die Anzeige im VIS für die Laufzeit Tages-Dauer meines Pool-Sandfilters..)

        4885_timer.jpeg

        1 Reply Last reply Reply Quote 0
        • C
          ChrisXY last edited by

          Gibt es hier ein Update oder kann man jemand sein Blockly hochladen für eine ganz einfache Laufzeiterfassung in Minuten ? Danke

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

          Support us

          ioBroker
          Community Adapters
          Donate

          513
          Online

          31.9k
          Users

          80.2k
          Topics

          1.3m
          Posts

          3
          3
          1841
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo