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.
    • K
      Kueppert @braindead last edited by

      @braindead danke dir für deine Rückmeldung. Gibt es denn schon was Richtung "baue deinen eigenen Voucher über Objekte"? Aktuell mache ich ja 1 Vorgabe im Adapter ... aber das ist hier ja off-topic. WIll den Thread hier nicht mit Fremdthemen füllen.
      Danke dir und vG, Thorsten

      braindead 1 Reply Last reply Reply Quote 0
      • braindead
        braindead Developer @Kueppert last edited by

        @Kueppert Es wird die Möglichkeit geben im Adapter mehrere Voucher konfigurieren zu können. Ähnlich, wie es das Script macht. "Baue deinen eigenen Voucher über Objekte" ist glaube ich keine Gute Idee, weil es zu komplex ist. Alles weitere können wir besser im Adapter Thread besprechen.

        https://forum.iobroker.net/topic/32873/major-update-unifi-adapter-v0-5-0/194

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

          Hallo @liv-in-sky
          aktuelles Script genommen und bekomme diese Fehlermeldungen

          javascript.0	2020-05-23 10:28:29.414	info	(21599) Stop script script.js.Meine_Geräte.Unifi-neu
          javascript.0	2020-05-23 10:28:20.655	error	(21599) at processTicksAndRejections (internal/process/task_queues.js:97:5)
          javascript.0	2020-05-23 10:28:20.654	error	(21599) at runMicrotasks (<anonymous>)
          javascript.0	2020-05-23 10:28:20.654	error	(21599) at script.js.Meine_Geräte.Unifi-neu:390:34
          javascript.0	2020-05-23 10:28:20.654	error	(21599) script.js.Meine_Geräte.Unifi-neu: TypeError: Cannot read property 'enabled' of undefined
          javascript.0	2020-05-23 10:27:50.536	error	(21599) at processTicksAndRejections (internal/process/task_queues.js:97:5)
          javascript.0	2020-05-23 10:27:50.536	error	(21599) at runMicrotasks (<anonymous>)
          javascript.0	2020-05-23 10:27:50.536	error	(21599) at script.js.Meine_Geräte.Unifi-neu:390:34
          javascript.0	2020-05-23 10:27:50.535	error	(21599) script.js.Meine_Geräte.Unifi-neu: TypeError: Cannot read property 'enabled' of undefined
          

          wlan.PNG
          Kann es am Update der Unififirmware liegen?

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

            @Nashra habe gerade alle devices und controller upgedatet

            davor habe ich das script gestoppt und alle datenpunkte unter javascript.x.WLANUnifi (den ganzen ordner) gelöscht

            dann script gestartet und es läuft wie vorher

            jedoch:
            beim umschalten eines netzwerkes bekomme ich anschlissend (nach der pause des scriptes) einige warnungen - aber nur einmal - das war vorher nicht so
            ich werde aber keine änderungen im script machen - wegen adapter entwicklung - ich warte ab, was da rauskommt

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

              Hey, hatte auch alle DP vorher gelöscht und er legte ja auch alles wieder soweit an,
              bis eben auf die Meldungen.
              Ok, dann warten wir mal auf den Adapter

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

                @Nashra

                du kannst mal diese beiden zeilen ändern - anstatt dlog(..) in log(...) umwandeln und dann das log mal zeigen - das log aber nicht hier posten, da deine wichtigen id's drinstehen - kannst auch per mail an mich senden oder id's unkenntlich machen

                Image 2.png

                evtl haben sich bei dir die wifi -id's irgendwie geändert ?

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

                  Donnerkeil, wo finde ich im Controller nochmal die ID's 😵

                  Nachtrag:
                  gefunden, steht bei Bearbeiten hinter Edit 😀

                  @liv-in-sky haben sich nicht geändert bis auf das vom Gästenetz 🤦‍♂️

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

                    @Nashra da ist doch das problem ? wenn du da was geändert hast (gästenetz) ? oder verstehe ich dich falsch

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

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

                      @Nashra da ist doch das problem ? wenn du da was geändert hast (gästenetz) ? oder verstehe ich dich falsch

                      Du nix falsch verstehn 😁
                      Ich hatte die Tage das Gastnetz gelöscht und einen Tag später wieder eingerichtet, nur eben vergessen es
                      im Script auch zu ändern d.h. habe einfach nicht mehr daran gedacht das sich die ID ändert 🤷‍♂️

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

                        @Nashra dann ist ja alles gut 🙂

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

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

                          @Nashra dann ist ja alles gut 🙂

                          Jein es schmeißt mir noch ein Warn raus

                          javascript.0	2020-05-23 18:02:44.956	warn	(21599) writeFile will not write this file (/htmlinfo.html) in future versions: iqontrol.meta is not an object of type "meta"
                          javascript.0	2020-05-23 18:01:13.010	warn	(21599) writeFile will not write this file (/htmlvoucher.html) in future versions: iqontrol.meta is not an object of type "meta"
                          
                          liv-in-sky 2 Replies Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @Nashra last edited by

                            @Nashra auch da habe ich keinen solchen fehler/warning - diese files werden geschrieben und können dann in iqontrol angezeigt werden - ohne warning

                            diese warnungen - glaube ich - haben mit den verschiedenene versionen von js-controller oder javascript oder der npm version zu tun

                            welche version hast du da ?

                            bei mir

                            npm 10.19
                            javascript 4.5.1
                            js-contr 3.1.4

                            was hast du ?

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

                              npm 6.14.4
                              js-contr 3.1.4
                              javascipt 4.6.14
                              node.. 12.16.3

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

                                @Nashra dann müßte ich wohl updaten - im moment nicht möglich - evtl morgen

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

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

                                  @Nashra dann müßte ich wohl updaten - im moment nicht möglich - evtl morgen

                                  No Problemo, sind ja nur Warn. Wichtig ist das der Rest läuft 🙂

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

                                    @Nashra javascript habe ich upgedatet - funktioniert bei mir

                                    bleibt nur noch node - ich gebe bescheid, falls sich da bei mir was neues ergibt

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

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

                                      @Nashra javascript habe ich upgedatet - funktioniert bei mir

                                      bleibt nur noch node - ich gebe bescheid, falls sich da bei mir was neues ergibt

                                      Ok 👍

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

                                        Nachtrag, da ich Iqontrol nicht nutze hatte ich es deinstalliert. Neu installiert,
                                        jetzt moppert es nur noch wegen htmlinfo.html

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

                                          Hallo @liv-in-sky es kommen Warn für alle HTML-Files.
                                          Ich weiß ja nicht ob das für dich einfacher ist, aber Iqontrol und Voucher brauche ich
                                          in dem Script nicht d.h. es würde also auch ohne dies im Script reichen 😉

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

                                            @Nashra

                                            leider habe ich keine lösung für dich - habe nun auch node 12 und meine dateien werden ohne fehler-meldung geschrieben und sind auch über iqontrol abrufbar

                                            kann es sein, das du iqontrol garnicht installiert hast und somit der pfad nicht existiert - im setting bereich sollte mit :

                                            let iqontrol = false;
                                            let vouchers = false;
                                            let apInfo = false;

                                            das schreiben der files aus sein

                                            evtl wäre auch noch möglich , wenn du iqontrl nicht installiert hast, folgende zeile zu ändern

                                            Image 3.png

                                            hier das iqontrol.meta mit vis.0 ersetzen

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            941
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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