Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige

    This topic has been deleted. Only users with topic management privileges can see it.
    • Negalein
      Negalein Global Moderator @Snapergy last edited by

      @Snapergy sagte in [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige:

      wo ich den UDP Port ändern kann

      https://www.synology.com/de-de/knowledgebase/DSM/help/AudioStation/AudioStation2_desc

      S 1 Reply Last reply Reply Quote 0
      • S
        Snapergy @Negalein last edited by

        @Negalein

        da kann man leider nur die http-Ports ändern 😞 den UDP-Port nicht, oder ich bin noch zu laienhaft unterwegs.

        Negalein 1 Reply Last reply Reply Quote 0
        • Negalein
          Negalein Global Moderator @Snapergy last edited by

          @Snapergy sagte in [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige:

          da kann man leider nur die http-Ports ändern

          das passt schon so.
          Port ist Port.
          Ob der jetzt für UDP oder HTTP ist, ist im Endeffekt egal.
          Problem ist nur, dass der belegt ist. Deshalb ändere ihn mal.

          S 1 Reply Last reply Reply Quote 0
          • S
            Snapergy @Negalein last edited by

            @Negalein

            habe sowohl den http als auch den https port geändert. wenn ich jetzt die portweiterleitung im docker von 1900 auf 1900 udp einrichten will, kommt folgender fehler

            driver failed programming external connectivity on endpoint iobroker (22496d974e2263245661ba7db9171a1b87d92593d98964b2b80bf65d87a36e18): Error starting userland proxy: listen udp 0.0.0.0:1900: bind: address already in use
            
            Negalein 1 Reply Last reply Reply Quote 0
            • Negalein
              Negalein Global Moderator @Snapergy last edited by

              @Snapergy sagte in [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige:

              kommt folgender fehler

              Port 1900 ist noch in Verwendung

              Welchen port hast du geändert?

              Synology neu gestartet?

              S 1 Reply Last reply Reply Quote 0
              • S
                Snapergy @Negalein last edited by

                @Negalein

                Unbenannt.png image url)

                1 Reply Last reply Reply Quote 0
                • W
                  WernerS last edited by Negalein

                  Hallo

                  also bei mir macht der conjob beim UPNP Adapter auch Probleme. Mal gehts mal nicht.

                  ich habe jetzt auch das script genommen

                  schedule("*/10 * * * * *",  function () { 	   
                  	setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.request",'send');	   
                  	});
                  

                  bekomme aber im log folgendes

                  javascript.0	2019-12-25 16:27:40.011	warn	(23808) at Timer.processTimers (timers.js:223:10)
                  javascript.0	2019-12-25 16:27:40.010	warn	(23808) at listOnTimeout (timers.js:263:5)
                  javascript.0	2019-12-25 16:27:40.009	warn	(23808) at tryOnTimeout (timers.js:300:5)
                  javascript.0	2019-12-25 16:27:40.009	warn	(23808) at ontimeout (timers.js:436:11)
                  javascript.0	2019-12-25 16:27:40.008	warn	(23808) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:501:7)
                  javascript.0	2019-12-25 16:27:40.008	warn	(23808) at /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:543:11
                  javascript.0	2019-12-25 16:27:40.007	warn	(23808) at Job.invoke (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:173:10)
                  javascript.0	2019-12-25 16:27:40.007	warn	(23808) at Job.nodeSchedule.scheduleJob [as job] (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1181:34)
                  javascript.0	2019-12-25 16:27:40.006	warn	(23808) at Object.<anonymous> (script.js.common.FritzBox_UPNP_request:3:2)
                  javascript.0	2019-12-25 16:27:40.005	warn	(23808) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                  javascript.0	2019-12-25 16:27:40.003	warn	(23808) Wrong type of upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.request: "string". Please fix, while deprecated and will not work in next versions.
                  

                  Weiss da jemand was da nicht stimmt?

                  Gruß
                  Werner

                  Mod-Edit: Code/Log in Code Tags gepackt. Bitte benutzt die Code Tags Funktion -> </>
                  Hier gehts zur Hilfe.

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    WernerS @WernerS last edited by

                    Hallo

                    ich habe es jetzt in Blockly das Script selbst gemacht.
                    Jetzt geht es.

                    Gruß
                    Werner

                    1 Reply Last reply Reply Quote 0
                    • S
                      StefanW last edited by

                      Hallo,

                      bei mir ist da irgendwo der Wurm drin, hab noch für keine View annähernd soviel Zeit reingesteckt und es funktioniert immer noch nicht.

                      Ich hole mir die Daten über das Script, nachdem es mit dem Cron Job nicht zuverlässig funktioniert hat.
                      Allerdings setzt sich der Zähler bei ca. 4,2 GB immer wieder auf 0 zurück.
                      Weiter oben wurde sowas schon mal angesprochen, allerdings habe ich dann keine Lösung gefunden.

                      4_2_reset.jpg

                      Würde mich über jeden Tipp freuen, Danke schon mal.

                      Stefan

                      N 1 Reply Last reply Reply Quote 0
                      • Blacky 90
                        Blacky 90 last edited by

                        Hi zusammen,
                        kann mir von euch wer das Blockly-Script exportieren?
                        801aef32-c4fa-4ab4-8516-4f7a4504e01a-image.png

                        Dankeschön

                        Nashra 1 Reply Last reply Reply Quote 0
                        • Nashra
                          Nashra Most Active Forum Testing @Blacky 90 last edited by

                          @Blacky-90 sagte in [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige:

                          Hi zusammen,
                          kann mir von euch wer das Blockly-Script exportieren?
                          801aef32-c4fa-4ab4-8516-4f7a4504e01a-image.png

                          Dankeschön

                          Bitte sehr

                          <xml xmlns="http://www.w3.org/1999/xhtml">
                           <variables>
                             <variable type="undefined" id="timeout">timeout</variable>
                           </variables>
                           <block type="timeouts_settimeout" id="D/K?1u=Sz1!?X|fg@{sY" x="-487" y="-37">
                             <field name="NAME">timeout</field>
                             <field name="DELAY">5</field>
                             <field name="UNIT">sec</field>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="oYt;u=HOJ%GqIsrzW!+Q">
                                 <mutation elseif="1"></mutation>
                                 <value name="IF0">
                                   <block type="logic_operation" id="d,pN1@L.7ge-3mKzk%@~">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="logic_compare" id="mwL2dV/WRxuy5.UN(V}j">
                                         <field name="OP">EQ</field>
                                         <value name="A">
                                           <block type="get_value" id="Ej5M^b++V=%t*D(va%GO">
                                             <field name="ATTR">val</field>
                                             <field name="OID">upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetCommonLinkProperties.NewPhysicalLinkStatus</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="text" id="CM5X.2XHtb7FqJl/W#qD">
                                             <field name="TEXT">Up</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_compare" id="X/.s?%558Z^zfKgw@~+y">
                                         <field name="OP">EQ</field>
                                         <value name="A">
                                           <block type="get_value" id="Pu8HMM8{z8LNU|n?w}=o">
                                             <field name="ATTR">val</field>
                                             <field name="OID">upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetStatusInfo.NewConnectionStatus</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="text" id="#PNsWBEv+i+SwIP[*84k">
                                             <field name="TEXT">Connected</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="|QV;^(qQH9o`dC7gzvX-">
                                     <mutation delay_input="false"></mutation>
                                     <field name="OID">admin.0.Onlinestatus</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="C(L2!T#{S-#rZNL]kvSl">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <value name="IF1">
                                   <block type="logic_operation" id="`@,(S9A52p6h_m4CArp%">
                                     <field name="OP">OR</field>
                                     <value name="A">
                                       <block type="logic_compare" id="zK2et|69Gy:j`YlFOX1I">
                                         <field name="OP">EQ</field>
                                         <value name="A">
                                           <block type="get_value" id="7eM].E7tK)nA=ja*BJd2">
                                             <field name="ATTR">val</field>
                                             <field name="OID">upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetCommonLinkProperties.NewPhysicalLinkStatus</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="text" id="V`u93]me^yJEN!%.0{WP">
                                             <field name="TEXT">Down</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_compare" id="BU3SSo*eOq^-r6HW^%ka">
                                         <field name="OP">EQ</field>
                                         <value name="A">
                                           <block type="get_value" id="NV=r!8V!pr=zluF)jf:o">
                                             <field name="ATTR">val</field>
                                             <field name="OID">upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetStatusInfo.NewConnectionStatus</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="text" id="/TwlZ%8Qwd,WO6U?*3f(">
                                             <field name="TEXT">Disconnected</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO1">
                                   <block type="control" id="/b25LLgbt2vBt_[j3/qo">
                                     <mutation delay_input="false"></mutation>
                                     <field name="OID">admin.0.Onlinestatus</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="Hj}LM:DGZZKdKSU7EY|W">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                          </xml>
                          

                          K 1 Reply Last reply Reply Quote 1
                          • K
                            Kuddel @Nashra last edited by

                            Hallo zusammen,

                            die Total-Werte vom UPNP Adapter und dem Online-Zähler in meiner FB weichen voneinander ab.

                            habe ich evtl einen Fehler gemacht?

                            Für welchen Zeitraum geleten die Werte in UPNP ?

                            sigi234 1 Reply Last reply Reply Quote 0
                            • sigi234
                              sigi234 Forum Testing Most Active @Kuddel last edited by

                              @Kuddel sagte in [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige:

                              Hallo zusammen,

                              die Total-Werte vom UPNP Adapter und dem Online-Zähler in meiner FB weichen voneinander ab.

                              habe ich evtl einen Fehler gemacht?

                              Für welchen Zeitraum geleten die Werte in UPNP ?

                              https://www.techbook.de/easylife/unterschied-megabyte-megabit

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                Kuddel @sigi234 last edited by Kuddel

                                @sigi234 also sind die werte im UPNP Adapter alle in Byte und die Werte in der FritzBox in Megabyte?

                                Somit muss ich die werte nur von Byte in z.B. Gigabyte umrechnen?

                                1 Reply Last reply Reply Quote 0
                                • Zandrial
                                  Zandrial last edited by Zandrial

                                  Ich hab das heute auch mal umgesetzt und bei meiner FB 7490 musste ich im blockly update teil teils ganz andere bzw. erweiterte werte nehmen:

                                     setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.request",'send');
                                     setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetCommonLinkProperties.request",'send');
                                     setState( "upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetExternalIPAddress.request",'send');
                                     setState( "upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetStatusInfo.request",'send');
                                  

                                  quasi immer auf den request-button drücken... läuft und werte sind auch mehr oder weniger richtig 😄

                                  EDIT: hab 'send' durch ein einfaches true ersetzt... ioBroker hat mir aufgrund von variablen inkompabilität das log zugemüllt(zu recht) ;D

                                  P 1 Reply Last reply Reply Quote 0
                                  • B
                                    bishop last edited by

                                    ich weis nicht ob ich hier richtig bin, habe nur eine kleine frage ob das mit dem upnp Adapter möglich ist!

                                    fritzbox_jan_zeit.jpg

                                    ich möchte gerne die Onlinezeit die mein Sohn noch zur Verfügung hat (Blauer balken)
                                    auslesen.
                                    Geht das mit diesem Adapter?

                                    vielen Dank schon mal

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kekz last edited by

                                      Hallo zusammen,

                                      ich erhalte beim Up- und Downstream von der Fritzbox Werte, die nicht mit denen des Downloadmanagers übereinstimmen.
                                      Laut Fritzbox 7590 besteht eine DSL-Sync mit 63,7Mbit/s. Das würde etwa 7,96MB/s bei Vollauslastung entsprechen.
                                      In iobroker wird auch in etwa dieser Wert übermittelt.
                                      Im Windows Downloadmanager wird stets ein Maximum von 6,7MB/s angezeigt, also eine recht große Differenz.
                                      Ich frage mich, wie diese zustande kommt. Ist es ein Umrechnungsproblem, ist es ein Overhead? 😕

                                      Umgerechnet wurde wahlweise multipliziert mit 0.00000095367432 oder mit 0.000001.
                                      Beide Werte stimmen nicht mit dem Downloadmanager überein.

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        JavaMafia last edited by

                                        Hallo zusammen,

                                        nutze gerade die Zeit wie einige von euch, mich weiter mit der VIS zu beschäftigen.
                                        Bin gerade dabei mein Netzwerk dazustellen. Bei der Onlinezeit der FritzBox komme ich gerade nicht weiter.

                                        Ich habe eine Blockly geschrieben, was mir die Tage und Stunden anzeigt. Leider kommen ich bei den Minuten nicht weiter, vielleicht hat hier jemand eine Idee.

                                        code_text<block xmlns="http://www.w3.org/1999/xhtml" type="create" id="{?O:rM8$?%.Ff./^sXgi" x="37" y="463">
                                          <field name="NAME">javascript.0.ioBroker_VIS.FritzBox.OnlineZeit.Tage</field>
                                          <statement name="STATEMENT">
                                            <block type="timeouts_setinterval" id="$G+V*klFs:NIzz3KJUW4">
                                              <field name="NAME">Intervall2</field>
                                              <field name="INTERVAL">10</field>
                                              <field name="UNIT">sec</field>
                                              <statement name="STATEMENT">
                                                <block type="variables_set" id="0sJaAgOLS}GV:;BnXLC3">
                                                  <field name="VAR" id="wb*!38V[KZC3Hx:2%:@g" variabletype="">60</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="[Kh0ER3^kjHq]?THcGoh">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="^dKUmsJ0k|;F4I9Y]EX5">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="dE^BJn^Se5fd]1s73e=T">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">upnp.0.WANConnectionDevice_-_FRITZ!Box_6591_Cable.WANDevice.WANConnectionDevice.WANIPConnection.GetStatusInfo.NewUptime</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="F^Fx9b7%DglA~j;9v@ai">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_number" id="w`K4|h5{1eI!sTGpD9Bg">
                                                          <field name="NUM">60</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="B[ts/|-_N][|hE2?Lp8)">
                                                      <field name="VAR" id="FkG4/{K5?[pQ$]T;FZvE" variabletype="">602</field>
                                                      <value name="VALUE">
                                                        <block type="math_arithmetic" id="0S(#FFqT4+,Iqv[W,ZXw">
                                                          <field name="OP">DIVIDE</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="^dKUmsJ0k|;F4I9Y]EX5">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="![-%i^?,dmVo]8e-32yy">
                                                              <field name="VAR" id="wb*!38V[KZC3Hx:2%:@g" variabletype="">60</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="lsQ+xF$/NcT/f6^IL;kf">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_number" id="{UWT)Jp^mNkQe|3q71}T">
                                                              <field name="NUM">60</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="variables_set" id="UuXhs0E~U4Sm)LA!lx-)">
                                                          <field name="VAR" id="i+M+B{Xa,kNFU9D_NE,8" variabletype="">24</field>
                                                          <value name="VALUE">
                                                            <block type="math_arithmetic" id="qDtkZDnV`-MjRXS~@xW:">
                                                              <field name="OP">DIVIDE</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="^dKUmsJ0k|;F4I9Y]EX5">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="variables_get" id="MSnU|myt8wbS~idKub1!">
                                                                  <field name="VAR" id="FkG4/{K5?[pQ$]T;FZvE" variabletype="">602</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="lsQ+xF$/NcT/f6^IL;kf">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_number" id="0Rl`4m0x}-(5Db{zEh+x">
                                                                  <field name="NUM">24</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="variables_set" id="wGsb)%49dZCnxZ.9(Bc1">
                                                              <field name="VAR" id="b9)79N}]wG,cgnT^XCI$" variabletype="">Tage</field>
                                                              <value name="VALUE">
                                                                <block type="math_round" id="uRQtR/X`?/s5T:|AEO+p">
                                                                  <field name="OP">ROUNDDOWN</field>
                                                                  <value name="NUM">
                                                                    <shadow type="math_number" id=":]`f`{PI.X.7_PcK5Qr~">
                                                                      <field name="NUM">3.1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="C97HX?PqjmhL*I-Ky3WR">
                                                                      <field name="VAR" id="i+M+B{Xa,kNFU9D_NE,8" variabletype="">24</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="variables_set" id="i,P6?-k}kEy:a[?E{j+C">
                                                                  <field name="VAR" id="?Xi#iU7m@~/6nG^BIq3;" variabletype="">TageInZahl</field>
                                                                  <value name="VALUE">
                                                                    <block type="convert_from_date" id="oFd%h5)Nru/2^~6Up$2v">
                                                                      <mutation format="false" language="false"></mutation>
                                                                      <field name="OPTION">DD.MM.YYYY</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_arithmetic" id="sSH9^zQ!Zx4PUvsF%6]Q" inline="false">
                                                                          <field name="OP">MINUS</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="8@kn6N#.]TJoch:gg1QS">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="time_get" id="w4i4YXE+~#WJi,merFwA">
                                                                              <mutation format="false" language="false"></mutation>
                                                                              <field name="OPTION">object</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="8_f=+!=2Cc4ZnBhUc)z$">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id=".f;z}PwrU%jxnCB9[tju">
                                                                              <field name="OP">MULTIPLY</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="L6CVl/DHr`w9??D2R5@i">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="math_number" id="-D)0u.bxa@8OK`hmi[o4">
                                                                                  <field name="NUM">1000</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id=";+t?vL_RAe#:m5I]m)%3">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="{#O,K;omKqgDjrqtd}df">
                                                                                  <field name="VAR" id="b9)79N}]wG,cgnT^XCI$" variabletype="">Tage</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="variables_set" id="nnG#~7DwULSnb6rMPFXK">
                                                                      <field name="VAR" id="f4b:|5kN]K`_q*b/Ra(L" variabletype="">TageAbziehen</field>
                                                                      <value name="VALUE">
                                                                        <block type="convert_from_date" id="4ctn1t(mtn[laL=4K[GS">
                                                                          <mutation format="false" language="false"></mutation>
                                                                          <field name="OPTION">DD.MM.YYYY</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_arithmetic" id="r-d(_0V77pckHUAXUQ!i" inline="false">
                                                                              <field name="OP">MINUS</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="8@kn6N#.]TJoch:gg1QS">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="time_get" id="KA?4Q|52$$7Z5+#NWfL%">
                                                                                  <mutation format="false" language="false"></mutation>
                                                                                  <field name="OPTION">object</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="8_f=+!=2Cc4ZnBhUc)z$">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="N6|Njl}bQr-*N)Pwwex7">
                                                                                  <field name="VAR" id="?Xi#iU7m@~/6nG^BIq3;" variabletype="">TageInZahl</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="I)+w7-%20w#j`cjn5BIr">
                                                                          <mutation delay_input="false"></mutation>
                                                                          <field name="OID">javascript.0.ioBroker_VIS.FritzBox.OnlineZeit.Tage</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="variables_get" id="+YK6J51C@X{qVPjw9vbZ">
                                                                              <field name="VAR" id="b9)79N}]wG,cgnT^XCI$" variabletype="">Tage</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="control" id="YRKh7X{0*xRO@e`%w%rU">
                                                                              <mutation delay_input="false"></mutation>
                                                                              <field name="OID">javascript.0.ioBroker_VIS.FritzBox.OnlineZeit.Stunden</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_round" id="pt;3V6:|d=2Nb]:!PVUy">
                                                                                  <field name="OP">ROUNDDOWN</field>
                                                                                  <value name="NUM">
                                                                                    <shadow type="math_number" id="OGA#,NZGk=7I3-`I7SWs">
                                                                                      <field name="NUM">3.1</field>
                                                                                    </shadow>
                                                                                    <block type="math_modulo" id="i}16)b^@@3r{2%}Uv|}V">
                                                                                      <value name="DIVIDEND">
                                                                                        <shadow type="math_number" id="_Sy~8id?P]_gAs{KnO_i">
                                                                                          <field name="NUM">64</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="M+q,+{zE[c^yJv:Y+k?E">
                                                                                          <field name="VAR" id="FkG4/{K5?[pQ$]T;FZvE" variabletype="">602</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="DIVISOR">
                                                                                        <shadow type="math_number" id="E!,a5+!9M/}{wcgborR@">
                                                                                          <field name="NUM">10</field>
                                                                                        </shadow>
                                                                                        <block type="math_number" id="qZX?dBx3NXP}w+:L5Pu8">
                                                                                          <field name="NUM">24</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                        

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          Leviathan09 @JavaMafia last edited by

                                          @JavaMafia Ich versteh leider nicht mal deine bisherige Umrechnung und suche auch schon den ganzen Tag danach wie ich diesen Wert umrechnen kann.
                                          Könntest du mir evtl. kurz erklären wie der Uptime Wert aufgebaut ist und wie du den umrechnest?
                                          Bzw die Variablen 60,602,24 so berechnest wie du sie eben in deinem Blockly drin hast?
                                          Werde da nicht so ganz schlau draus.

                                          J 1 Reply Last reply Reply Quote 0
                                          • P
                                            Pihero @Zandrial last edited by

                                            @Zandrial said in [Tutorial] VIS Fritzbox Status & Up/Downloadanzeige:

                                            Ich hab das heute auch mal umgesetzt und bei meiner FB 7490 musste ich im blockly update teil teils ganz andere bzw. erweiterte werte nehmen:

                                               setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.request",'send');
                                               setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetCommonLinkProperties.request",'send');
                                               setState( "upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetExternalIPAddress.request",'send');
                                               setState( "upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetStatusInfo.request",'send');
                                            

                                            quasi immer auf den request-button drücken... läuft und werte sind auch mehr oder weniger richtig 😄

                                            EDIT: hab 'send' durch ein einfaches true ersetzt... ioBroker hat mir aufgrund von variablen inkompabilität das log zugemüllt(zu recht) ;D

                                            Servus,

                                            ich weiß nicht ob ich es richtig verstanden habe...habe auch die 7490

                                            schedule("*/10 * * * * *",  function () { 
                                               setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.request",'true');
                                               setState( "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetCommonLinkProperties.request",'true');
                                               setState( "upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetExternalIPAddress.request",'true');
                                               setState( "upnp.0.WANConnectionDevice_-_FRITZ!Box_7490.WANDevice.WANConnectionDevice.WANIPConnection.GetStatusInfo.request",'true');
                                            });
                                            

                                            Mein Log zeigt dann auch nen haufen Warnmeldungen:

                                            Bildschirmfoto 2020-04-04 um 22.00.59.png

                                            Danke vorab für eure Hilfe!

                                            Gruß, Philipp

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            791
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            98
                                            504
                                            107663
                                            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