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. Visualisierung
  4. [erledigt] Sekunden in Stunden und Minuten anzeigen.

NEWS

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

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

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

[erledigt] Sekunden in Stunden und Minuten anzeigen.

Scheduled Pinned Locked Moved Visualisierung
37 Posts 10 Posters 10.1k Views 7 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.
  • metaxaM metaxa

    @Peoples sagte in [erledigt] Sekunden in Stunden und Minuten anzeigen.:

    Das glaube ich nicht :lol:

    Mach mal anstelle von:

    on({id: 'roomba.0.statistics.time.avgMin', change: "ne"}, function (dp) {
    

    das:

    on({id: 'roomba.0.statistics.time.avgMin', change: "any"}, function (dp) {
    

    das ne ist falsch.

    Du könntest auch den Datenpunkt einfach über:

    createState('javascript.0.Berechnen.roombarechner',0, {type: 'string',name: 'roombarechner'});
    

    erstellen.

    Sag mal Bescheid ob es dann geht.

    Jetzt suche ich schon vergeblich einige Zeit herum und finde keine Erklärung im Netz, daher (m)eine blöde Frage:

    change: 'ne' oder 'any'
    

    Wann setzt man was ein, bzw. was gibt es noch für Optionen?

    Lieben Dank - gerne auch nur für einen Link (german bevorzugt) :-)
    mxa

    thewhoboxT Offline
    thewhoboxT Offline
    thewhobox
    wrote on last edited by
    #21

    @metaxa https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md#on---subscribe-on-changes-or-updates-of-some-state

    Da stehen alle mögliche Operationen drin und was sie machen.

    Meine Adapter: emby | discovery
    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

    metaxaM 1 Reply Last reply
    2
    • thewhoboxT thewhobox

      @metaxa https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md#on---subscribe-on-changes-or-updates-of-some-state

      Da stehen alle mögliche Operationen drin und was sie machen.

      metaxaM Offline
      metaxaM Offline
      metaxa
      wrote on last edited by
      #22

      @thewhobox pfft...... also dirket unter ioBroker hätte ich nie im Leben gesucht, aber da stehts perfekt beschrieben, Schande über mein Haupt 😰

      600da179-325a-42c6-b9ac-dddf98347022-grafik.png

      Herzlichen Dank!
      mxa

      1 Reply Last reply
      0
      • PeoplesP Peoples

        @JB_Sullivan:

        Der Datenpunkt von Octoprint gibt einen Zahlenwert in Sekunden aus - also z.B. 75684 `

        Dann bringt dir ja der Split-Befehl nichts, da du ja nichts zum splitten hast. Wenn die Ausgabe Sekunden sind:

        on({id: 'octoprint.0.printjob.progress.printtime_left', change: "ne"}, function (dp) {
        	var timenew = Math.floor(dp.state.val / 3600 )+'h'+Math.floor( (dp.state.val % 3600) / 60 )+'min';
            	setState("javascript.0.Berechnen.Stundenrechner",timenew);
        });
        
        

        Schau mal das sollte den gewünschten Erfolg bringen. Bei mir im log steht dann 21h1min

        Enrico HesseE Offline
        Enrico HesseE Offline
        Enrico Hesse
        wrote on last edited by Enrico Hesse
        #23

        @Peoples Hallo,

        bei mir hat das Script nach Anpassung der Pfade hervorragend funktioniert. Meine Newbie Frage wäre, wie macht Ihr das wenn Ihr nicht nur die aktuelle Laufzeit heraus bekommen wollt sondern die Uhrzeit wo das Gerät fertig ist.

        Bsp:
        Zeitangabe vom Device in sec: 4600
        aktuelle Uhrzeit: 19:00 Uhr

        mit aktuellem Script: 1:28
        meine Anfrage wäre jetzt nach der Uhrzeit : 20:28

        PeoplesP 1 Reply Last reply
        0
        • Enrico HesseE Enrico Hesse

          @Peoples Hallo,

          bei mir hat das Script nach Anpassung der Pfade hervorragend funktioniert. Meine Newbie Frage wäre, wie macht Ihr das wenn Ihr nicht nur die aktuelle Laufzeit heraus bekommen wollt sondern die Uhrzeit wo das Gerät fertig ist.

          Bsp:
          Zeitangabe vom Device in sec: 4600
          aktuelle Uhrzeit: 19:00 Uhr

          mit aktuellem Script: 1:28
          meine Anfrage wäre jetzt nach der Uhrzeit : 20:28

          PeoplesP Offline
          PeoplesP Offline
          Peoples
          wrote on last edited by
          #24

          @Enrico-Hesse
          Naja wenn du die Laufzeit in sekunden weist, musst du sie ja nur am Anfang dazu addieren und du bekommst die Uhrzeit wann es fertig ist.

          Oder habe ich da jetzt was falsch verstanden?

          Ich beantworte keine Fragen zu Themen via PN

          1 Reply Last reply
          0
          • SoundyS Offline
            SoundyS Offline
            Soundy
            wrote on last edited by
            #25

            Herzlichen Dank, folgendes Skript hat mir teilweise geholfen:

            // Quelle: https://forum.iobroker.net/topic/15033/erledigt-sekunden-in-stunden-und-minuten-anzeigen/13
            
            createState('javascript.0.octoprint.Restzeit',0, {type: 'string',name: 'Octoprint Restzeit'});
            
            on({id: 'octoprint.0.printjob.progress.printtime_left', change: "ne"}, function (dp) {
            //	var timenew = Math.floor(dp.state.val / 3600 )+'h'+Math.floor( (dp.state.val % 3600) / 60 )+'min';
            	var timenew = Math.floor(dp.state.val / 3600 )+':'+Math.floor( (dp.state.val % 3600) / 60 );
                	setState("javascript.0.octoprint.Restzeit",timenew);
            });
            

            Allerdings wird mir jetzt z.B. angezeigt

            Restzeit: 8:3

            Sollte natürlich 8 Stunden und 3 Minuten heissen, es geht mir dabei um die führende Null.

            Wie macht man denn das, wenn man keine/wenig Ahnung von JavaScript hat und normal eher Blockly nutzt. :-)

            Wäre super, wenn mir da jemand helfen kann. DANKE! :D

            J htreckslerH paul53P 3 Replies Last reply
            0
            • SoundyS Soundy

              Herzlichen Dank, folgendes Skript hat mir teilweise geholfen:

              // Quelle: https://forum.iobroker.net/topic/15033/erledigt-sekunden-in-stunden-und-minuten-anzeigen/13
              
              createState('javascript.0.octoprint.Restzeit',0, {type: 'string',name: 'Octoprint Restzeit'});
              
              on({id: 'octoprint.0.printjob.progress.printtime_left', change: "ne"}, function (dp) {
              //	var timenew = Math.floor(dp.state.val / 3600 )+'h'+Math.floor( (dp.state.val % 3600) / 60 )+'min';
              	var timenew = Math.floor(dp.state.val / 3600 )+':'+Math.floor( (dp.state.val % 3600) / 60 );
                  	setState("javascript.0.octoprint.Restzeit",timenew);
              });
              

              Allerdings wird mir jetzt z.B. angezeigt

              Restzeit: 8:3

              Sollte natürlich 8 Stunden und 3 Minuten heissen, es geht mir dabei um die führende Null.

              Wie macht man denn das, wenn man keine/wenig Ahnung von JavaScript hat und normal eher Blockly nutzt. :-)

              Wäre super, wenn mir da jemand helfen kann. DANKE! :D

              J Offline
              J Offline
              jwedenig
              Most Active
              wrote on last edited by
              #26

              @soundy

              Hi!

              Vielleicht kannst Du mir helfen:

              Ich habe das Skript auch eingebunden, nur leider zeigt mir VIS nur die Stunden an, nicht die Minuten!
              Hast Du da einen Tipp für mich?

              Danke
              Liebe Grüße
              Jürgen

              1 Reply Last reply
              0
              • SoundyS Soundy

                Herzlichen Dank, folgendes Skript hat mir teilweise geholfen:

                // Quelle: https://forum.iobroker.net/topic/15033/erledigt-sekunden-in-stunden-und-minuten-anzeigen/13
                
                createState('javascript.0.octoprint.Restzeit',0, {type: 'string',name: 'Octoprint Restzeit'});
                
                on({id: 'octoprint.0.printjob.progress.printtime_left', change: "ne"}, function (dp) {
                //	var timenew = Math.floor(dp.state.val / 3600 )+'h'+Math.floor( (dp.state.val % 3600) / 60 )+'min';
                	var timenew = Math.floor(dp.state.val / 3600 )+':'+Math.floor( (dp.state.val % 3600) / 60 );
                    	setState("javascript.0.octoprint.Restzeit",timenew);
                });
                

                Allerdings wird mir jetzt z.B. angezeigt

                Restzeit: 8:3

                Sollte natürlich 8 Stunden und 3 Minuten heissen, es geht mir dabei um die führende Null.

                Wie macht man denn das, wenn man keine/wenig Ahnung von JavaScript hat und normal eher Blockly nutzt. :-)

                Wäre super, wenn mir da jemand helfen kann. DANKE! :D

                htreckslerH Offline
                htreckslerH Offline
                htrecksler
                Forum Testing
                wrote on last edited by
                #27

                @soundy
                Diese Funktion ergänzt die führende Null

                function addZero(i) {
                    if (i < 10) {
                        i = "0" + i;
                    }
                    return i;
                }
                

                Gruss Hermann

                ioBroker auf Proxmox (Debian) auf IntelNuc als Produktivsystem

                J 1 Reply Last reply
                0
                • htreckslerH htrecksler

                  @soundy
                  Diese Funktion ergänzt die führende Null

                  function addZero(i) {
                      if (i < 10) {
                          i = "0" + i;
                      }
                      return i;
                  }
                  
                  J Offline
                  J Offline
                  jwedenig
                  Most Active
                  wrote on last edited by
                  #28

                  @htrecksler
                  ich werde es versuchen! Vielen Dank!

                  1 Reply Last reply
                  0
                  • SoundyS Soundy

                    Herzlichen Dank, folgendes Skript hat mir teilweise geholfen:

                    // Quelle: https://forum.iobroker.net/topic/15033/erledigt-sekunden-in-stunden-und-minuten-anzeigen/13
                    
                    createState('javascript.0.octoprint.Restzeit',0, {type: 'string',name: 'Octoprint Restzeit'});
                    
                    on({id: 'octoprint.0.printjob.progress.printtime_left', change: "ne"}, function (dp) {
                    //	var timenew = Math.floor(dp.state.val / 3600 )+'h'+Math.floor( (dp.state.val % 3600) / 60 )+'min';
                    	var timenew = Math.floor(dp.state.val / 3600 )+':'+Math.floor( (dp.state.val % 3600) / 60 );
                        	setState("javascript.0.octoprint.Restzeit",timenew);
                    });
                    

                    Allerdings wird mir jetzt z.B. angezeigt

                    Restzeit: 8:3

                    Sollte natürlich 8 Stunden und 3 Minuten heissen, es geht mir dabei um die führende Null.

                    Wie macht man denn das, wenn man keine/wenig Ahnung von JavaScript hat und normal eher Blockly nutzt. :-)

                    Wäre super, wenn mir da jemand helfen kann. DANKE! :D

                    paul53P Offline
                    paul53P Offline
                    paul53
                    wrote on last edited by
                    #29

                    @soundy sagte: normal eher Blockly nutzt.

                    Bild_2021-12-31_150245.png

                    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

                    J 1 Reply Last reply
                    0
                    • paul53P paul53

                      @soundy sagte: normal eher Blockly nutzt.

                      Bild_2021-12-31_150245.png

                      J Offline
                      J Offline
                      jwedenig
                      Most Active
                      wrote on last edited by
                      #30

                      @paul53
                      danke, versuche ich auch mal

                      J 1 Reply Last reply
                      0
                      • J jwedenig

                        @paul53
                        danke, versuche ich auch mal

                        J Offline
                        J Offline
                        jwedenig
                        Most Active
                        wrote on last edited by
                        #31

                        @jwedenig sagte in [erledigt] Sekunden in Stunden und Minuten anzeigen.:

                        @paul53
                        danke, versuche ich auch mal

                        hast du das auch als export?:-)

                        paul53P 1 Reply Last reply
                        0
                        • J jwedenig

                          @jwedenig sagte in [erledigt] Sekunden in Stunden und Minuten anzeigen.:

                          @paul53
                          danke, versuche ich auch mal

                          hast du das auch als export?:-)

                          paul53P Offline
                          paul53P Offline
                          paul53
                          wrote on last edited by
                          #32

                          @jwedenig sagte: hast du das auch als export?

                          <xml xmlns="https://developers.google.com/blockly/xml">
                           <variables>
                             <variable id="$.M0?iK+.B`bvmx+C|pY">std</variable>
                             <variable id="@+[FT%;i=e=Ai.,7LqzA">min</variable>
                           </variables>
                           <block type="comment" id="ux|cy:%T)-mz-FlcF`Zc" x="88" y="-213">
                             <field name="COMMENT">Restzeit in s</field>
                             <next>
                               <block type="on_ext" id=":A~Bmi[/+O8OV5{,Bvtb">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                 <field name="CONDITION">ne</field>
                                 <field name="ACK_CONDITION"></field>
                                 <value name="OID0">
                                   <shadow type="field_oid" id="c|^2ZCrSGGR2er%P-5,K">
                                     <field name="oid">default</field>
                                   </shadow>
                                 </value>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="q/K!zwUUe^K?yfLT^lhe">
                                     <field name="VAR" id="$.M0?iK+.B`bvmx+C|pY">std</field>
                                     <value name="VALUE">
                                       <block type="math_round" id="Ve?vh^)l01Euw~Lm~/9%">
                                         <field name="OP">ROUNDDOWN</field>
                                         <value name="NUM">
                                           <shadow type="math_number" id="Y`F.)y[F`%CI}CKte%Ym">
                                             <field name="NUM">3.1</field>
                                           </shadow>
                                           <block type="math_arithmetic" id="?5!o*d1[MhB9%rn4l[Mr">
                                             <field name="OP">DIVIDE</field>
                                             <value name="A">
                                               <shadow type="math_number" id="/fUYc~sUo]f*)FQ]tKOY">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                               <block type="on_source" id="+eTu0P`zy#5:J^+=6Wph">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <shadow type="math_number" id="n#=+Y,Dd/ZntsL1px6VN">
                                                 <field name="NUM">3600</field>
                                               </shadow>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="1JK[3V6?dxmW-P*NX#8{">
                                         <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                         <value name="VALUE">
                                           <block type="math_round" id="avtkeoQFTFqg%BfgAS]c">
                                             <field name="OP">ROUND</field>
                                             <value name="NUM">
                                               <shadow type="math_number" id="4;iP5+X-S?^B=n11B,G,">
                                                 <field name="NUM">3.1</field>
                                               </shadow>
                                               <block type="math_arithmetic" id="?q}%zI1Z)|1#nc$fw%(m">
                                                 <field name="OP">DIVIDE</field>
                                                 <value name="A">
                                                   <shadow type="math_number" id="~=F+r%$n^pu*ES3w0e4l">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="math_modulo" id="g6|9}$Syl2ljZ8JU#hBQ">
                                                     <value name="DIVIDEND">
                                                       <shadow type="math_number" id="i$p3q9jV8JJKiH3B%e(Y">
                                                         <field name="NUM">64</field>
                                                       </shadow>
                                                       <block type="on_source" id="-uv!@X71m~GhBi,%He]x">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <value name="DIVISOR">
                                                       <shadow type="math_number" id="OfAq24UimhG[zvwc:UkS">
                                                         <field name="NUM">3600</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <shadow type="math_number" id="NCbLhCx4yyUHeMMpv`wM">
                                                     <field name="NUM">60</field>
                                                   </shadow>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="controls_if" id="#ecy0Lnv|pZt`CVNUq~h">
                                             <value name="IF0">
                                               <block type="logic_compare" id="U85d{^`SdK,Qa[uSxaH9">
                                                 <field name="OP">LT</field>
                                                 <value name="A">
                                                   <block type="variables_get" id="{4,WdwdA!B-c%l(q[C{x">
                                                     <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id=";8dUItv$@D$:Te01[Awd">
                                                     <field name="NUM">10</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="variables_set" id="PY_]b}CkJJgVKErhIP-_">
                                                 <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                 <value name="VALUE">
                                                   <block type="text_join" id="6V@CMp8NY22x$~3`%Qiu" inline="true">
                                                     <mutation items="2"></mutation>
                                                     <value name="ADD0">
                                                       <block type="text" id="w{Q*5?E`G`d)|o@vYz8L">
                                                         <field name="TEXT">0</field>
                                                       </block>
                                                     </value>
                                                     <value name="ADD1">
                                                       <block type="variables_get" id="[!Ocff8RW(?;:kRer,6m">
                                                         <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="update" id="O:/S24Qd)Nrny|YY-s=]">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">Object ID</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="text_join" id="Ex$P_SpVAb/H7V:m7PJi" inline="true">
                                                     <mutation items="3"></mutation>
                                                     <value name="ADD0">
                                                       <block type="variables_get" id="TS-1`||iSfMlKsR2z3{Y">
                                                         <field name="VAR" id="$.M0?iK+.B`bvmx+C|pY">std</field>
                                                       </block>
                                                     </value>
                                                     <value name="ADD1">
                                                       <block type="text" id="c~2]q%O/kFUNJ*ZV6+dM">
                                                         <field name="TEXT">:</field>
                                                       </block>
                                                     </value>
                                                     <value name="ADD2">
                                                       <block type="variables_get" id="P1Wjs{|dz(fbKc1@|h}O">
                                                         <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                          </xml>
                          

                          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

                          J 1 Reply Last reply
                          0
                          • paul53P paul53

                            @jwedenig sagte: hast du das auch als export?

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <variables>
                               <variable id="$.M0?iK+.B`bvmx+C|pY">std</variable>
                               <variable id="@+[FT%;i=e=Ai.,7LqzA">min</variable>
                             </variables>
                             <block type="comment" id="ux|cy:%T)-mz-FlcF`Zc" x="88" y="-213">
                               <field name="COMMENT">Restzeit in s</field>
                               <next>
                                 <block type="on_ext" id=":A~Bmi[/+O8OV5{,Bvtb">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                   <field name="CONDITION">ne</field>
                                   <field name="ACK_CONDITION"></field>
                                   <value name="OID0">
                                     <shadow type="field_oid" id="c|^2ZCrSGGR2er%P-5,K">
                                       <field name="oid">default</field>
                                     </shadow>
                                   </value>
                                   <statement name="STATEMENT">
                                     <block type="variables_set" id="q/K!zwUUe^K?yfLT^lhe">
                                       <field name="VAR" id="$.M0?iK+.B`bvmx+C|pY">std</field>
                                       <value name="VALUE">
                                         <block type="math_round" id="Ve?vh^)l01Euw~Lm~/9%">
                                           <field name="OP">ROUNDDOWN</field>
                                           <value name="NUM">
                                             <shadow type="math_number" id="Y`F.)y[F`%CI}CKte%Ym">
                                               <field name="NUM">3.1</field>
                                             </shadow>
                                             <block type="math_arithmetic" id="?5!o*d1[MhB9%rn4l[Mr">
                                               <field name="OP">DIVIDE</field>
                                               <value name="A">
                                                 <shadow type="math_number" id="/fUYc~sUo]f*)FQ]tKOY">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="on_source" id="+eTu0P`zy#5:J^+=6Wph">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <shadow type="math_number" id="n#=+Y,Dd/ZntsL1px6VN">
                                                   <field name="NUM">3600</field>
                                                 </shadow>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="1JK[3V6?dxmW-P*NX#8{">
                                           <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                           <value name="VALUE">
                                             <block type="math_round" id="avtkeoQFTFqg%BfgAS]c">
                                               <field name="OP">ROUND</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="4;iP5+X-S?^B=n11B,G,">
                                                   <field name="NUM">3.1</field>
                                                 </shadow>
                                                 <block type="math_arithmetic" id="?q}%zI1Z)|1#nc$fw%(m">
                                                   <field name="OP">DIVIDE</field>
                                                   <value name="A">
                                                     <shadow type="math_number" id="~=F+r%$n^pu*ES3w0e4l">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="math_modulo" id="g6|9}$Syl2ljZ8JU#hBQ">
                                                       <value name="DIVIDEND">
                                                         <shadow type="math_number" id="i$p3q9jV8JJKiH3B%e(Y">
                                                           <field name="NUM">64</field>
                                                         </shadow>
                                                         <block type="on_source" id="-uv!@X71m~GhBi,%He]x">
                                                           <field name="ATTR">state.val</field>
                                                         </block>
                                                       </value>
                                                       <value name="DIVISOR">
                                                         <shadow type="math_number" id="OfAq24UimhG[zvwc:UkS">
                                                           <field name="NUM">3600</field>
                                                         </shadow>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <shadow type="math_number" id="NCbLhCx4yyUHeMMpv`wM">
                                                       <field name="NUM">60</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="controls_if" id="#ecy0Lnv|pZt`CVNUq~h">
                                               <value name="IF0">
                                                 <block type="logic_compare" id="U85d{^`SdK,Qa[uSxaH9">
                                                   <field name="OP">LT</field>
                                                   <value name="A">
                                                     <block type="variables_get" id="{4,WdwdA!B-c%l(q[C{x">
                                                       <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id=";8dUItv$@D$:Te01[Awd">
                                                       <field name="NUM">10</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO0">
                                                 <block type="variables_set" id="PY_]b}CkJJgVKErhIP-_">
                                                   <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                   <value name="VALUE">
                                                     <block type="text_join" id="6V@CMp8NY22x$~3`%Qiu" inline="true">
                                                       <mutation items="2"></mutation>
                                                       <value name="ADD0">
                                                         <block type="text" id="w{Q*5?E`G`d)|o@vYz8L">
                                                           <field name="TEXT">0</field>
                                                         </block>
                                                       </value>
                                                       <value name="ADD1">
                                                         <block type="variables_get" id="[!Ocff8RW(?;:kRer,6m">
                                                           <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </statement>
                                               <next>
                                                 <block type="update" id="O:/S24Qd)Nrny|YY-s=]">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">Object ID</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="text_join" id="Ex$P_SpVAb/H7V:m7PJi" inline="true">
                                                       <mutation items="3"></mutation>
                                                       <value name="ADD0">
                                                         <block type="variables_get" id="TS-1`||iSfMlKsR2z3{Y">
                                                           <field name="VAR" id="$.M0?iK+.B`bvmx+C|pY">std</field>
                                                         </block>
                                                       </value>
                                                       <value name="ADD1">
                                                         <block type="text" id="c~2]q%O/kFUNJ*ZV6+dM">
                                                           <field name="TEXT">:</field>
                                                         </block>
                                                       </value>
                                                       <value name="ADD2">
                                                         <block type="variables_get" id="P1Wjs{|dz(fbKc1@|h}O">
                                                           <field name="VAR" id="@+[FT%;i=e=Ai.,7LqzA">min</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                            </xml>
                            

                            J Offline
                            J Offline
                            jwedenig
                            Most Active
                            wrote on last edited by jwedenig
                            #33

                            @paul53
                            Wäre dass dann so richtig?

                            Bildschirmfoto 2022-01-02 um 16.59.56.png

                            Es kommt dann aber leider nicht die richtige Zahl sondern ein 0:NANs.

                            paul53P 1 Reply Last reply
                            0
                            • J jwedenig

                              @paul53
                              Wäre dass dann so richtig?

                              Bildschirmfoto 2022-01-02 um 16.59.56.png

                              Es kommt dann aber leider nicht die richtige Zahl sondern ein 0:NANs.

                              paul53P Offline
                              paul53P Offline
                              paul53
                              wrote on last edited by paul53
                              #34

                              @jwedenig sagte: Wäre dass dann so richtig?

                              Der Datenpunkt, in den ein String "hh:mm" geschrieben wird, muss ein anderer sein, als der Trigger-Datenpunkt, der eine Zahl (Restzeit in s) enthält.
                              Wert wurde aus den Trigger-Blöcken genommen?

                              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

                              J 1 Reply Last reply
                              0
                              • paul53P paul53

                                @jwedenig sagte: Wäre dass dann so richtig?

                                Der Datenpunkt, in den ein String "hh:mm" geschrieben wird, muss ein anderer sein, als der Trigger-Datenpunkt, der eine Zahl (Restzeit in s) enthält.
                                Wert wurde aus den Trigger-Blöcken genommen?

                                J Offline
                                J Offline
                                jwedenig
                                Most Active
                                wrote on last edited by
                                #35

                                @paul53

                                ja, super, der Datenpunkt ist jetzt korrekt.

                                Jetzt zeigt mir VIS aber nur ein 0 an, es sollte 0:05 aber zu sehen sein, ich habe basic number gewählt, ist das korrekt?
                                Welche Einstellung habe ich übersehen?

                                paul53P 1 Reply Last reply
                                0
                                • J jwedenig

                                  @paul53

                                  ja, super, der Datenpunkt ist jetzt korrekt.

                                  Jetzt zeigt mir VIS aber nur ein 0 an, es sollte 0:05 aber zu sehen sein, ich habe basic number gewählt, ist das korrekt?
                                  Welche Einstellung habe ich übersehen?

                                  paul53P Offline
                                  paul53P Offline
                                  paul53
                                  wrote on last edited by
                                  #36

                                  @jwedenig sagte: ich habe basic number gewählt, ist das korrekt?

                                  Vis ist nicht so meine Baustelle, aber "basic number" ist sicherlich falsch, da es sich um einen Text (string) handelt.

                                  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

                                  J 1 Reply Last reply
                                  0
                                  • paul53P paul53

                                    @jwedenig sagte: ich habe basic number gewählt, ist das korrekt?

                                    Vis ist nicht so meine Baustelle, aber "basic number" ist sicherlich falsch, da es sich um einen Text (string) handelt.

                                    J Offline
                                    J Offline
                                    jwedenig
                                    Most Active
                                    wrote on last edited by
                                    #37

                                    @paul53

                                    ja, das wars auch schon, super!

                                    Ich danke Dir recht herzlich, es funktioniert einwandfrei!!!!

                                    1 Reply Last reply
                                    0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    613

                                    Online

                                    32.8k

                                    Users

                                    82.7k

                                    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