Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Unifi WLAN Script 2 mit Anwesenheitskontrolle

    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

    Unifi WLAN Script 2 mit Anwesenheitskontrolle

    This topic has been deleted. Only users with topic management privileges can see it.
    • dslraser
      dslraser Forum Testing Most Active @liv-in-sky last edited by

      @liv-in-sky sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

      @dslraser uuuppsss - schau ich mal - habe es nochmal (2mal) getestet und neu kopiert und draufgeladen - sollte alles in ordnung sein

      script-mit-neuer-sortierung.txt

      dann machen wir morgen weiter

      Erstmal zu gestern, sorry, das war wahrscheinlich mein Fehler. Das kommt davon "schnell" noch zwischendurch was zu probieren. Ich denke ich weiß wo die ganzen Fehler her kamen...
      Ich hatte wie immer alle DP gelöscht und ein neues Script als Kopie angelegt und nur den neuen Teil ausgetauscht.
      Versehentlich habe ich dann wohl beide Scripte gestarten, also alt und neu. Aber auch daraus kann man ja lernen. Dann weiß ich wenigstens was dann für Fehler kommen.
      Im Moment läuft das Script. Ich werde mal bissl beobachten.

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

        @liv-in-sky
        in iQontrol lade ich übrigens Icon bzw. Bilder in dieses Verzeichnis (per FTP). Probiere doch mal da rein zu schreiben...

        /opt/iobroker/iobroker-data/files/iqontrol.meta/userimages

        liv-in-sky 1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @dslraser last edited by

          @dslraser wenn du lust und zeit hast - ich habe gerade mit dem writeFile zu kämfen

          kopier doch mal ein file (htmlclients.html) in diesen meta ordner - über terminal oder ftp und schau, wie du den pfad angeben musst in der kachel

          was hälst du von einer getrennten "Letzter Wechsel im Netzwerk" liste - finde die idee ( @nashra ) garnicht so schlecht - etwas aufwendig, da ja auch für iqontrol wieder ein file erzeugt werden muss - abe trotzdem gute idee

          dslraser 1 Reply Last reply Reply Quote 0
          • dslraser
            dslraser Forum Testing Most Active @liv-in-sky last edited by dslraser

            @liv-in-sky
            gut Idee. (getrennte Darstellung)

            Testen geht erst später, wir sind gleich wieder unterwegs.

            1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @coyote last edited by

              @coyote , @dslraser

              würdet ihr das bitte testen - vielleicht mach ihr euch ein neues script - könnt ihr später wieder löschen - es geht um das iqontrol-file-problem

              das popup bitte so aufrufen

              <iframe width="100% "height="100% "frameborder="0" src="/iqontrol.meta/htmlclientstest.html"></iframe
              

              funktioniert das ?

              scriptTESTTEST-mitneuer iqontrol.txt

              coyote 1 Reply Last reply Reply Quote 0
              • coyote
                coyote Most Active @liv-in-sky last edited by

                @liv-in-sky das hatte ich gestern Abend noch schnell probiert. Hab die HTML in das iobroker.meta Verzeichnis kopiert und dann versucht über iqontrol drauf zuzugreifen, leider ohne Erfolg

                liv-in-sky 1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @coyote last edited by

                  @coyote

                  nur rein kopieren wird nicht funktionieren, da dann redis nix weiß von der datei - wenn dann nur mit test- script

                  ich habe das mittlerweile mit allen files umgestellt und es funktioniert mit dem alten controller - jetzt muss ich den ball leider wieder zurückspielen - entweder hat iqontrol ein problem oder der js-controllerv2 - habe es lt. anweisung von apollon77 gemacht

                  coyote 1 Reply Last reply Reply Quote 0
                  • coyote
                    coyote Most Active @liv-in-sky last edited by

                    @liv-in-sky ah okay, na dann teste ich es Mal mit Script nachher

                    liv-in-sky 2 Replies Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @coyote last edited by

                      @coyote nur zu klärung:

                      ich mußte auf eine andere function zum schreiben eines files umstellen, damit der js-controller das ganze mitbekommt und in seine datenbank schreibt - genauso muss mann , wenn man das file liest, wieder diesen weg gehen und eine andere function nehmen

                      ich hatte fs.writeFile(..) -> schreibt einfach auf das filesystem (war voll assi von mir 🤘 👿 )
                      jetzt: writeFile(..........function ...) sagt dem jscontroller bzw javascript instanz - es gibt ein neues object und es beinhaltet ... 🌞 👼

                      1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @coyote last edited by

                        @coyote

                        bitte teste dieses file - darin ist das neue iqontrol ding und dein datenpunkt wan_ip sollte auch funktionieren - ich kann das ,wie erwähnt, nicht testen

                        scriptunifi- iqontrol-poblemundwanip.txt

                        coyote 1 Reply Last reply Reply Quote 0
                        • coyote
                          coyote Most Active @liv-in-sky last edited by

                          @liv-in-sky ok, jetzt hab ich beide Threads mal in Ruhe gelesen (war vorhin unterwegs). Habe es jetzt auch verstanden und werde es nachher, wenn ich noch dazu komme mal testen.
                          Iqontrol Popup bleibt wie oben beschrieben? iqontrol.meta.....

                          liv-in-sky 1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @coyote last edited by liv-in-sky

                            @coyote ja aber mit den orginal namen also ... src="/iqontrol.mega/htmlclients.html" .... für alle drei vier

                            alarm, clients, vouchers, und ìnfo

                            coyote 1 Reply Last reply Reply Quote 0
                            • coyote
                              coyote Most Active @liv-in-sky last edited by

                              @liv-in-sky sehr schön, was soll ich sagen... läuft 👍 👍

                              liv-in-sky 1 Reply Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @coyote last edited by

                                @coyote na - das ist ja was !

                                dann werd ich mal ein update vorbereiten

                                coyote 1 Reply Last reply Reply Quote 0
                                • coyote
                                  coyote Most Active @liv-in-sky last edited by

                                  @liv-in-sky ja, moment ist ein Fehler drin, bin gerade am suchen.

                                  javascript.1	2019-10-06 17:55:16.063	error	(1692) at process._tickCallback (internal/process/next_tick.js:68:7)
                                  javascript.1	2019-10-06 17:55:16.063	error	(1692) at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
                                  javascript.1	2019-10-06 17:55:16.063	error	(1692) at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
                                  javascript.1	2019-10-06 17:55:16.063	error	(1692) at (anonymous function).get (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:20520)
                                  javascript.1	2019-10-06 17:55:16.061	error	(1692) at objects.checkFile (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsUtils.js:248:20)
                                  javascript.1	2019-10-06 17:55:16.060	error	(1692) at (anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:25808)
                                  javascript.1	2019-10-06 17:55:16.060	error	(1692) at _0x5d8443._readFile (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:24705)
                                  javascript.1	2019-10-06 17:55:16.060	error	(1692) at script.js.Unifi:733:36
                                  javascript.1	2019-10-06 17:55:16.060	error	(1692) script.js.Unifi: TypeError: Cannot read property 'substring' of undefined
                                  javascript.1	2019-10-06 17:55:16.051	error	(1692) at Timer.processTimers (timers.js:223:10)
                                  javascript.1	2019-10-06 17:55:16.051	error	(1692) at listOnTimeout (timers.js:263:5)
                                  javascript.1	2019-10-06 17:55:16.051	error	(1692) at tryOnTimeout (timers.js:300:5)
                                  javascript.1	2019-10-06 17:55:16.050	error	(1692) at ontimeout (timers.js:438:13)
                                  javascript.1	2019-10-06 17:55:16.050	error	(1692) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1888:34)
                                  javascript.1	2019-10-06 17:55:16.050	error	(1692) at Object.<anonymous> (script.js.Unifi:716:88)
                                  javascript.1	2019-10-06 17:55:16.050	error	(1692) Error in callback: ReferenceError: color_iqontrol_text__client_letzteAenderung_VIS is not defined
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at process._tickCallback (internal/process/next_tick.js:68:7)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at (anonymous function).get (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:20520)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at objects.checkFile (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsUtils.js:248:20)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at (anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:25808)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at _0x5d8443._readFile (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:24705)
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) at script.js.Unifi:733:36
                                  javascript.1	2019-10-06 17:55:13.135	error	(1692) script.js.Unifi: TypeError: Cannot read property 'substring' of undefined
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at process._tickCallback (internal/process/next_tick.js:68:7)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at (anonymous function).get (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:20520)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at objects.checkFile (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsUtils.js:248:20)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at (anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:25808)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at _0x5d8443._readFile (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:24705)
                                  javascript.1	2019-10-06 17:55:13.054	error	(1692) at script.js.Unifi:733:36
                                  javascript.1	2019-10-06 17:55:13.051	error	(1692) script.js.Unifi: TypeError: Cannot read property 'substring' of undefined
                                  

                                  Schätze ist nur ein Typo, hab aber gerade keine Zeit mehr zum suchen, mach ich nachher, oder du guckst selbst kurz rein.

                                  liv-in-sky 1 Reply Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @coyote last edited by

                                    @coyote welches zeile bei dir 733 - was steht da ?

                                    liv-in-sky 1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @liv-in-sky last edited by

                                      @coyote

                                      die zeile mit readFile - können wir ausdokumentieren - falls da ein problem - brauchen wir nicht

                                      ist unter dem block ---WRITING FILES-----------

                                      coyote 1 Reply Last reply Reply Quote 0
                                      • coyote
                                        coyote Most Active @liv-in-sky last edited by coyote

                                        @liv-in-sky ja, einmal war es das, hab ich auskommentiert und noch:

                                        const format3 = "<table style=\"color:"+color_iqontrol_text__client_letzteAenderung_VIS+"; font-family:"+schriftart+";\">";
                                        
                                        

                                        letzteAenderung_VIS gab es nicht bzw. einmal so einmal ohne _VIS, hab ich geändert in "letzteAenderung" nun läuft es

                                        Und danke für den Fix für den js-controller >2.0👍

                                        liv-in-sky 1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @coyote last edited by

                                          @coyote oje - sorry - hab ich ganz vergessen - habe das ja über "AB HIER NICHTS ..." geändert - muss ich im hauptupdate extra erwähnen und beachten

                                          dslraser 1 Reply Last reply Reply Quote 0
                                          • dslraser
                                            dslraser Forum Testing Most Active @liv-in-sky last edited by

                                            @liv-in-sky
                                            welches ist jetzt das aktuelle Script ?

                                            liv-in-sky 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            895
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript monitoring
                                            46
                                            1358
                                            411344
                                            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