TP-Link HS100 intern steuern

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11250

    #16
    Hast du das File jetzt +x gesetzt oder nicht?
    Mach ls -l und nicht dir.
    Was steht im Apache Errorlog?
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • wind
      Smart Home'r
      • 24.09.2015
      • 79

      #17
      Habe folgenden Befehl mit Putty als Benutzer:loxberry versucht: chmod +x control.cgi
      bringt nix, wird nicht grün und als root finde ich nichts.
      Ich kenn mich mit Putty auch nicht aus und muss erst alle Befehle mühsam Googeln

      Was kann ich noch machen ?!

      Kommentar

      • wind
        Smart Home'r
        • 24.09.2015
        • 79

        #18
        Ja wie gesagt ich kenne mich mit putty nicht aus.
        ich weiß aus nicht wie ich zum Errorlog komme.
        mit dem befehl chmod +x control.cgi müsste es ja klappen oder ?
        ich kenne den befehl für putty nicht um die rechte auszulesen
        laut WinSCP sind die Rechte auf rwxr - xr - x

        Kommentar

        • wind
          Smart Home'r
          • 24.09.2015
          • 79

          #19
          Doch noch gefunden

          [Sun Dec 03 06:25:22.724112 2017] [mpm_prefork:notice] [pid 1185] AH00163: Apache/2.4.10 (Raspbian) configured -- resuming normal operations
          [Sun Dec 03 06:25:22.724237 2017] [core:notice] [pid 1185] AH00094: Command line: '/usr/sbin/apache2'
          [Sun Dec 03 07:50:31.191101 2017] [auth_basic:error] [pid 17318] [client 10.0.0.23:56545] AH01618: user loxberry not found: /admin/plugins/tplink/control.cgi
          [Sun Dec 03 07:51:12.056798 2017] [auth_basic:error] [pid 17319] [client 10.0.0.23:56548] AH01618: user loxberry not found: /admin/plugins/tplink/control.cgi
          [Sun Dec 03 07:51:43.648901 2017] [auth_basic:error] [pid 17320] [client 10.0.0.23:56550] AH01618: user loxberry not found: /admin/plugins/tplink/control.cgi
          [Sun Dec 03 10:54:01.106470 2017] [auth_basic:error] [pid 17319] [client 10.0.0.23:57940] AH01618: user loxberry not found: /admin/plugins/tplink/control.cgi
          [Sun Dec 03 11:34:52.076996 2017] [auth_basic:error] [pid 17318] [client 10.0.0.23:58233] AH01618: user loxberry not found: /admin/index.cgi
          [Sun Dec 03 11:35:18.498426 2017] [auth_basic:error] [pid 17319] [client 10.0.0.23:58237] AH01618: user loxberrx not found: /admin/index.cgi
          [Sun Dec 3 11:35:32 2017] index.cgi: Scalar value @fields[6] better written as $fields[6] at /opt/loxberry/webfrontend/cgi/index.cgi line 206.
          [Sun Dec 3 11:35:32 2017] index.cgi: Scalar value @fields[5] better written as $fields[5] at /opt/loxberry/webfrontend/cgi/index.cgi line 207.
          [Sun Dec 3 11:35:32 2017] index.cgi: Subroutine header redefined at /opt/loxberry/webfrontend/cgi/index.cgi line 250.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          [Sun Dec 3 11:35:32 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 21.
          Can't locate IO/Socket/Timeout.pm in @INC (you may need to install the IO::Socket::Timeout module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 21.
          BEGIN failed--compilation aborted at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 21.
          [Sun Dec 03 11:36:12.317574 2017] [cgid:error] [pid 17321] [client 10.0.0.23:58244] End of script output before headers: control.cgi
          Can't locate IO/Socket/Timeout.pm in @INC (you may need to install the IO::Socket::Timeout module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 21.
          BEGIN failed--compilation aborted at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 21.
          [Sun Dec 03 11:39:18.777602 2017] [cgid:error] [pid 16895] [client 10.0.0.23:58250] End of script output before headers: control.cgi

          Kommentar

          • Christian Fenzl
            Lebende Foren Legende
            • 31.08.2015
            • 11250

            #20
            Alles klar, jetzt weiß ich wo der Fehler liegt.

            MAch bitte:
            Code:
             [h=1]sudo apt-get install libio-socket-timeout-perl[/h]
            Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

            Kommentar

            • wind
              Smart Home'r
              • 24.09.2015
              • 79

              #21
              Ah, es tut sich was
              Zuletzt geändert von wind; 03.12.2017, 12:54.

              Kommentar

              • wind
                Smart Home'r
                • 24.09.2015
                • 79

                #22
                Funkt jetz im Browser, aber nicht in Loxone

                Kommentar

                • Christian Fenzl
                  Lebende Foren Legende
                  • 31.08.2015
                  • 11250

                  #23
                  Dann wird was mit der Auth nicht passen.
                  Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

                  Kommentar

                  • wind
                    Smart Home'r
                    • 24.09.2015
                    • 79

                    #24
                    Ja im Browser funktioniert die Auth auch nicht.
                    Es funkt nur wenn ich benutzer und pass noch einmal eingebe wie Post #10

                    Kommentar

                    • wind
                      Smart Home'r
                      • 24.09.2015
                      • 79

                      #25
                      Lustig.
                      Immer wenn ich den Browser öffne schaltet die Steckdose kurz ein und wieder aus.

                      Kommentar

                      • iselo
                        Smart Home'r
                        • 09.12.2017
                        • 53

                        #26
                        Hallo und Guten Abend!

                        Ich habe vor ein paar Tagen auch eine HS110 bekommen möchte diese per Loxone schalten.
                        Per App habe ich die Steckdose ins Wlan eingebunden und funktioniert auch soweit.

                        Am Loxberry habe ich dann "sudo apt-get install libio-socket-timeout-perl"

                        installiert, den Ordner "tplink" in in \\loxberry\loxberry\webfrontend\cgi\plugins\tplink \ erstellt und die control.cgi rein kopiert und "chmod +x control.cgi" aus geführt.

                        Wenn ich jetzt im Chrome "http://loxberry:xxxxxxxxxx@192.168.1.152/admin/plugins/tplink/control.cgi?ip=192.168.1.165&command=on" ausführe bekomme ich immer einen Fehler 500 :-(

                        Internal Server Error.

                        Installiert wurde das Ganze auf einer frischen Loxberry Installation es ist noch kein weiteres Plugin aktiviert.

                        die letzte meldung aus dem error.log file

                        Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 22.
                        BEGIN failed--compilation aborted at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 22.
                        [Sat Dec 09 23:23:39.030671 2017] [cgid:error] [pid 1073] [client 192.168.1.153:63145] End of script output before headers: control.cgi

                        Danke

                        Kommentar

                        • Christian Fenzl
                          Lebende Foren Legende
                          • 31.08.2015
                          • 11250

                          #27
                          Sorry, da fehlt dann auch noch
                          Code:
                          sudo apt-get install  [h=1]libjson-perl[/h]
                          Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

                          Kommentar

                          • iselo
                            Smart Home'r
                            • 09.12.2017
                            • 53

                            #28
                            Vielen Dank für die schnelle Antwort.

                            Installiert und funktioniert!

                            Danke

                            Kommentar

                            • wind
                              Smart Home'r
                              • 24.09.2015
                              • 79

                              #29
                              Wenn ich im Chrome "http://loxberry:XXXXXXXXX@loxberry/admin/plugins/tplink/control.cgi?ip=10.0.0.20&command=on" ausführe bekomme ich immer eine Aufforderung zum Authentifizieren.
                              Errorlog:[Sun Dec 10 09:45:11.648147 2017] [auth_basic:error] [pid 26782] [client 10.0.0.23:63096] AH01618: user loxberry not found: /admin/plugins/tplink/control.cgi


                              Mit dem Benutzer für den Web-Administrationsbereich funktioniert es im Browser.
                              Errorlog:Name "R::verbose" used only once: possible typo at /opt/loxberry/webfrontend/cgi/plugins/tplink/control.cgi line 88.

                              Mit Loxone erreiche ich nichts, egal mit welchen Benutzer.
                              @iselo: könntest du bitte deine Einstellung in der Lox Config posten (Screenshot) wenn möglich ?

                              Warum kommt der Fehler [auth_basic:error] ?

                              lg
                              Windi

                              Kommentar

                              • iselo
                                Smart Home'r
                                • 09.12.2017
                                • 53

                                #30
                                Hier die Screenshots von der LoxConfig hoffe es ist das was du gemeint hast.

                                Klicke auf die Grafik für eine vergrößerte Ansicht  Name: tplink_1.JPG Ansichten: 2 Größe: 102,5 KB ID: 132428
                                Lg
                                Angehängte Dateien
                                Zuletzt geändert von iselo; 10.12.2017, 13:30.

                                Kommentar

                                Lädt...