Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Script für einen SpeedTest über speedtest.net

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Script für einen SpeedTest über speedtest.net

    This topic has been deleted. Only users with topic management privileges can see it.
    • RK62
      RK62 @Balu1973 last edited by

      @Balu1973 Das Formatproblem im neuen Forum scheint mit dem Browser zusammen zu hängen. Mit Chrome wird es richtig dargestellt. Ich habe es kopiert und hier angehängt: SpeedTest.txt

      Gruß, Ralf

      1 Reply Last reply Reply Quote 0
      • B
        Balu1973 last edited by

        Prima! Vielen Dank!

        Grüße,
        Balu

        1 Reply Last reply Reply Quote 0
        • K
          Kunibert @RK62 last edited by

          @RK62
          Vielen Dank Ralf, es scheint jetzt wieder zu funktionieren!

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

            @Kunibert
            Kann es sein das es auf Windows Systemen nicht geht?

            Screenshot (2093).png

            H 1 Reply Last reply Reply Quote 0
            • H
              helfi9999 @sigi234 last edited by

              @sigi234
              bekomme auch keine Daten habe einen Rock64.
              Datenfelder bleiben leer wie bei sigi234 auf dem Bild.

              H 1 Reply Last reply Reply Quote 0
              • H
                helfi9999 @helfi9999 last edited by

                Es dauert etwas dann erscheinen die Daten

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

                  @helfi9999 sagte in Script für einen SpeedTest über speedtest.net:

                  Es dauert etwas dann erscheinen die Daten

                  Leider kommt bei mir immer noch nichts..........

                  Wenn ich über Windows Konsole abfrage kommen die Daten aber.

                  Screenshot (2113)_LI.jpg

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sveni_lee @sigi234 last edited by

                    mir war aufgefallen, das meine Messungen aus dem iobroker nie mit den Messungen aus meinem Handy über einstimmen.
                    jetzt habe ich mal einen zweiten speedtest auf dem Linux-Rechner probiert:

                    svenilee@Gotham-City:~$ speed-test --jason --verbose
                           Ping   105 ms
                       Download   31 Mbps
                         Upload   8.2 Mbps
                         Server   speedtest.nornett.net
                       Location   Alta (Norway)
                       Distance   NaN km
                    

                    und speedtest-cli

                    svenilee@Gotham-City:~$ speedtest-cli
                    Retrieving speedtest.net configuration...
                    Retrieving speedtest.net server list...
                    Testing from Deutsche Telekom AG (xx.xx.xxx.xx)...
                    Selecting best server based on latency...
                    Hosted by Cronon AG (Berlin) [41.73 km]: 7.965 ms
                    Testing download speed........................................
                    Download: 45.24 Mbit/s
                    Testing upload speed..................................................
                    Upload: 9.09 Mbit/s
                    

                    das ist schon ein krasser unterschied

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

                      @sveni_lee

                      Ich glaube da liegt der Fehler bei mir:

                      javascript.0	2019-03-01 10:30:00.119	error	konnte nicht gefunden werden.
                      javascript.0	2019-03-01 10:30:00.119	error	script.js.Test.Speedtest: Der Befehl "speed-test" ist entweder falsch geschrieben oder
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sveni_lee @sigi234 last edited by

                        @sigi234

                        hast Du mall eine Messung mit dem Handy gemacht? nur zum Vergleich. ich habe mit dem Speedtest extreme Schwankungen seit zwei/drei Wochen.

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

                          Ich habe jetzt mal speed-deinstalliert und noch einmal neu installiert und jetzt bekomme ih auch wieder vernüftige Server und vor alles bessere Werte ☺

                          1 Reply Last reply Reply Quote 0
                          • T
                            tempestas last edited by

                            Ich habe, da auch bei mir die Daten überhaupt nicht mehr sinnig waren, das Paket erst deinstalliert udn dann neu installiert.

                            jetz bekomme ich nur noch

                            avascript.0	2019-03-29 08:52:33.522	error	2
                            javascript.0	2019-03-29 08:52:33.522	error	script.js.common.System.Internet: Speedtest Daten konnten nicht abgefragt werden
                            javascript.0	2019-03-29 08:52:33.522	error	at /usr/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:329:16
                            javascript.0	2019-03-29 08:52:33.522	error	at /usr/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:97:16
                            javascript.0	2019-03-29 08:52:33.522	error	at /usr/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:364:11
                            javascript.0	2019-03-29 08:52:33.522	error	at /usr/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:660:7
                            javascript.0	2019-03-29 08:52:33.522	error	at startDownload (/usr/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:683:10)
                            javascript.0	2019-03-29 08:52:33.522	error	at EventEmitter.emit (events.js:188:7)
                            javascript.0	2019-03-29 08:52:33.522	error	at emitOne (events.js:96:13)
                            javascript.0	2019-03-29 08:52:33.522	error	at EventEmitter.g (events.js:292:16)
                            javascript.0	2019-03-29 08:52:33.522	error	at EventEmitter.st.once.server (/usr/lib/node_modules/speed-test/cli.js:108:12)
                            javascript.0	2019-03-29 08:52:33.522	error	at map (/usr/lib/node_modules/speed-test/cli.js:93:16)
                            javascript.0	2019-03-29 08:52:33.522	error	TypeError: URL is not a constructor
                            javascript.0	2019-03-29 08:52:33.522	error	^
                            javascript.0	2019-03-29 08:52:33.522	error	server.host = new URL(server.url).host;
                            javascript.0	2019-03-29 08:52:33.522	error	script.js.common.System.Internet: /usr/lib/node_modules/speed-test/cli.js:93
                            

                            HELP pls? Ich rate mal, dass irgendwas mit der installation nicht korrekt war, aber ich habe null Ahnung, was Linux angeht. (ich tippe immer nur ab, was ich in Anleitungen finde)

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

                              Hey, install vom speed-test hat funktioniert. Script läuft auch, hat alle datenpunkte angelegt und
                              es werden auch Daten eingetragen. Nur im Log haut es mit Warn voll.

                              javascript.0 2019-03-29 12:00:46.670 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.670 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.669 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.669 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.669 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.669 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.669 warn at writeDP (script.js.Meine_Geräte.Speedtest:147:4)
                              javascript.0 2019-03-29 12:00:46.669 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.669 warn Wrong type of javascript.0.Status.Speed-Test.data.server.id: "string". Please fix, while deprecated and will not work in next versions.
                              javascript.0 2019-03-29 12:00:46.669 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.668 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.668 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.668 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.668 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.668 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.668 warn at writeDP (script.js.Meine_Geräte.Speedtest:145:4)
                              javascript.0 2019-03-29 12:00:46.668 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.668 warn State "javascript.0.Status.Speed-Test.data.server.distanceMI" not found
                              javascript.0 2019-03-29 12:00:46.668 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.668 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.667 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.667 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.667 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.667 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.667 warn at writeDP (script.js.Meine_Geräte.Speedtest:139:4)
                              javascript.0 2019-03-29 12:00:46.667 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.667 warn Wrong type of javascript.0.Status.Speed-Test.data.server.lon: "number". Please fix, while deprecated and will not work in next versions.
                              javascript.0 2019-03-29 12:00:46.667 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.667 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.662 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.662 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.662 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.662 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.662 warn at writeDP (script.js.Meine_Geräte.Speedtest:138:4)
                              javascript.0 2019-03-29 12:00:46.662 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.661 warn Wrong type of javascript.0.Status.Speed-Test.data.server.lat: "number". Please fix, while deprecated and will not work in next versions.
                              javascript.0 2019-03-29 12:00:46.661 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.661 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.661 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.661 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.661 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.661 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.661 warn at writeDP (script.js.Meine_Geräte.Speedtest:135:4)
                              javascript.0 2019-03-29 12:00:46.661 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.661 warn Wrong type of javascript.0.Status.Speed-Test.data.client.ispulavg: "undefined". Please fix, while deprecated and will not work in next versions.
                              javascript.0 2019-03-29 12:00:46.660 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.660 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.660 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.660 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.660 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.660 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.660 warn at writeDP (script.js.Meine_Geräte.Speedtest:130:4)
                              javascript.0 2019-03-29 12:00:46.660 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.660 warn Wrong type of javascript.0.Status.Speed-Test.data.client.lon: "number". Please fix, while deprecated and will not work in next versions.
                              javascript.0 2019-03-29 12:00:46.659 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                              javascript.0 2019-03-29 12:00:46.659 warn at maybeClose (internal/child_process.js:915:16)
                              javascript.0 2019-03-29 12:00:46.659 warn at ChildProcess.emit (events.js:214:7)
                              javascript.0 2019-03-29 12:00:46.659 warn at emitTwo (events.js:126:13)
                              javascript.0 2019-03-29 12:00:46.659 warn at ChildProcess.exithandler (child_process.js:273:7)
                              javascript.0 2019-03-29 12:00:46.659 warn at script.js.Meine_Geräte.Speedtest:66:1
                              javascript.0 2019-03-29 12:00:46.659 warn at writeDP (script.js.Meine_Geräte.Speedtest:129:4)
                              javascript.0 2019-03-29 12:00:46.659 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                              javascript.0 2019-03-29 12:00:46.658 warn Wrong type of javascript.0.Status.Speed-Test.data.client.lat: "number". Please fix, while deprecated and will not work in next versions.

                              Wie bekomme ich die Warn weg 😕

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                aleks-83 @Nashra last edited by aleks-83

                                @cybertron
                                Ich habe das gleiche Problem wie @Nashra , wie kann man das beseitigen?
                                Von Hand die Typen der betroffenen Datenpunkte ändern?

                                javascript.0 09.05.2019 10:30 info Stop script script.js.FritzBox.speedtest
                                javascript.0 2019-05-09 10:30:00.028 info script.js.FritzBox.speedtest: exec: speed-test --json --verbose
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.id, state="17392")
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:130:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn Wrong type of javascript.0.Status.Speed-Test.data.server.id: "string". Please fix, while deprecated and will not work in next versions.
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.ping, state=25.1)
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:128:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn State "javascript.0.Status.Speed-Test.data.server.distanceMI" not found
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.distance, state=135.4)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.sponsor, state="myLoc managed IT AG")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.cc, state="DE")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.country, state="Germany")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.location, state="Dusseldorf")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.lon, state=XXXX)
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:122:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn Wrong type of javascript.0.Status.Speed-Test.data.server.lon: "number". Please fix, while deprecated and will not work in next versions.
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.lat, state=XXXXX)
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:121:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn Wrong type of javascript.0.Status.Speed-Test.data.server.lat: "number". Please fix, while deprecated and will not work in next versions.
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.server.host, state="ookla.myloc.de:8080")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.ispulavg, state=undefined)
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:117:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn Wrong type of javascript.0.Status.Speed-Test.data.client.ispulavg: "undefined". Please fix, while deprecated and will not work in next versions.
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.ispdlavg, state=0)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.rating, state=0)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.isprating, state=3.7)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.isp, state="Deutsche Telekom AG")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.lon, state=8.6009)
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:112:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn Wrong type of javascript.0.Status.Speed-Test.data.client.lon: "number". Please fix, while deprecated and will not work in next versions.
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.lat, state=XXXX)
                                javascript.0 09.05.2019 10:29 warn at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                                javascript.0 09.05.2019 10:29 warn at maybeClose (internal/child_process.js:915:16)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.emit (events.js:214:7)
                                javascript.0 09.05.2019 10:29 warn at emitTwo (events.js:126:13)
                                javascript.0 09.05.2019 10:29 warn at ChildProcess.exithandler (child_process.js:273:7)
                                javascript.0 09.05.2019 10:29 warn at script.js.FritzBox.speedtest:45:1
                                javascript.0 09.05.2019 10:29 warn at writeDP (script.js.FritzBox.speedtest:111:4)
                                javascript.0 09.05.2019 10:29 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
                                javascript.0 09.05.2019 10:29 warn Wrong type of javascript.0.Status.Speed-Test.data.client.lat: "number". Please fix, while deprecated and will not work in next versions.
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.client.ip, state="XXXXXXX")
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.speeds.orginalUpload, state=1327716)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.speeds.orginalDownload, state=6599160)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.speeds.upload, state=12.098)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.data.speeds.download, state=59.92)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.upload, state=12.1)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.download, state=59.9)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.ping, state=25)
                                javascript.0 09.05.2019 10:29 info script.js.FritzBox.speedtest: setForeignState(id=javascript.0.Status.Speed-Test.json, state="{"ping":25,"download":59.9,"upload":12.1,"data":{"speeds":{"download":59.92,"upload":12.098,
                                javascript.0 2019-05-09 10:29:00.027 info script.js.FritzBox.speedtest: exec: speed-test --json --verbose

                                paul53 1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 @aleks-83 last edited by

                                  @aleks-83 sagte:

                                  Von Hand die Typen der betroffenen Datenpunkte ändern?

                                  Ja
                                  .id von "number" in "string"
                                  .lat, .long von "string" bzw. "long" in "number"

                                  1 Reply Last reply Reply Quote 1
                                  • A
                                    aleks-83 last edited by aleks-83

                                    OK, habe ich erledigt. Danke.
                                    Es gibt nur noch die Fehlermeldung zum

                                    Wrong type of javascript.0.Status.Speed-Test.data.client.ispulavg: "undefined".
                                    

                                    Obwohl dieser Punkt auf number steht.

                                    Und, kleiner Tipp: im Skript hast du 1x anstatt distanceMi, distanceMI verwendet.

                                    Wenn ich alle Fehlermeldungen weg bekommen habe, stelle ich das Skript nochmal ein, wenn das für dich OK ist!?

                                    paul53 1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @aleks-83 last edited by

                                      @aleks-83 sagte:

                                      wenn das für dich OK ist!?

                                      Das Skript ist nicht von mir.

                                      Wrong type of javascript.0.Status.Speed-Test.data.client.ispulavg: "undefined".
                                      

                                      "undefined" bedeutet, dass kein Wert vorhanden ist. Ist das immer so oder hat der Datenpunkt einen sinnvollen Wert (Zahl) ?

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aleks-83 last edited by

                                        Nein, als Wert steht "null MBit/s" drin.
                                        Also keine 0 als Zahl, sondern "null"

                                        paul53 1 Reply Last reply Reply Quote 0
                                        • paul53
                                          paul53 @aleks-83 last edited by

                                          @aleks-83 sagte:

                                          als Wert steht "null MBit/s" drin

                                          Dann ist folgende Zeile falsch:

                                          var Client_ispulavg = objects.data.client.ispulavg.varvalue;
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            aleks-83 last edited by aleks-83

                                            OK,
                                            habe mal das .varvalue entfernt, wie bei dem ispdlavg darüber auch.
                                            Jetzt läuft es fehlerfrei.

                                            @cybertron
                                            Wenn ich dein Skript hier "korrigiert" einstellen darf, sag bitte Bescheid.
                                            Ansonsten gebe ich es gerne als PN raus.

                                            paul53 Negalein sigi234 K 4 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript
                                            57
                                            177
                                            32943
                                            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