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

                                        @liv-in-sky

                                        Das liegt alles an dem Enigma Linux.

                                        ServiceInfo:
                                        Geht nicht weil systemctl: command not found - systemctl gibts nicht.

                                        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
                                        

                                        UpdateInfos:
                                        Geht nicht weil apt-get: command not found - apt gibts nicht:

                                        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
                                        

                                        Distribution:
                                        Geht nicht weil die infos nicht unter /etc/os-release liegen

                                        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
                                        

                                        D.h. wenn du keine Fehlermeldung mehr haben willst, dann musst du alles auf die Blackliste für diesen Host setzen und eigen Befehle erstellen, die von der Enigma unterstütz werden.

                                        Es gibt für Enigma basierte receiver einen Adapter:
                                        https://github.com/Matten-Matten/ioBroker.enigma2

                                        Der nutzt die API von Webif, nimm dafür besser den.

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

                                          @coyote Hast du keinen user iobroker? Ist das wieder so'n Docker-Zeuch auf Synology?

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

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

                                            @coyote Hast du keinen user iobroker? Ist das wieder so'n Docker-Zeuch auf Synology?

                                            @coyote

                                            Leute ihr kapert meinen Thread 😉 - hier geht es nicht um Linux Hilfe, sondern um die Weiterentwicklung des Adapters!
                                            Bitte macht für solche Fragen eigene Themen auf, sonst findet niemand mehr irgendwas hier wieder, danke!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            701
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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