Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Hilfe, Batterie Status von Windows Tablet an Iobroker senden

    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

    Hilfe, Batterie Status von Windows Tablet an Iobroker senden

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active @Merz last edited by

      @merz

      hier ist die Lösung:
      https://forum.iobroker.net/topic/31485/test-adapter-windows-control-v0-1-x-github/82?_=1647461233835

      M 1 Reply Last reply Reply Quote 0
      • M
        Merz @bahnuhr last edited by Merz

        @bahnuhr Danke für die schnelle Antwort. Genau nach dieser Anleitung bin ich vorgegangen. Beim installieren von npm istall battery-Level und die anderen kommen immer fehlermeldungen. Das js Skript auf windows kann ich nicht starten kommt immer Fehlermeldung. Auf iobroker läuft das Skript. Werde die mal posten.Unbenannt.pngUnbenannt2.jpg

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

          @merz
          Ja, habe die gleiche Fehlermeldung.

          Ich glaube es lag daran, dass dieses battery-level oder dieses xmlbuilder zu alt ist.

          @liv-in-sky
          Weißt du noch, wie wir das damals installiert bekommen haben ?

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

            Hatte das ja auch mal vor ewigkeiten in Benutzung.

            Meine im gleichen dir:

            npm i xmlbuilder@2.2.1
            

            oder Node downgrade

            bahnuhr 1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @wendy2702 last edited by

              @wendy2702 sagte in Hilfe, Batterie Status von Windows Tablet an Iobroker senden:

              Hatte das ja auch mal vor ewigkeiten in Benutzung.

              Meine im gleichen dir:

              npm i xmlbuilder@2.2.1
              

              oder Node downgrade

              Ne, klappt nicht:

              C:\Users\Dieter>npm i xmlbuilder@2.2.1
              npm WARN EBADENGINE Unsupported engine {
              npm WARN EBADENGINE   package: 'xmlbuilder@2.2.1',
              npm WARN EBADENGINE   required: { node: '0.8.x || 0.10.x' },
              npm WARN EBADENGINE   current: { node: 'v16.14.1', npm: '8.5.0' }
              npm WARN EBADENGINE }
              
              up to date, audited 128 packages in 4s
              
              4 packages are looking for funding
                run `npm fund` for details
              
              9 vulnerabilities (1 moderate, 2 high, 6 critical)
              
              To address issues that do not require attention, run:
                npm audit fix
              
              To address all issues (including breaking changes), run:
                npm audit fix --force
              
              Run `npm audit` for details.
              
              wendy2702 1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @bahnuhr last edited by

                @bahnuhr Ich muss mal gucken ob ich meine Aufzeichnungen dazu noch finde.

                Da ich aber vor geraumer Zeit auf den Tablets auf Linux umgestiegen bin.... stehen die Zeichen nicht soooooo gut

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

                  @bahnuhr

                  kann mich nicht erinnern, das ich da probleme hatte - ist aber ewig her

                  ich nutze node 14 -evtl ist da ein problem ?

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

                    @merz

                    brauchst du das battery level überhaupt ? lösch es doch einfach raus

                    M 1 Reply Last reply Reply Quote 0
                    • wendy2702
                      wendy2702 last edited by

                      Habt ihr mal probiert ob die Abfrage trotz der Meldungen trotzdem funktioniert?

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

                        @liv-in-sky ja genau das brauche ich um die Steckdose zu steuern.

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

                          @wendy2702 ich kann die Anwendung überhaupt nicht starten dann kommt die Fehlermeldung

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

                            @merz - sorry - wer lesen kann ist besser dran - wollte ich wohl nicht sehen

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

                              Ich denke mal das die Versionen sich einfach nicht mehr vertragen. Ist ja auch ganz schön lange her. Ich hab die aktuellste node installiert. Ich kenn mich aber mit Java überhaupt nicht aus. Deswegen bin ich für jede Hilfe dankbar.

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

                                @liv-in-sky 🤭

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

                                  @merz

                                  https://github.com/Clever/saml2/issues/199

                                  hat schon ab version 12 einproblem

                                  evtl mal testen - dieses tool kann auch über command line

                                  https://www.nirsoft.net/utils/battery_information_view.html

                                  oder mit dem befehl - kann nicht testen - kein laptop zur hand

                                  WMIC PATH Win32_Battery Get EstimatedChargeRemaining
                                  

                                  https://www.thewindowsclub.com/check-battery-level-using-command-line

                                  Hazno created this issue in Clever/saml2

                                  closed xmlbuilder dependency doesn't support Node 12 (LTS) #199

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

                                    Mit node 12 müsste es klappen.
                                    bitte mal ausprobieren.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      Merz @bahnuhr last edited by Merz

                                      @bahnuhr ich werds gleich mal testen und gebe dann gleich Rückmeldung.
                                      Gleiche meldung. mit version v12.22 Screenshot 2022-03-17 184602.jpg

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

                                        @merz

                                        was zur not auch ginge

                                        ein batch job, der alle 10 min über taskmanager an iobroker sendet - über curl und simpleapi-adapter

                                        batch muss angeglichen werden
                                        falls der befehl curl nicht auf dem laptop ist - kann installiert werden

                                        batch:

                                        wmic path win32_battery get EstimatedChargeRemaining  |findstr/n ^^|findstr "^[2]" > tem.txt
                                        set /p VAR=<tem.txt
                                        echo %VAR%
                                        
                                        C:\Windows\SysWOW64\curl http://192.168.178.59:8087/set/0_userdata.0.data?value=%VAR%
                                        
                                        
                                        M 1 Reply Last reply Reply Quote 1
                                        • M
                                          Merz @liv-in-sky last edited by

                                          @liv-in-sky danke probiere ich gleich mal aus.

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

                                            @merz die batch datei und der curl befehl - curl in das verzeichnis kopieren, welches im batch steht - oder woanders hin - auf virusscanner achten - könnte sich melden - ist aber kein virus - versprochen 🙂

                                            daten.7z

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            804
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            48
                                            2195
                                            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