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.
    • Thomas Braun
      Thomas Braun Most Active @Chaot last edited by

      @Chaot locale gesetzt?

      Chaot 1 Reply Last reply Reply Quote 0
      • Chaot
        Chaot @Thomas Braun last edited by Chaot

        @Thomas-Braun ???
        Sorry, dazu habe ich von Linux viel zu wenig Ahnung.
        Was ist das und wie geht das?

        Ok, habe ich auf de_DE geändert. Scheint zu klappen.

        DANKE

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

          @Scrounger sagte in Test Adapter Linux Control v0.x.x:

          @Homoran
          Hehe nice 😁 für meine vu gibt's zum Glück schon nen Adapter.
          Hab sowas mit meinem Unifi UDMPro - UbiOs gemacht und lese damit die vpn l2tp Verbindungen aus.

          Tipp: Allen Datenpunkte des Host (DreamBox) auf die Blacklist ziehen, dann hast auch keine Fehlermeldung mehr.

          wollte nur mal fragen - absolut keine prio - habe meine axhd60 ( enigma-receiver) eingebunden

          Image 1.png

          habe alle datenpunkte entfernt außer ip, is-online, restart und shutdown. 2 befehle sind noch drin - werden auch angezeigt

          Image 2.png

          ich bekomme leider fehler, obwohl ich die daten dazu nicht abfrage (systemctl, os release)

          
          linux-control.0	2020-08-21 07:21:32.593	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:21:32.593	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:21:32.593	error	(24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
          linux-control.0	2020-08-21 07:21:32.578	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
          linux-control.0	2020-08-21 07:21:32.578	error	at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
          linux-control.0	2020-08-21 07:21:32.578	error	at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
          linux-control.0	2020-08-21 07:21:32.578	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:21:32.578	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:21:32.578	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:21:32.578	error	(24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
          linux-control.0	2020-08-21 07:21:32.565	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
          linux-control.0	2020-08-21 07:21:32.565	error	at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
          linux-control.0	2020-08-21 07:21:32.565	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:21:32.565	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:21:32.565	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:21:32.565	error	(24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
          linux-control.0	2020-08-21 07:20:32.431	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:72:5)
          linux-control.0	2020-08-21 07:20:32.431	error	at LinuxControl.servicesInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:392:21)
          linux-control.0	2020-08-21 07:20:32.431	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:20:32.431	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:20:32.431	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:20:32.431	error	(24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
          linux-control.0	2020-08-21 07:20:32.399	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
          linux-control.0	2020-08-21 07:20:32.399	error	at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
          linux-control.0	2020-08-21 07:20:32.399	error	at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
          linux-control.0	2020-08-21 07:20:32.399	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:20:32.399	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:20:32.399	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:20:32.399	error	(24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
          linux-control.0	2020-08-21 07:20:32.386	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
          linux-control.0	2020-08-21 07:20:32.386	error	at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
          linux-control.0	2020-08-21 07:20:32.386	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:20:32.386	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:20:32.386	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:20:32.386	error	(24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
          linux-control.0	2020-08-21 07:19:32.061	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:72:5)
          linux-control.0	2020-08-21 07:19:32.061	error	at LinuxControl.servicesInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:392:21)
          linux-control.0	2020-08-21 07:19:32.061	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:19:32.061	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:19:32.061	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:19:32.061	error	(24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
          linux-control.0	2020-08-21 07:19:32.044	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
          linux-control.0	2020-08-21 07:19:32.044	error	at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
          linux-control.0	2020-08-21 07:19:32.044	error	at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
          linux-control.0	2020-08-21 07:19:32.044	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:19:32.044	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:19:32.044	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:19:32.044	error	(24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
          linux-control.0	2020-08-21 07:19:32.024	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
          linux-control.0	2020-08-21 07:19:32.024	error	at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
          linux-control.0	2020-08-21 07:19:32.024	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:19:32.024	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:19:32.024	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:19:32.024	error	(24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
          linux-control.0	2020-08-21 07:18:31.755	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:72:5)
          linux-control.0	2020-08-21 07:18:31.755	error	at LinuxControl.servicesInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:392:21)
          linux-control.0	2020-08-21 07:18:31.755	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:18:31.755	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:18:31.755	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:18:31.755	error	(24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
          linux-control.0	2020-08-21 07:18:31.725	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
          linux-control.0	2020-08-21 07:18:31.725	error	at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
          linux-control.0	2020-08-21 07:18:31.725	error	at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
          linux-control.0	2020-08-21 07:18:31.725	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:18:31.725	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:18:31.725	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:18:31.725	error	(24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
          linux-control.0	2020-08-21 07:18:31.619	error	at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
          linux-control.0	2020-08-21 07:18:31.619	error	at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
          linux-control.0	2020-08-21 07:18:31.619	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
          linux-control.0	2020-08-21 07:18:31.619	error	at runMicrotasks (<anonymous>)
          linux-control.0	2020-08-21 07:18:31.619	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
          linux-control.0	2020-08-21 07:18:31.619	error	(24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
          

          hast du eine idee dazu ?

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

            @liv-in-sky
            Mach mal bitte screenshots von allen Einstellungen des axhd60 im Adapter

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

              @Scrounger -

              keine ordner definiert!
              service nur: control-restart
              control shutdown
              info: is-online
              ip

              Image 3.png
              Image 6.png
              Image 5.png
              Image 4.png

              coyote Scrounger 2 Replies Last reply Reply Quote 0
              • coyote
                coyote Most Active @liv-in-sky last edited by

                Ich würde gerne ein Script mit dem Adapter ersetzen.
                Wie kann ich den diesen Befehl aus dem Script: "ssh.execCommand("bash /home/coyote/Downloads/nichtdimmen.sh");
                im Adapter starten über einen Button?

                So habe ich schon probiert, kommt aber Fehler:

                linux.JPG

                linux-control.0	2020-08-21 09:09:38.405	error	at process._tickCallback (internal/process/next_tick.js:68:7)
                linux-control.0	2020-08-21 09:09:38.405	error	at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
                linux-control.0	2020-08-21 09:09:38.405	error	(4177) [send userCommand] MintTab (192.168.XXX.XXX:22) - voll_dimmen: response error: [send userCommand] MintTab (192.168.XXX.XXX:22) - voll_dimmen: /home/coyote/Downloads/volldimmen.sh: Zeile 13: 770
                
                liv-in-sky 1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @coyote last edited by

                  @coyote evtl ist in zeile 13 dieses scripts ein befehl , der einen pfad braucht - was steht in zeile 13?

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

                    @liv-in-sky wie meinst du? In dem volldimmen.sh Script Zeile 13?

                    So, führe ich den Befehl momentan in Javascript aus:

                     node_ssh = require('node-ssh').NodeSSH;
                    ssh = new node_ssh();
                    ssh.connect({
                      host: '192.168.XXX.XXX',   //MintTab VM
                      username: 'coyote',
                      password: 'pwd'
                    }).then(() => {
                      ssh.execCommand("bash /home/coyote/Downloads/nichtdimmen.sh");
                    });   
                    }
                    
                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @coyote last edited by

                      @coyote ich meinte das script volldimmen auf linux ebene - da kommt die fehlermeldung- poste mal das ganze script

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

                        @liv-in-sky hier:

                        #!/bin/bash
                        
                        pkill nichtdimmen
                        pkill python3
                        
                        # While the user is not logged in == until the $DISPLAY variable is unset or empty
                        unset DISPLAY
                        while [ -z "$DISPLAY" ] || [ "$DISPLAY" == "" ]; do
                                DISPLAY=$(w "$(id -un)" | awk 'NF > 7 && $2 ~ /tty[0-9]+/ {print $3; exit}' 2>/dev/null)
                                if [ "$DISPLAY" == "" ]; then sleep 30; else export DISPLAY="$DISPLAY"; fi
                        done
                        
                        /bin/bash -c "python3 /home/coyote/Downloads/dimscreens.py 30 0.2"
                        
                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky last edited by liv-in-sky

                          @coyote - da fällt mir nix ein - ohne zu wissen warum, würde ich mal testen, was passiert wenn in zeile 13 nur das phyton aufgerufen wird - evtl geht das so nicht aber probieren kann man ja

                          #!/bin/bash
                          pkill nichtdimmen
                          pkill python3
                           
                          # While the user is not logged in == until the $DISPLAY variable is unset or empty
                          unset DISPLAY
                          while [ -z "$DISPLAY" ] || [ "$DISPLAY" == "" ]; do
                                  DISPLAY=$(w "$(id -un)" | awk 'NF > 7 && $2 ~ /tty[0-9]+/ {print $3; exit}' 2>/dev/null)
                                  if [ "$DISPLAY" == "" ]; then sleep 30; else export DISPLAY="$DISPLAY"; fi
                          done
                           
                          # /bin/bash -c "python3 /home/coyote/Downloads/dimscreens.py 30 0.2"
                          python3 /home/coyote/Downloads/dimscreens.py 30 0.2
                          

                          @Thomas-Braun

                          hast du eine idee dazu, warum die zeile 13 ein problem macht ?

                          coyote Thomas Braun 2 Replies Last reply Reply Quote 0
                          • coyote
                            coyote Most Active @liv-in-sky last edited by

                            @liv-in-sky kommt leider der gleiche Fehler

                            1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @liv-in-sky last edited by

                              @liv-in-sky Keine Ahnung von python. Aber was sind denn das für Optionen da am Ende? Das sieht komisch aus.

                              coyote 1 Reply Last reply Reply Quote 0
                              • coyote
                                coyote Most Active @Thomas Braun last edited by

                                @Thomas-Braun damit wird das Display gedimmt, hier z.b. nach 30sec auf 20%, daher die 30 0,2

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @coyote last edited by

                                  @coyote

                                  ls -la /home/coyote/Downloads/dimscreens.py
                                  
                                  coyote 1 Reply Last reply Reply Quote 0
                                  • coyote
                                    coyote Most Active @Thomas Braun last edited by

                                    @Thomas-Braun sagte in Test Adapter Linux Control v0.x.x:

                                    ls -la /home/coyote/Downloads/dimscreens.py

                                    coyote@MintNUCi3Touchscreen:~$ ls -la /home/coyote/Downloads/dimscreens.py
                                    -rw-rw-r-- 1 coyote coyote 1094 Jan 20  2020 /home/coyote/Downloads/dimscreens.py
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @coyote last edited by

                                      @coyote Änder mal die Gruppe auf z. B. 'iobroker'

                                      coyote 1 Reply Last reply Reply Quote 0
                                      • coyote
                                        coyote Most Active @Thomas Braun last edited by

                                        @Thomas-Braun wie mache ich dass denn? Sorry, bin kein Linux Experte. Aber hast du weiter oben gelesen, dass ich die Scripte momentan noch über Javascript ausführen kann.
                                        So:

                                         node_ssh = require('node-ssh').NodeSSH;
                                        ssh = new node_ssh();
                                        ssh.connect({
                                          host: '192.168.XXX.XXX',   //MintTab VM
                                          username: 'coyote',
                                          password: 'pwd'
                                        }).then(() => {
                                          ssh.execCommand("bash /home/coyote/Downloads/nichtdimmen.sh");
                                        });   
                                        }
                                        
                                        Das funktioniert ohne Probleme
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @coyote last edited by

                                          @coyote

                                          chown :iobroker /home/coyote/Downloads/dimscreens.py
                                          
                                          coyote 1 Reply Last reply Reply Quote 0
                                          • coyote
                                            coyote Most Active @Thomas Braun last edited by

                                            @Thomas-Braun

                                            chown: ungültige Gruppe: »:iobroker“

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            619
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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