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.
    • 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
                                • M
                                  Merz @liv-in-sky last edited by

                                  @liv-in-sky Danke.
                                  Habe jetzt Simple Api in ioboker installiert. Aber unter adapter ist der nicht zu sehen. Nur unter Objekte habe ich Simple Api >Admin.
                                  Muss ich da noch was einstellen?

                                  simple-api.0
                                  	2022-03-17 18:55:53.297	info	http server listening on port 8087
                                  simple-api.0
                                  	2022-03-17 18:55:53.281	info	Allow states only when user is owner: false
                                  simple-api.0
                                  	2022-03-17 18:55:53.280	info	simpleAPI server listening on port 8087
                                  simple-api.0
                                  	2022-03-17 18:55:53.239	info	starting. Version 2.6.3 in /opt/iobroker/node_modules/iobroker.simple-api, node: v14.19.0, js-controller: 4.0.15
                                  
                                  liv-in-sky 1 Reply Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @Merz last edited by

                                    @merz

                                    nur installieren und dann die instanz einrichten mit dem port

                                    mach mal refresh browser - evtl versteckt sich der adapter oder die instanz

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

                                      @liv-in-sky Danke der refresh hat geholfen.
                                      Diese Meldungen habe ich jetzt noch

                                      simple-api.0
                                      	2022-03-17 19:25:25.693	warn	Malformed URL encoding for /set/0_userdata.0.data?value=%VAR%: URIError: URI malformed
                                      simple-api.0
                                      	2022-03-17 19:25:25.663	warn	Malformed URL encoding for /set/0_userdata.0.data?value=%VAR%: URIError: URI malformed
                                      

                                      Das ist in der cmd

                                      C:\Windows\system32>wmic path win32_battery get EstimatedChargeRemaining    | findstr/n ^  | findstr "^[2]"  1>tem.txt
                                      
                                      C:\Windows\system32>set /p VAR= 0<tem.txt
                                      
                                      C:\Windows\system32>echo 2:36
                                      2:36
                                      
                                      C:\Windows\system32>C:\Windows\SysWOW64\curl http://192.168.178.82:8087/set/0_userdata.0.data?value=2:36                
                                      "error: datapoint \"0_userdata.0.data\" not found"
                                      C:\Windows\system32>pause
                                      Drücken Sie eine beliebige Taste . . .
                                      
                                      

                                      Im log ist nichts zu sehen von dem Wert. Ist die Meldung not found normal?
                                      Er legt auch keine datei in den Ordner an. Hab es mit Adminrechte ausgefuert.

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

                                        @merz

                                        hast du den datenpunkt angelegt ?

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

                                          @liv-in-sky jetzt ja. Aber erlich gesagt weiss ich nicht ob das richtig ist.

                                          {
                                            "common": {
                                              "name": "data",
                                              "desc": "Manuell erzeugt",
                                              "role": "state",
                                              "type": "number",
                                              "read": true,
                                              "write": true,
                                              "def": 0
                                            },
                                            "type": "state",
                                            "_id": "0_userdata.0.data_value",
                                            "acl": {
                                              "object": 1636,
                                              "state": 1636,
                                              "owner": "system.user.admin",
                                              "ownerGroup": "system.group.administrator"
                                            },
                                            "from": "system.adapter.admin.0",
                                            "user": "system.user.admin",
                                            "ts": 1647544200065
                                          }
                                          
                                          liv-in-sky 2 Replies Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @Merz last edited by liv-in-sky

                                            @merz

                                            nicht vom type number sondern string - das gelieferete ergebnis müssen wir später noch etwas aufbereiten - in einem blockly

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            917
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

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