X

E2 webif api?

Einklappen
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • professor_jonny
    Special VIP
    • 04.05.2010
    • 1609

    [allgemein] E2 webif api?

    I cant start a client to connect how do I seem to get and run the server?

    I'm trying to use the enigma client from Mac http://www.enigma-tv.com
  • GOst4711
    .....
    • 01.01.2008
    • 19501

    #2
    tiMote is the App for Andrioid. At the MAC you can use the browser. (http://ip-from-your-box)
    Or did I misunderstand you?

    Kommentar

    • Wonderdoc
      Ehren VIP
      • 15.12.2010
      • 483

      #3
      Ich denke eher, dass er das Plug-in meint, welches e2 web Anfragen auf die Titan webif Api Mapt.

      Kommentar

      • Einstein
        Nobelpreisträger
        • 01.02.2008
        • 42263

        #4
        Zitat von Wonderdoc Beitrag anzeigen
        Ich denke eher, dass er das Plug-in meint, welches e2 web Anfragen auf die Titan webif Api Mapt.
        Ja, habe ich auch im Einsatz. Port 8080 muss eingestellt werden!

        Kommentar

        • professor_jonny
          Special VIP
          • 04.05.2010
          • 1609

          #5
          Zitat von Einstein Beitrag anzeigen
          Ja, habe ich auch im Einsatz. Port 8080 muss eingestellt werden!
          I can get it to connect from my pc but I get no video and I cant even get a connection from enigma plugin in kodi/xbmc because the username is not enigma as expected by clients.

          This is the below info I have set in my pc:

          web port: 8080
          stream port 8001
          username: root
          password: root

          how do I change the user name? as it is not listed in the configuration file and I need to alter it for compatibility with enigma plugin in kodi/ xbmc?

          I believe I configure the below file to configure the server but username is missing?

          /mnt/swapextensions/etc/e2webserv.conf

          Code:
          # e2 web port
          port=8080
          # e2 data port
          dataPort=8001
          # titan web port
          titanPort=80
          # titan data port
          titanDataPort=22222

          Kommentar

          • GOst4711
            .....
            • 01.01.2008
            • 19501

            #6
            web and stream do not need a user.

            Kommentar

            • professor_jonny
              Special VIP
              • 04.05.2010
              • 1609

              #7
              Zitat von GOst4711 Beitrag anzeigen
              web and stream do not need a user.
              I get error 404 as below when connecting to stream

              Code:
              24/08/2017 12:46:07 AM : 
              Zap to TVNZ 1
              URL with User/Password = http://:@192.168.1.20:22222/1:0:1:40b:16:2f:6400000:0:0:0:
              VLC Option 1 = :http-reconnect=true
              Sent HTTP command : /web/stream.m3u?ref=1:0:1:40b:16:2f:6400000:0:0:0:&name=nothing
              VLC Option 2 = :audio-track=1
              Sent HTTP command : The remote server returned an error: (404) Not Found.
              Sent HTTP command : /web/epgnext?bRef=1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "bouquets.english.tv" ORDER BY bouquet
              is this correct ?
              Code:
              http://:@192.168.1.20:22222/1:0:1:40b:16:2f:6400000:0:0:0:
              should it be:
              Code:
              http://:@192.168.1.20:8001/1:0:1:40b:16:2f:6400000:0:0:0:
              Zuletzt geändert von professor_jonny; 23.08.2017, 14:06.

              Kommentar

              • GOst4711
                .....
                • 01.01.2008
                • 19501

                #8
                The problem is ":@"
                Take this for the test:
                user:root
                password:1234

                Then I dont know anymore

                Kommentar

                • professor_jonny
                  Special VIP
                  • 04.05.2010
                  • 1609

                  #9
                  This is the client I'm using:
                  http://www.enigma-tv.com/modules/download/

                  this is the settings I'm using to connect to TitanNit e2 webif api:
                  # e2 web port=8080
                  local streamport 8001
                  username: root
                  password: root




                  This is the stream the enigma-tv client expects once I connect to my receiver:
                  Code:
                  http://192.168.1.20:22222/1:0:1:40b:16:2f:6400000:0:0:0:
                  this is the stream that actually works :

                  Code:
                   http://192.168.1.20:8001/1:0:1:40b:16:2f:6400000:0:0:0:
                  if I type the working video lan link into internet explorer I get redirected to another port and shorter url which works in Videolan also:

                  Code:
                   http://192.168.1.20:22222/1035%2c3080214
                  I think this is an error in e2webif api as it seems to be streaming on e2 stream port but it request's from the TitanNit streamport but I'm not really sure how it is ment to work.

                  would it be worthwile providing a capture with wireshark or a port mirror for the devs to look at ?
                  Angehängte Dateien
                  Zuletzt geändert von professor_jonny; 24.08.2017, 12:59.

                  Kommentar

                  • professor_jonny
                    Special VIP
                    • 04.05.2010
                    • 1609

                    #10
                    Zitat von GOst4711 Beitrag anzeigen
                    tiMote is the App for Andrioid. At the MAC you can use the browser. (http://ip-from-your-box)
                    Or did I misunderstand you?
                    The problem is TiView is not in English and there are many E2webif clients in English.

                    Also kodi / xbmc use tuxbox and e2webif plugins so I can set up my satellite decoder and connect with kodi to stream tv, recordings, view EPG, schedule recordings picons etc...

                    I would be happy to recompile or do a translation for Tiview if source was available.

                    Kommentar

                    • professor_jonny
                      Special VIP
                      • 04.05.2010
                      • 1609

                      #11
                      I have played with the server via command line and the plugin e2webif replys to a get service command and puts the incorrect port number in the m3u file it sends to the client it uses the titan port and not the e2 port.

                      So you get a e2 response in the form of a playlist as expected with the titan wefif port in the response.

                      This is a bug in e2webif plugin.

                      Code:
                      http://192.168.1.20:8080/web/service.m3u

                      Code:
                      # e2 web port
                      port=8080
                      # e2 data port
                      dataPort=8001
                      # titan web port
                      titanPort=80
                      # titan data port
                      titanDataPort=22222
                      returned playlist.m3u8 file contents:

                      Code:
                      #EXTM3U
                      #EXTVLCOPT--http-reconnect=true
                      http://192.168.1.20:22222/
                      proper response (what m3u should contain) :

                      Code:
                      #EXTM3U
                       #EXTVLCOPT--http-reconnect=true
                       http://192.168.1.20:8001/

                      http://sbnc.dyndns.tv/trac/ticket/537
                      Zuletzt geändert von professor_jonny; 06.09.2017, 20:34.

                      Kommentar

                      • Wonderdoc
                        Ehren VIP
                        • 15.12.2010
                        • 483

                        #12
                        Hi,

                        the streamport 22222 with titan service ref is the correct one in m3u.
                        ago123 wroted in his thread, that an stream request to port 8001 with E2-Service-ref will return an redirect link to the real titan dataport 22222 with titan-Service-ref.
                        The client-app must then use the redirect-URL for the stream.

                        A stream request for E2 service 1:0:1:40b:16:2f:6400000:0:0:0:
                        http://192.168.1.20:8001/1:0:1:40b:16:2f:6400000:0:0:0:

                        return the redirect url to the real streamlink with port 22222 and Titan service 1035%2c3080214
                        http://192.168.1.20:22222/1035%2c3080214

                        It is not possible to uses a E2-Service-ref direkt with titan port 22222
                        The port 8001 is only used on E2webServer to get the redirect link to the real titan stream-url.
                        If you request the service.m3u on port 8080, then you get the m3u to the real titan stream-url(22222 with titan service-ref).

                        Kommentar

                        • professor_jonny
                          Special VIP
                          • 04.05.2010
                          • 1609

                          #13
                          Zitat von Wonderdoc Beitrag anzeigen
                          Hi,

                          the streamport 22222 with titan service ref is the correct one in m3u.
                          ago123 wroted in his thread, that an stream request to port 8001 with E2-Service-ref will return an redirect link to the real titan dataport 22222 with titan-Service-ref.
                          The client-app must then use the redirect-URL for the stream.

                          A stream request for E2 service 1:0:1:40b:16:2f:6400000:0:0:0:
                          http://192.168.1.20:8001/1:0:1:40b:16:2f:6400000:0:0:0:

                          return the redirect url to the real streamlink with port 22222 and Titan service 1035%2c3080214
                          http://192.168.1.20:22222/1035%2c3080214

                          It is not possible to uses a E2-Service-ref direkt with titan port 22222
                          The port 8001 is only used on E2webServer to get the redirect link to the real titan stream-url.
                          If you request the service.m3u on port 8080, then you get the m3u to the real titan stream-url(22222 with titan service-ref).
                          yes that is correct redirection works with an e2 request directly via a web command but when downloading a stream link via m3u it does not put the same url embedded in the m3u file....

                          When I make a request to download a stream via m3u it is returning incorrect data, basically I get the titan data port mixed with the e2 service request in the url.

                          below is what it replys within the m3u the titan port with the e2 web format so redirection does not work as it is invalid link the port should be 8001 so redirection works or use the correct titan service reference right from the bat in the m3u.

                          http://192.168.1.20:22222/1:0:1:40b:...6400000:0:0:0:

                          The plugin is returning an incorrect e2 url for redirection within the m3u file sent via the e2 server or it is putting the incorrect service reference field format into the m3u file.

                          This depends on the server if it asks for an m3u file to stream or if it sends the web if string directly so it will work with some e2 web if clients and it wont with others depending on how they ask to stream the service.
                          Zuletzt geändert von professor_jonny; 13.09.2017, 01:25.

                          Kommentar

                          • Wonderdoc
                            Ehren VIP
                            • 15.12.2010
                            • 483

                            #14
                            Hi,

                            I have Test it on my sh4 ufs922 Receiver.
                            If i send a request
                            http://192.168.31.100:8001/1:0:1:40b...6400000:0:0:0:
                            I get a redirect url to
                            http://192.168.31.100:22222/1035%2c3080214
                            That is correct.

                            If i send a request
                            http://192.168.31.100:8080/web/strea...6400000:0:0:0:
                            I get a Playlist.m3u8 file.

                            If i take a look into the file, i can Not see any Problems.
                            #EXTM3U
                            #EXTVLCOPT--http-reconnect=true
                            http://192.168.31.100:22222/1035,3080214

                            If i send a request
                            http://192.168.31.100:8080/web/strea...:&name=nothing
                            I get a playlist.m3u8 File, too.

                            If i Open it, it seems all ok.
                            #EXTM3U
                            #EXTVLCOPT--http-reconnect=true
                            http://192.168.31.100:22222/1035,3080214

                            Kommentar

                            • Wonderdoc
                              Ehren VIP
                              • 15.12.2010
                              • 483

                              #15
                              Please take a Look in the /tmp/e2webserv.log file.

                              http://192.168.31.100:8001/1:0:1:40b...6400000:0:0:0:
                              Code:
                              13.09 07:16:26 [2af604c0] DBG SRV -- new request
                              13.09 07:16:26 [2af604c0] INF SRV -- GET /1:0:1:40b:16:2f:6400000:0:0:0:
                              13.09 07:16:26 [2af604c0] DBG CLI -- GET: /queryraw?getaktservice
                              13.09 07:16:26 [2af604c0] DBG CLI -- OK, len=100
                              13.09 07:16:26 [2af604c0] DBG CLI -- GET: /queryraw?switch&1035&3080214
                              13.09 07:16:26 [2af604c0] DBG CLI -- OK, len=100
                              13.09 07:16:26 [2af604c0] INF SRV -- 302 Moved Temporarily, loc=http://192.168.31.100:22222/1035%2c3080214
                              13.09 07:16:26 [2af604c0] DBG SRV -- request handled
                              E2webserver is Version 1.1.14.
                              You can see it in the Logfile
                              Code:
                              13.09 06:08:55 [29760000] INF SRV -- start server: GsE2TitanBridge/1.1.14
                              On github you can find an newer bin Version 1.1.15 for sh4/mipsel.

                              Kommentar

                              Nicht konfiguriertes PHP-Modul

                              Einklappen

                              E2 webif api?

                              Einklappen
                              Lädt...
                              X