Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. Material Design Widets: Netzwerk Status

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Material Design Widets: Netzwerk Status

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

      hab es geändert, das gleiche in grün... leider
      9c09cdad-9058-4363-9346-fae9bcb6a357-image.png

      Was mir jetzt auffällt nach der Änderung, sind die DP angelegt (automatisch) aber nicht gefüllt nach neustarten des Scripts.
      Ich habe langsam das Gefühl ich habe ein falsches Script, die automatische Anlegung der DP war bei mir garnicht im Script vorhanden..

      eb76c1b2-9e38-45a6-8cfa-c1cd41618093-image.png

      Gargano 1 Reply Last reply Reply Quote 0
      • Gargano
        Gargano @Rosi8818 last edited by

        @rosi8818 sagte in Material Design Widets: Netzwerk Status:

        Ich habe langsam das Gefühl ich habe ein falsches Script, die automatische Anlegung der DP war bei mir garnicht im Script vorhanden..

        Ich hab das Script vom GitHub, Link ist ganz oben.
        Das automatische Anlegen der DP's sind auch nicht im Original Script, das hab ich bei mir dazugefügt.

        R 1 Reply Last reply Reply Quote 0
        • R
          Rosi8818 @Gargano last edited by

          @gargano okay, danke das hab ich auch aber trotzdem bleibt der Fehler...
          mich macht folgendes stutzig, das in der Zeile ->

          const moment = require("moment"); 
          

          dort ist das "moment" rot unsterstrichen. Ich habe die drei npm Module im Adapter eingetragen, das hängt ja glaube ich zusammen

          Gargano 1 Reply Last reply Reply Quote 0
          • Gargano
            Gargano @Rosi8818 last edited by Gargano

            @rosi8818 Ist bei mir auch unterstrichen, geht trotzdem
            Hast Du mehrere Instanzen von Javascript und in allen die npm Module eingetragen ?

            Starte mal den TR064 Adapter neu und dann nochmal das Script starten, wenn der TR 064 grün ist.
            Sind Devices im TR064 Adapter ?

            Und versuch mal folgendes : im Original Script Zeile 192
            (mit der autom. DP's Erstellung ca. Zeile 226)
            oberhalb von function resetSort()

            if (getState(dpList) !== result) {
            

            ändern in

            if (getState(dpList).val !== result) {
            
            R 1 Reply Last reply Reply Quote 0
            • R
              Rosi8818 @Gargano last edited by

              @gargano ich habe

              • eine Instanz des JavaScript und
              • die drei Module sind eingetragen
              • die Zeile geändert aber auch hier das gleiche Bild
              • Die TR064 Adapter habe ich neu gestartet, gewartet bis grün und das Script anschl. auch neu gestartet.
                Im Adapter sind auch Devices.
              • Ich habe auch im Script nur einen Adapter ausprobiert, das gleiche Bild
                irgend etwas übersehe ich, ich werde narrisch
              Gargano 1 Reply Last reply Reply Quote 0
              • Gargano
                Gargano @Rosi8818 last edited by

                @rosi8818 Dann hab ich nur noch das :

                Lösch mal die Objekte 0_userdata.0.vis.NetzwerkStatus komplett und starte das Script nochmal neu ( Mit den autom. Anlegen der DP's) Evtl. ist bei den DP's was nicht richtig.

                R 1 Reply Last reply Reply Quote 0
                • R
                  Rosi8818 @Gargano last edited by

                  @gargano hab ich gemacht, ich habe jetzt nochmal alles Adapter deaktiviert und einen nach den anderen ausprobiert (einzeln im Script angegeben).
                  Bei einem Adapter macht er Probleme, den mit den meisten Devices...

                  Gargano 1 Reply Last reply Reply Quote 0
                  • Gargano
                    Gargano @Rosi8818 last edited by

                    @rosi8818 sagte in Material Design Widets: Netzwerk Status:

                    (einzeln im Script angegeben).
                    Bei einem Adapter macht er Probleme, den mit den meisten Devices...

                    Was meinst Du mit einzeln im Script angegeben ?
                    Hast Du mehrere TR-064 Adapter ?

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      Rosi8818 @Gargano last edited by

                      @gargano ja habe ich

                      let activeSelector = `[id=tr-064.*.devices.*.active]`;
                      

                      geändert in

                      let activeSelector = `[id=tr-064.2.devices.*.active]`;
                      
                      Gargano 1 Reply Last reply Reply Quote 0
                      • Gargano
                        Gargano @Rosi8818 last edited by Gargano

                        @rosi8818 Also mehrere Fritzboxen und mehrere TR-064 Adapter ?
                        Und der tr-064.2 macht das Problem ?
                        Was steht den in den Objekten von tr-064.2.devices ?
                        Irgend etwas Auffälliges ?

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          Rosi8818 @Gargano last edited by

                          @gargano ja mehrere Fritzboxen, ein Adapter mit mehreren Instanzen

                          Mir ist folgendes aufgefallen, ein Gerät ist hellgrau hinterlegt und dort fehlt der Wert true weil er schon seid einen Monat nicht Online war
                          7765bdae-0b8c-41f8-bebe-9165eb5fee06-image.png

                          Gargano 1 Reply Last reply Reply Quote 0
                          • Gargano
                            Gargano @Rosi8818 last edited by Gargano

                            @rosi8818 Das würde das 'NULL' in der Fehlermeldung erklären.
                            Schau mal , ob Du den bereinigen kannst.

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              Rosi8818 @Gargano last edited by

                              @gargano den habe ich jetzt komplett rausgeschmissen aber das gleiche Problem Auch haben die anderen Namen keine Sonderzeichen o.ä. Nur Bindestriche die man auch in der Fritzbox verwenden darf. Mir gehen die Ideen aus

                              Gargano 1 Reply Last reply Reply Quote 0
                              • Gargano
                                Gargano @Rosi8818 last edited by

                                @rosi8818 Setz mal die Javascript Instanz auf Debug , starte nochmal das Script und zeig bitte den Log. Log bitte runterladen und den entsprechenden Teil posten. Bitte kein Screenshot.
                                Der 'Null' Fehler müssste jetzt aber weg sein, evtl. ist noch ein anderer da.

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  Rosi8818 @Gargano last edited by

                                  @gargano mach ich gleich, muss ich den Adapter restarten oder nimmt er das gleich an und debuggt?

                                  Gargano 1 Reply Last reply Reply Quote 0
                                  • Gargano
                                    Gargano @Rosi8818 last edited by Gargano

                                    @rosi8818 Wenn der Level geändert wird, startet die Instanz neu. Nur das Script nochmal starten

                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      Rosi8818 @Gargano last edited by

                                      @gargano mach ich gerade, die Logdatei als solche hier hochladen oder copy&paste was er dann anzeigt hier in einfügen?
                                      Hab vorher extra komplett alles gelöscht

                                      Gargano 1 Reply Last reply Reply Quote 0
                                      • Gargano
                                        Gargano @Rosi8818 last edited by

                                        @rosi8818 egal, entweder hochladen oder copy/paste. Wichtig ist, daß alle Informationen da sind ( nichts abgeschnitten)

                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          Rosi8818 @Gargano last edited by

                                          @gargano anbei das Log (nachdem herunterladen hat er es in einem extra Browser fenster geöffnet)
                                          cc05ba96-84fb-42a8-b136-158f89cf0340-image.png

                                          2021-03-19 12:44:33.912 - info: javascript.0 (10688) Start javascript script.js.Hilfsscripte.Statusabfrage_aus_github
                                          2021-03-19 12:44:34.019 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at script.js.Hilfsscripte.Statusabfrage_aus_github:257:1
                                          at script.js.Hilfsscripte.Statusabfrage_aus_github:284:3
                                          at Script.runInContext (vm.js:130:18)
                                          at Script.runInNewContext (vm.js:135:17)
                                          at execute (/opt/iobroker/node_modules/iobroker.javascript/main.js:1423:27)
                                          at prepareScript (/opt/iobroker/node_modules/iobroker.javascript/main.js:1622:38)
                                          at /opt/iobroker/node_modules/iobroker.javascript/main.js:1722:17
                                          at /opt/iobroker/node_modules/iobroker.javascript/main.js:1238:17
                                          at /opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:616:17
                                          2021-03-19 12:44:34.019 - info: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: registered 39 subscriptions and 1 schedule
                                          2021-03-19 12:44:44.140 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:44.163 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:44.410 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:44.551 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:44.804 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:44.906 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:45.424 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:45.493 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:45.908 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:46.195 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:44:46.649 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1070:38)
                                          at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29)
                                          at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5384:37)
                                          at processImmediate (internal/timers.js:461:21)
                                          2021-03-19 12:45:00.044 - error: javascript.0 (10688) script.js.Hilfsscripte.Statusabfrage_aus_github: [netzwerkStatus] error: Cannot read property '0' of null, stack: TypeError: Cannot read property '0' of null
                                          at Object.netzwerkStatus (script.js.Hilfsscripte.Statusabfrage_aus_github:119:59)
                                          at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1296:34)
                                          at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/schedule.js:173:10)
                                          at /opt/iobroker/node_modules/node-schedule/lib/schedule.js:552:11
                                          at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/schedule.js:510:7)
                                          at listOnTimeout (internal/timers.js:554:17)
                                          at processTimers (internal/timers.js:497:7)
                                          2021-03-19 12:45:17.416 - info: javascript.0 (10688) Stop script script.js.Hilfsscripte.Statusabfrage_aus_github
                                          2021-03-19 12:46:24.170 - info: javascript.0 (10688) script.js.Hilfsscripte.SmartHomeTablett_laden: 36
                                          
                                          Gargano 1 Reply Last reply Reply Quote 0
                                          • Gargano
                                            Gargano @Rosi8818 last edited by Gargano

                                            @rosi8818 Was ist denn bei Dir im Script in Zeile 119 ?

                                            Bite mal einige Zeile drüber und drunter posten,oder mal den ganzen Code

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            633
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            50
                                            280
                                            40368
                                            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