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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Unifi WLAN Script 2 mit Anwesenheitskontrolle

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @sectorchan last edited by

      @sectorchan sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

      /request-promise-native

      request-promise-native

      ist das in den settings der javascript instanz eingetragen

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

        @sectorchan sagte in Unifi WLAN Script 2 mit Anwesenheitskontrolle:

        Teilweise wird new Date().getTime() angemeckert.

        unwichtig

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

          @liv-in-sky

          Bin durch Baby und Weihnachten nicht früher dazugekommen.

          Habe nun das in die Setting eingetragen
          javascript.png
          Aber der Fehler kommt nach wievor.
          javascript2.png

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

            @sectorchan Schau mal:
            ....-nativ (Bild1)
            ...-native (Bild 2)

            S 1 Reply Last reply Reply Quote 1
            • S
              sectorchan @Chaot last edited by sectorchan

              @chaot Zu dumm für Copy&Paste... Vielen lieben Dank!

              Dumme Frage, ich habe die NPM anhängigkeiten dabei, alle drei, jedoch kommen immer wieder neue Errors. sind die nicht weiter schlimm wenn man nur an der Anwesenheit interessiert ist?

              11:05:51.420 error javascript.0 (6492) script.js.Skript_1: TypeError: Cannot read property 'enabled' of undefined
              11:05:51.421 error javascript.0 (6492) at script.js.Skript_1:785:33

              und bei der Zeiole 785 steht:

              let wlanOn = resp.data[0].enabled;

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

                @sectorchan

                zu diesem script:

                das supporte ich eigentlich nicht mehr, da wir mittlerweile einen funktionierenden adapter haben - dmls gab es keinen adapter dafür

                mittlerweile kannst du über dem adapter und kleinen blockly's (gibt es von @dslraser) auch alles mögliche machen

                das script brauchst du eigentlich nicht ! läuft bei mir auch nicht mehr

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

                  @liv-in-sky
                  Ah okay!

                  Meinst du von dslraser die Wunschblocks? oder gibts da schon ein konkretes Bsp dafür? (weisste das aus dem stegreif?)

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

                    @sectorchan tut mir leid - mußte suchen - oder neuen thread öffnen

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

                      This post is deleted!
                      Homoran 1 Reply Last reply Reply Quote -1
                      • Homoran
                        Homoran Global Moderator Administrators @Negalein last edited by

                        This post is deleted!
                        Negalein 1 Reply Last reply Reply Quote 0
                        • Negalein
                          Negalein Global Moderator @Homoran last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          942
                          Online

                          31.7k
                          Users

                          79.6k
                          Topics

                          1.3m
                          Posts

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