Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Linux Control v1.x.x

    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

    Test Adapter Linux Control v1.x.x

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

      @wendy2702 sagte in Test Adapter Linux Control v1.x.x:

      azu habe ich den befehl hier eingetragen:

      du musst button auswählen anstatt zeichenkette

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

        @liv-in-sky Klappt natürlich!

        Vielen Dank und schönen Abend.

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

          @wendy2702 dito

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

            Ich nochmal,

            irgendjemand ermittelt doch bestimmt auch den aktuellen Akkustand mit dem tool und schreibt das in einen oder mehrere Datenpunkte, oder?

            Mag mir wer verraten wie ihr das umgesetzt habt?

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

              @wendy2702 habe kein linux mit akku aber hier unter apci terminal command würd ich's probieren

              https://www.cyberciti.biz/faq/linux-laptop-battery-status-temperature/

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

                @liv-in-sky Danke.

                Ich habe jetzt die Abfrage mit acpitool gemacht.

                Daten stehen jetzt im Datenpunkt. Jetzt nur noch versuchen zu parsen damit aus der einen Zeile etwas für mich brauchbares wird.

                Das Ergebnis sieht aktuell nämlich noch so aus:

                Battery #1     : Unknown, 100.0%  AC adapter     : online   Thermal info   : <not available>
                

                Und Ziel ist es ja die Akku Ladung in % zu nutzen um Laden ein/aus zu schalten.

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

                  @wendy2702 teste mal:

                  dein befehl | grep "Battery" |   awk ' {print $5}' | sed 's/%//g'
                  
                  
                  wendy2702 1 Reply Last reply Reply Quote 1
                  • wendy2702
                    wendy2702 @liv-in-sky last edited by

                    @liv-in-sky sagte in Test Adapter Linux Control v1.x.x:

                    | grep "Battery" | awk ' {print $5}' | sed 's/%//g'

                    Auch das funktioniert natürlich.

                    Ich sehe denn Wald vor lauter Bäumen nicht und komme erst darauf das es Linux filtern ist und ich garnicht Parsen muss 😞

                    Vielen Dank!!!

                    1 Reply Last reply Reply Quote 0
                    • B
                      bishop last edited by

                      @scrounger
                      würde gerne mein IoBroker Slave der auf einem Pi2 läuft mit deinem Adapter verwenden.
                      Es funktioniert soweit auch alles bis auf den dienst von iobroker!
                      Das ist kein Service..

                      pi@raspberrypi:~ $ service iobroker
                      iobroker: unrecognized service
                      pi@raspberrypi:~ $
                      

                      mache ich aber

                      pi@raspberrypi:~ $ iobroker status
                      iobroker is running on this host.
                      
                      At least one iobroker host is running.
                      
                      Objects type: file
                      States  type: file
                      pi@raspberrypi:~ $
                      

                      kann ich das als service machen oder wäre es möglich diese option in der services mit aufzunehmen.

                      Scrounger 1 Reply Last reply Reply Quote 0
                      • Scrounger
                        Scrounger Developer @bishop last edited by Scrounger

                        @bishop sagte in Test Adapter Linux Control v1.x.x:

                        Es funktioniert soweit auch alles bis auf den dienst von iobroker!
                        Das ist kein Service..

                        Iob ist ein service, zumindest mit Ubuntu & Debian Distributionen.
                        8084cb43-d534-4bb9-81aa-4edfbc108959-grafik.png

                        Was liefert denn der folgende Befehl bei dir?
                        systemctl status iobroker.service

                        kann ich das als service machen oder wäre es möglich diese option in der services mit aufzunehmen.

                        Du kannst das über den Reiter meine Befehle realisieren. Mit in Services werde ich es nicht einbauen, da es bei Ubuntu & Debian funktioniert.

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

                          @bishop Wie alt ist die Installation?

                          Kannst mal den Fixer laufen lassen. Danach sollte es ein Service sein wenn er durchläuft.

                          curl -sL https://iobroker.net/fix.sh | bash -
                          
                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bishop @wendy2702 last edited by

                            @wendy2702
                            @Scrounger

                            danke hat funktioniert.

                            Ist etwas Offtopic aber ich wollte jetzt ein Js Controller update machen auf dem Raspberry pi2 und bekomme nun:

                            pi@raspberrypi:~ $ iobroker upgrade self
                            Update js-controller from @3.1.6 to @3.2.16
                            NPM version: 6.14.11
                            npm install iobroker.js-controller@3.2.16 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                            /opt/iobroker/node_modules/at-least-node/index.js:5
                                location?: LocationCode;
                                         ^
                            
                            SyntaxError: Unexpected token :
                                at Module._compile (internal/modules/cjs/loader.js:723:23)
                                at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                                at Module.load (internal/modules/cjs/loader.js:653:32)
                                at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                                at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                                at Module.require (internal/modules/cjs/loader.js:692:17)
                                at require (internal/modules/cjs/helpers.js:25:18)
                                at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/fs-extra/lib/mkdirs/make-dir.js:9:21)
                                at Module._compile (internal/modules/cjs/loader.js:778:30)
                                at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                            npm ERR! code ELIFECYCLE
                            npm ERR! errno 1
                            npm ERR! iobroker.js-controller@3.2.16 install: `node iobroker.js setup first`
                            npm ERR! Exit status 1
                            npm ERR!
                            npm ERR! Failed at the iobroker.js-controller@3.2.16 install script.
                            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                            
                            npm ERR! A complete log of this run can be found in:
                            npm ERR!     /home/iobroker/.npm/_logs/2021-03-05T06_55_14_822Z-debug.log
                            host.raspberrypi Cannot install iobroker.js-controller@3.2.16: 1
                            pi@raspberrypi:~ $ npm -v
                            6.14.11
                            

                            vorher habe ich eine apt-get update und upgrade gemacht.

                            FredF Thomas Braun 2 Replies Last reply Reply Quote 0
                            • FredF
                              FredF Most Active Forum Testing @bishop last edited by

                              @bishop

                              iobroker stop
                              iobroker update
                              iobroker upgrade self
                              iobroker start
                              
                              B 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @bishop last edited by

                                @bishop

                                which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                
                                1 Reply Last reply Reply Quote 0
                                • B
                                  bishop @FredF last edited by

                                  @fredf sagte in Test Adapter Linux Control v1.x.x:

                                  @bishop

                                  iobroker stop
                                  iobroker update
                                  iobroker upgrade self
                                  iobroker start
                                  

                                  Das habe ich getan!

                                  @thomas-braun sagte in Test Adapter Linux Control v1.x.x:

                                  @bishop

                                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                  
                                  pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                  /usr/bin/nodejs
                                  v10.24.0
                                  /usr/bin/node
                                  v10.24.0
                                  /usr/bin/npm
                                  6.14.11
                                  nodejs:
                                    Installed: 10.24.0-1nodesource1
                                    Candidate: 10.24.0-1nodesource1
                                    Version table:
                                   *** 10.24.0-1nodesource1 500
                                          500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                                          100 /var/lib/dpkg/status
                                       10.24.0~dfsg-1~deb10u1 500
                                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                  pi@raspberrypi:~ $
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @bishop last edited by

                                    @bishop

                                    sudo apt update
                                    sudo apt dist-upgrade
                                    sudo reboot
                                    
                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      bishop @Thomas Braun last edited by

                                      @thomas-braun sagte in Test Adapter Linux Control v1.x.x:

                                      @bishop

                                      sudo apt update
                                      sudo apt dist-upgrade
                                      sudo reboot
                                      
                                      pi@raspberrypi:~ $ sudo apt update
                                      Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                      Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                                      Hit:3 http://packages.microsoft.com/repos/code stable InRelease
                                      Hit:4 https://www.pivccu.de/piVCCU stable InRelease
                                      Hit:5 https://deb.nodesource.com/node_10.x buster InRelease
                                      Reading package lists... Done
                                      Building dependency tree
                                      Reading state information... Done
                                      All packages are up to date.
                                      pi@raspberrypi:~ $ sudo apt dist-upgrade
                                      Reading package lists... Done
                                      Building dependency tree
                                      Reading state information... Done
                                      Calculating upgrade... Done
                                      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                      pi@raspberrypi:~ $
                                      
                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        bishop @bishop last edited by bishop

                                        @Scrounger

                                        ist es möglich auch die synology nas zu integrieren?
                                        Habe sie mal mit im Adapter konfiguriert aber leider bleibt nur ein INFO Datenpunkt mit der Ip und das sie Offline ist, ist aber natürlich online SSH ist dort auch konfiguriert ich bekomme eine Verbindung mit Putty hin.
                                        Kann das sein weil es keine richtige Distribution ist?

                                        linux-control.jpg

                                        linux-control.0	2021-03-13 21:27:33.633	error	at processTimers (internal/timers.js:497:7)
                                        linux-control.0	2021-03-13 21:27:33.633	error	at listOnTimeout (internal/timers.js:554:17)
                                        linux-control.0	2021-03-13 21:27:33.633	error	at Timeout._onTimeout (/opt/iobroker/node_modules/ssh2/lib/client.js:695:19)
                                        linux-control.0	2021-03-13 21:27:33.633	error	(26597) [getConnection] error: Timed out while waiting for handshake, stack: Error: Timed out while waiting for handshake
                                        linux-control.0	2021-03-13 21:27:33.631	error	(26597) [getConnection] Could not establish a connection to 'Diskstation218' (192.168.1.4:22)!
                                        linux-control.0	2021-03-13 21:27:28.341	error	at processTimers (internal/timers.js:497:7)
                                        linux-control.0	2021-03-13 21:27:28.341	error	at listOnTimeout (internal/timers.js:554:17)
                                        linux-control.0	2021-03-13 21:27:28.341	error	at Timeout._onTimeout (/opt/iobroker/node_modules/ssh2/lib/client.js:695:19)
                                        linux-control.0	2021-03-13 21:27:28.341	error	(26597) [getConnection] error: Timed out while waiting for handshake, stack: Error: Timed out while waiting for handshake
                                        linux-control.0	2021-03-13 21:27:28.275	error	(26597) [getConnection] Could not establish a connection to 'Diskstation212' (192.168.1.104:22)!
                                        
                                        Scrounger 1 Reply Last reply Reply Quote 0
                                        • da_Woody
                                          da_Woody last edited by

                                          @bishop hmm, hab gerade meine 2 DS reingehängt, da kommt wirklich nicht viel rum. ausser bei der grossen mehr...
                                          wenn du mehr infos brauchst, dann nimm den synology adapter...

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            bishop @da_Woody last edited by bishop

                                            @da_woody
                                            ja das habe ich auch schon probiert, wollte das ohne synology adapter versuchen 🙂

                                            werde das ganze mit nem rsa schlüssel versuchen vielleicht geht es damit besser!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            706
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter control hardware linux steuern
                                            64
                                            656
                                            128497
                                            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