Ankündigung

Einklappen
Keine Ankündigung bisher.

Enigma2 Plugin

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #46
    Hallo,

    Ich hab das Plugin mal in mein frisch aufgesetztes System mit 1.2 shNG eingebaut. Meine Box ist eine Dreambox 7020HD.
    Leider bekomme ich eine Menge an Errors ins Log. Siehe Auszug.

    Code:
    2016-08-16  15:56:39 DEBUG    plugins.enigma2_dm7020hd Starting update loop for instance dm7020hd
    2016-08-16  15:56:39 DEBUG    plugins.enigma2_fast_dm7020hd Starting fast update loop for instance dm7020hd
    2016-08-16  15:56:39 INFO     plugins.enigma2_dm7020hd Starting new HTTP connection (1): 192.168.0.2
    2016-08-16  15:56:39 INFO     plugins.enigma2_fast_dm7020hd Starting new HTTP connection (2): 192.168.0.2
    2016-08-16  15:56:39 DEBUG    plugins.enigma2_dm7020hd "GET /web/deviceinfo HTTP/1.1" 401 159
    2016-08-16  15:56:39 DEBUG    plugins.enigma2_dm7020hd Filling reponse cache for /web/deviceinfo!
    2016-08-16  15:56:39 INFO     plugins.enigma2_dm7020hd Attribute e2ip not available on the Enigma2Device
    2016-08-16  15:56:39 DEBUG    plugins.enigma2_fast_dm7020hd Accessing fast reponse cache for /web/about!
    2016-08-16  15:56:39 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
    2016-08-16  15:56:39 INFO     plugins.enigma2_fast_dm7020hd Attribute e2vpid not available on the Enigma2Device
    2016-08-16  15:56:39 INFO     plugins.enigma2_dm7020hd Attribute e2dhcp not available on the Enigma2Device
    2016-08-16  15:56:40 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
    2016-08-16  15:56:40 INFO     plugins.enigma2_dm7020hd Attribute e2mac not available on the Enigma2Device
    2016-08-16  15:56:40 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
    2016-08-16  15:56:40 DEBUG    plugins.enigma2_fast_dm7020hd "GET /web/powerstate HTTP/1.1" 401 159
    2016-08-16  15:56:40 INFO     plugins.enigma2_dm7020hd Attribute e2gateway not available on the Enigma2Device
    2016-08-16  15:56:40 DEBUG    plugins.enigma2_fast_dm7020hd Filling fast reponse cache for /web/powerstate!
    2016-08-16  15:56:40 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
    2016-08-16  15:56:40 INFO     plugins.enigma2_fast_dm7020hd Attribute e2instandby not available on the Enigma2Device
    2016-08-16  15:56:40 INFO     plugins.enigma2_dm7020hd Attribute e2netmask not available on the Enigma2Device
    2016-08-16  15:56:40 DEBUG    plugins.enigma2_fast_dm7020hd Accessing fast reponse cache for /web/about!
    meine plugin.conf
    Code:
    [DM7020HD]
        class_name = Enigma2
        class_path = plugins.enigma2
        host = 192.168.0.2
        port = 80
        cycle = 240
        fast_cycle = 30
        ssl = False    # use https or not
        verify = False # verify ssl certificate
        instance = dm7020hd
    Ist meine Box nicht kompatibel zum Plugin?
    PluginVersion lt. Backend Plugin ist 1.1.11

    mfg
    Markus
    Zuletzt geändert von fuxl66; 16.08.2016, 15:18.

    Kommentar


      #47
      Das sind DEBUGs und INFOs, aber keine ERRORs. Die DEBUGs sagen bspw. nur, dass der Cache gefüllt wird, oder wenn Verbindungen geöffnet werden. DEBUGs sind ganz normal und auch in anderen Plugins in Verwendung. Die Infos, dass ggf. manche Items bei Dir nicht gehen. Die würde ich erstmal rausnehmen und den Rest testen. Manchmal sind manche Items aber auch nicht befüllbar, weil die Box bspw. im Standby ist, bspw. der TV Sender, drum sind das auch nur INFOs geworden Einfach mal beobachten und sukzessive testen und nicht gleich alle Items kopieren...
      Zuletzt geändert von psilo; 16.08.2016, 15:56.

      Kommentar


        #48
        Ok, ich hatte den falschen Teil des Logs gepostet. Ich hab nun die Anzahl der items stark reduziert. Gleiches Ergebnis. Keine einziges Item liefert Werte.

        Plugin.conf
        Code:
        [DM7020HD]
            class_name = Enigma2
            class_path = plugins.enigma2
            host = 192.168.0.2
            port = 80 # 81 for "vu"-boxes, it may be port 80 for a dreambox
            cycle = 240
            fast_cycle = 30
            ssl = False    # use https or not
            verify = False # verify ssl certificate
            instance = dm7020hd
        items.conf
        Code:
        [enigma2]
            [[dm7020hd]]
                [[[e2ip]]]
                    type = str
                    enigma2_data_type@dm7020hd = e2ip
                    enigma2_page@dm7020hd = deviceinfo
                    visu_acl = ro
                [[[e2enigmaversion]]]
                    type = str
                    enigma2_data_type@dm7020hd = e2enigmaversion
                    enigma2_page@dm7020hd = deviceinfo
                    visu_acl = ro
                [[[e2imageversion]]]
                    type = str
                    enigma2_data_type@dm7020hd = e2imageversion
                    enigma2_page@dm7020hd = deviceinfo
                    visu_acl = ro
                [[[e2webifversion]]]
                    type = str
                    enigma2_data_type@dm7020hd = e2webifversion
                    enigma2_page@dm7020hd = deviceinfo
                    visu_acl = ro
                [[[e2model]]]
                    type = str
                    enigma2_data_type@dm7020hd = e2model
                    enigma2_page@dm7020hd = about
                    visu_acl = ro
                [[[e2instandby]]]
                    type = bool
                    enigma2_data_type@dm7020hd = e2instandby
                    enigma2_page@dm7020hd = powerstate
                    visu_acl = ro
        Debug Log
        Code:
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd Starting update loop for instance dm7020hd
        2016-08-16  21:09:57 INFO     plugins.enigma2_dm7020hd Starting new HTTP connection (1): 192.168.0.2
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd "GET /web/deviceinfo HTTP/1.1" 401 159
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd Filling reponse cache for /web/deviceinfo!
        2016-08-16  21:09:57 INFO     plugins.enigma2_dm7020hd Attribute e2ip not available on the Enigma2Device
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
        2016-08-16  21:09:57 INFO     plugins.enigma2_dm7020hd Attribute e2enigmaversion not available on the Enigma2Device
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
        2016-08-16  21:09:57 INFO     plugins.enigma2_dm7020hd Attribute e2imageversion not available on the Enigma2Device
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
        2016-08-16  21:09:57 INFO     plugins.enigma2_dm7020hd Attribute e2webifversion not available on the Enigma2Device
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd "GET /web/about HTTP/1.1" 401 159
        2016-08-16  21:09:57 DEBUG    plugins.enigma2_dm7020hd Filling reponse cache for /web/about!
        2016-08-16  21:09:57 INFO     plugins.enigma2_dm7020hd Attribute e2model not available on the Enigma2Device
        2016-08-16  21:09:57 DEBUG    Scheduler    plugins.enigma2_dm7020hd next time: 2016-08-16 21:13:57+02:00
        2016-08-16  21:09:59 DEBUG    Main         KNX[default]: 1.1.27 set 3/0/50 to 0118
        2016-08-16  21:09:59 DEBUG    plugins.enigma2_fast_dm7020hd Starting fast update loop for instance dm7020hd
        2016-08-16  21:09:59 DEBUG    plugins.enigma2_fast_dm7020hd "GET /web/powerstate HTTP/1.1" 401 159
        2016-08-16  21:09:59 DEBUG    plugins.enigma2_fast_dm7020hd Filling fast reponse cache for /web/powerstate!
        2016-08-16  21:09:59 DEBUG    Main         KNX[default]: 1.1.30 set 9/0/11 to 00581636
        2016-08-16  21:09:59 INFO     plugins.enigma2_fast_dm7020hd Attribute e2instandby not available on the Enigma2Device
        2016-08-16  21:10:00 DEBUG    Scheduler    plugins.enigma2_fast_dm7020hd next time: 2016-08-16 21:10:30+02:00
        Woran kann das liegen? Die Dreambox läuft die ganze Zeit!

        CLI
        Code:
        > ls enigma2
        Items:
        ======
        enigma2
        enigma2.dm7020hd
        enigma2.dm7020hd.e2ip =
        enigma2.dm7020hd.e2enigmaversion =
        enigma2.dm7020hd.e2imageversion =
        enigma2.dm7020hd.e2webifversion =
        enigma2.dm7020hd.e2model =
        enigma2.dm7020hd.e2instandby = False
        mfg
        Markus

        Kommentar


          #49
          richtiger port? mal im browser geschaut was kommt?

          Kommentar


            #50
            Ja, port ist sicher 80. Im browser komm ich zum webif. Vorher allerdings mit user/pwd Abfrage.

            Kommentar


              #51
              mal eines der xmls aufgerufen? auch user/pwd? glaube das plugin konnte das sogar, konnte es aber nie testen

              zu den xmls siehe hier http://dream.reichholf.net/e2web/

              Kommentar


                #52
                joa username, password settings in der plugin.conf siehe readme.. teste aber mal ob der schutz auch vor den xmls ist

                Kommentar


                  #53
                  Funktioniert ohne user/pwd abfrage
                  Code:
                   <e2currentserviceinformation>
                  <e2service>
                  <e2servicereference>1:0:19:132F:3EF:1:C00000:0:0:0:</e2servicereference>
                  <e2servicename>ORF1 HD</e2servicename>
                  <e2providername>ORF</e2providername>
                  <e2videowidth>1280</e2videowidth>
                  <e2videoheight>720</e2videoheight>
                  <e2servicevideosize>1280x720</e2servicevideosize>
                  <e2iswidescreen/>
                  e2servicename hatte ich als item schon getestet....ohne Erfolg. Xml funktioniert wie du siehst.


                  /web/deviceinfo funktioniert auch....via item nicht. Siehe oben zb e2ip
                  Code:
                    <e2deviceinfo>
                  <e2enigmaversion>2015-12-30-tarball</e2enigmaversion>
                  <e2imageversion>Experimental 2014-11-07</e2imageversion>
                  <e2webifversion>1.7.5</e2webifversion>
                  <e2fpversion>3</e2fpversion>
                  <e2devicename>dm7020hd</e2devicename>
                  <e2frontends>
                  <e2frontend>
                  <e2name>Tuner A</e2name>
                  <e2model>BCM4505 (DVB-S2)</e2model>
                  </e2frontend>
                  <e2frontend>
                  <e2name>Tuner B</e2name>
                  <e2model>BCM4505 (DVB-S2)</e2model>
                  </e2frontend>
                  </e2frontends>
                  <e2network>
                  <e2interface>
                  <e2name>eth0</e2name>
                  <e2mac>00:09:34:2e:23:e4</e2mac>
                  <e2dhcp>False</e2dhcp>
                  <e2ip>192.168.0.2</e2ip>
                  <e2gateway>192.168.0.10</e2gateway>
                  <e2netmask>255.255.255.0</e2netmask>
                  </e2interface>
                  </e2network>
                  <e2hdds></e2hdds>
                  </e2deviceinfo>
                  Zuletzt geändert von fuxl66; 16.08.2016, 21:27.

                  Kommentar


                    #54
                    Naja dann hilft nur in der "def box_request(self, suffix, parameter='')" das "response.content" mal rauszuloggen.
                    Du hast ja sichergestellt, dass beim XML das Passwort nicht noch wegen des Logins in die GUI des WebIF gesetzt war?

                    Code:
                            try:
                                self.logger.debug(response.content)
                                xml = minidom.parseString(response.content)
                            except Exception as e:
                                self.logger.error("Exception when parsing response: %s" % str(e))
                                xml = minidom.parseString('<noanswer/>')
                            return xml
                    PS: ich habe selber eine VUSolo2 bzw 4k. Evtl ist die Dreambox etwas anders. Mal Msinn fragen.

                    Kommentar


                      #55
                      Zitat von psilo Beitrag anzeigen
                      Naja dann hilft nur in der "def box_request(self, suffix, parameter='')" das "response.content" mal rauszuloggen.
                      Du hast ja sichergestellt, dass beim XML das Passwort nicht noch wegen des Logins in die GUI des WebIF gesetzt war?

                      Code:
                      try:
                      self.logger.debug(response.content)
                      xml = minidom.parseString(response.content)
                      except Exception as e:
                      self.logger.error("Exception when parsing response: %s" % str(e))
                      xml = minidom.parseString('<noanswer/>')
                      return xml
                      Das musst du mir nochmal ausdeutschen? Wohin soll ich diesen Code setzen?

                      Kommentar


                        #56
                        na in der def box_request wie geschrieben...

                        den block gibt es bis auf logger.debug 1:1 da drin..

                        Kommentar


                          #57
                          Also,

                          def box_request eingetragen.

                          Xml Abfrage im Browser klapp nur MIT Passworteingabe, daher hab ich die Plugin.conf entsprechend erweitert.
                          Code:
                          [DM7020HD]
                              class_name = Enigma2
                              class_path = plugins.enigma2
                              host = 192.168.0.2
                              username = root
                              password = dreambox
                              port = 80 # 81 for "vu"-boxes, it may be port 80 for a dreambox
                              cycle = 240
                              fast_cycle = 30
                              ssl = False    # use https or not
                              verify = False # verify ssl certificate
                              instance = dm7020hd
                          debug log
                          Code:
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_dm7020hd Starting update loop for instance dm7020hd
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_fast_dm7020hd Starting fast update loop for instance dm7020hd
                          2016-08-17  20:26:00 INFO     plugins.enigma2_dm7020hd Starting new HTTP connection (1): 192.168.0.2
                          2016-08-17  20:26:00 INFO     plugins.enigma2_fast_dm7020hd Starting new HTTP connection (2): 192.168.0.2
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_dm7020hd "GET /web/deviceinfo HTTP/1.1" 401 159
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_dm7020hd b'\n<html>\n  <head><title>401 - Access denied</title></head>\n  <body>\n    <h1>Access denied</h1>\n    <p>Authentication credentials invalid!</p>\n  </body>\n</html>\n'
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_dm7020hd Filling reponse cache for /web/deviceinfo!
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_fast_dm7020hd "GET /web/powerstate HTTP/1.1" 401 159
                          2016-08-17  20:26:00 INFO     plugins.enigma2_dm7020hd Attribute e2ip not available on the Enigma2Device
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_fast_dm7020hd b'\n<html>\n  <head><title>401 - Access denied</title></head>\n  <body>\n    <h1>Access denied</h1>\n    <p>Authentication credentials invalid!</p>\n  </body>\n</html>\n'
                          2016-08-17  20:26:00 INFO     plugins.enigma2_dm7020hd Attribute e2enigmaversion not available on the Enigma2Device
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_fast_dm7020hd Filling fast reponse cache for /web/powerstate!
                          2016-08-17  20:26:00 DEBUG    plugins.enigma2_dm7020hd Accessing reponse cache for /web/deviceinfo!
                          2016-08-17  20:26:00 INFO     plugins.enigma2_fast_dm7020hd Attribute e2instandby not available on the Enigma2Device
                          2016-08-17  20:26:00 DEBUG    Scheduler    plugins.enigma2_dm7020hd next time: 2016-08-17 20:30:00+02:00
                          scheinbar trotzdem Access denied!

                          Kann ich noch etwas liefern um den Fehler zu beheben?

                          mfg
                          Markus

                          Kommentar


                            #58
                            fuxl66 naja ich kann das halt leider hier nicht testen. frage ist ob das eine normale basic auth ist, die via
                            Code:
                            response = self._session.get(url, timeout=self._timeout,
                                                                     auth=HTTPDigestAuth(self._enigma2_device.get_user(),
                                                                                         self._enigma2_device.get_password()), verify=self._verify)
                            funktioniert. Das habe ich vom AVM übernommen, auf FritzBoxen geht es so. Meine VUSolo's haben keine Auth vor den XMLs, evtl kann Msinn das mal nachtesten oder mir einer sagen, ob man das standardmäßig anschalten kann? Selber im Apache was davorzubasteln ist wohl nicht zielführend für den Test.

                            Mich wundert aber, dass Du hier keinen response.content rausloggst bzw es keine Exception gibt die dann ein
                            self.logger.error("Exception when sending GET request: {0}".format(str(e)))
                            macht.

                            Update.. man sieht es doch: b'\n<html>\n <head><title>401 - Access denied</title></head>\n <body>\n
                            Zuletzt geändert von psilo; 18.08.2016, 15:02.

                            Kommentar


                              #59
                              Update: denke ich hab raus wie ichs bei mir aktiviere.. teste mal das Plugin damit..
                              Update2: ich kann es via GUI aktivieren, allerdings zieht er dann nicht wie dokumentiert das root Passwort an.. kein Plan wie ich das hinkriege.. Beide Boxen sind bei mir daher nach wie vor ohne Passwort im OpenWebIF
                              Update3: so passwort nun aktiv..
                              Zuletzt geändert von psilo; 18.08.2016, 15:23.

                              Kommentar


                                #60
                                Mir fällt grade ein....in den Webinterface Settings der Dreambox gibt es die Möglichkeit die Authentifizierung für http Zugriff zu deaktivieren.
                                Werd ich auch mal testen!
                                <<Screenshot>>

                                Kommentar

                                Lädt...
                                X