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.
    • Nashra
      Nashra Most Active Forum Testing @liv-in-sky last edited by

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

      @Nashra hi

      entspricht das dem hier - nur für das usg?

      Ja

      wie leider immer - ich habe die daten nicht -
      kannst du mir die mal senden - ich sende dir meine mail über chat - die roter-pfeil-zeile so ändern, wie auf dem bild und dann die daten unter dem script kopieren (grüner pfeil)

      Mail ist raus

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

        @Nashra danke ich checke
        ich sehe daten z.b wan tx... 561

        das ist ja garnix - hast du neugestartet

        @dslraser
        bei dir sehe ich 1 209 340 evtl 1GB ?

        was bedeutet das? ist das insgesamt oder seit heute - oder brauchen wir die daten direct vom usg - dann bräuche ich die daten von der funktion GET AP

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

          ich frage deshalb, weil es wieder nicht-standard-daten sind - die sind aufwendig zu verwandel um damit arbeiten zu können - daher möchte ich sicher sein

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

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

            dann bräuche ich die daten von der funktion GET AP

            ich schau mal

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

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

              dann bräuche ich die daten von der funktion GET AP

              Habe ich Dir eben geschickt (WhatsApp)

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

                @dslraser

                also das sind mal werte

                tx_bytes":235 705 282 313bytes ------- TB ???

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

                  @liv-in-sky
                  kann sein, läuft ja schon par Tage

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

                    @dslraser vielleicht können wir morgen weitermachen - für heute ist erst mal mit großen gedanken schluss 😞

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

                      @liv-in-sky
                      klar, kein Thema....ist ja Freizeit

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

                        Moin @liv-in-sky
                        wie hast Du das mit dem blinken Rahmen hier gemacht, html/js ?
                        Bild Text

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

                          @Nashra über einen css eintrag und ein binding

                          Image 2.png

                          {val:javascript.2.WLANUnifi.Wifi_Client_Pause; val=='true'? "blink-red":  ""}
                          

                          Image 3.png

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

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

                            {val:javascript.2.WLANUnifi.Wifi_Client_Pause; val=='true'? "blink-red": ""}

                            Danke 👍

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

                              @Nashra

                              ist nicht perfekt eingestellt - ist noch nicht ganz fertig - aber arbeitet - einfach deine farben einarbeiten

                              .blink-bunt-green   {
                               animation: mdui-bunt-green-blink-ani 3s linear infinite;
                                 
                              }
                              @keyframes mdui-bunt-green-blink-ani {
                               8% {filter: drop-shadow(0px 0px 4px #58AE34) drop-shadow(0px 0px 4px #58AE34) drop-shadow(0px 0px 4px #58AE34); }
                               30% {filter: drop-shadow(0px 0px 4px #7CE56C) drop-shadow(0px 0px 4px #7CE56C) drop-shadow(0px 0px 4px #7CE56C); }
                               60% {filter: drop-shadow(0px 0px 4px #FF0040) drop-shadow(0px 0px 4px #FF0040) drop-shadow(0px 0px 4px #FF0040); }
                               0% {filter: none;}
                              }
                              
                              .blink-red   {
                               animation: mdui-red-blink-ani 3s linear infinite;
                              }
                              @keyframes mdui-red-blink-ani  {
                               0%,50% {filter: drop-shadow(0px 0px 4px #F44336) drop-shadow(0px 0px 4px #F44336) drop-shadow(0px 0px 4px #F44336); }
                               51% {filter: none;}
                              
                              }
                              

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

                                .blink-red reichte mir schon, danke dir

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

                                  @Nashra
                                  @dslraser

                                  hallo - habe mal probiert - kann nicht sagen ob es funktioniert - es geht um die tägliche download-menge des gateways - ohne gateway hardware - keine daten !!!

                                  hier das test script - muss nix gelöscht werden - alles unter den settings ersetzen - vielleicht kopiert ihr das script und stoppt das orginal

                                  unifi-testscript-27-10-19--usg-uplink..txt

                                  theoretisch sollte:

                                  • es neue dp unter APInfo geben - diese zeigen an, was über die WAN schnittstelle geht - um mitternacht wird auf 0 gestellt (was zu beweisen wäre)!
                                  • beim ersten lauf dauert es 3 bis 6 zyklen bis daten eingerichtet werden - da kein mitternacht wird ab dem ersten aktivieren des scripts berechnet - ab dem nächsten tag dann ab mitternacht
                                  • es gibt auch einen neuen ordner im bezug zur instanz - da sonst bei jedem datenpunkt löschen (update) die daten verloren gehen würden - gibt es dafür einen eigenen pfad z.b." javascript.0.WLANUnifiHelp" darin wird der wert von mitternacht "notiert"
                                  • iqontrol, vis sollten daten sichtbar werden

                                  klopfe auf holz und bitte um feedback

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

                                    @liv-in-sky
                                    DP's werden angelegt aber im Log kommt

                                    javascript.0	2019-10-27 18:26:54.025	error	(9029) at Timer.processTimers (timers.js:223:10)
                                    javascript.0	2019-10-27 18:26:54.025	error	(9029) at listOnTimeout (timers.js:263:5)
                                    javascript.0	2019-10-27 18:26:54.024	error	(9029) at tryOnTimeout (timers.js:300:5)
                                    javascript.0	2019-10-27 18:26:54.024	error	(9029) at ontimeout (timers.js:438:13)
                                    javascript.0	2019-10-27 18:26:54.024	error	(9029) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1970:34)
                                    javascript.0	2019-10-27 18:26:54.023	error	(9029) at Object.<anonymous> (script.js.Meine_Geräte.Unifi-5:1278:77)
                                    javascript.0	2019-10-27 18:26:54.023	error	(9029) Error in callback: TypeError: Cannot read property 'xput_download' of undefined
                                    

                                    @dslraser wie sieht es bei dir aus?

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

                                      @Nashra sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

                                      @liv-in-sky
                                      DP's werden angelegt aber im Log kommt

                                      javascript.0	2019-10-27 18:26:54.025	error	(9029) at Timer.processTimers (timers.js:223:10)
                                      javascript.0	2019-10-27 18:26:54.025	error	(9029) at listOnTimeout (timers.js:263:5)
                                      javascript.0	2019-10-27 18:26:54.024	error	(9029) at tryOnTimeout (timers.js:300:5)
                                      javascript.0	2019-10-27 18:26:54.024	error	(9029) at ontimeout (timers.js:438:13)
                                      javascript.0	2019-10-27 18:26:54.024	error	(9029) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1970:34)
                                      javascript.0	2019-10-27 18:26:54.023	error	(9029) at Object.<anonymous> (script.js.Meine_Geräte.Unifi-5:1278:77)
                                      javascript.0	2019-10-27 18:26:54.023	error	(9029) Error in callback: TypeError: Cannot read property 'xput_download' of undefined
                                      

                                      @dslraser wie sieht es bei dir aus?

                                      Ich habe Besuch und kann nix testen...

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

                                        @Nashra sehr eigenartig ? ist zwar in dieser funktion hinzugeführt worden aber dieser wert wurde eigentlich nicht verändert

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

                                          Warten wir mal bis @dslraser es testen kann. Wenn es bei ihm läuft ist bei mir was faul 😁

                                          liv-in-sky 3 Replies Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @Nashra last edited by liv-in-sky

                                            bitte probier das mal

                                            file entfernt

                                            setzte es so ein, dass AB HIER NICHTS ... in zeile 68 ist

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            893
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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