Giter Club home page Giter Club logo

e2openplugin-openwebif's Introduction

Build

OpenWebif

OpenWebif is an open source browser-based interface for Enigma2-based set-top boxes (STBs).

Screenshots

Classic interface

(TODO: add Modern interface screenshots)

Usage

To find out how to access it from your browser, go to OpenWebif's configuration via your receiver's Plugins page. You'll see the http... address to use at the bottom.

Documentation

Read the e2openplugin OpenWebif documentation.

Browse OpenWebif API Wiki.

Found a Problem / Issue / Bug / Missing Feature?

First, check whether it's already been logged.

Otherwise, feel free to log a new issue or request.

** Always try the most recent build first to see if this solves the issue! **

If that doesn't help, please provide as much information as possible!

You'll need to enable the Debug | Display Tracebacks in browser setting, either:

  • through OpenWebif configuration, which can be found via your receiver's Plugins page

or

  • by adding the line config.OpenWebif.displayTracebacks=true to your receiver's /etc/enigma2/settings file

Along with the information on the steps you took that caused the issue, the following will be very useful:

  • whether the issue is constant or intermittent
  • if it has just recently started happening (perhaps after an update)
  • screenshots - a picture really is worth a thousand words!
  • whether the issue happens on just one or several browsers
    • try with a mainstream browser (Brave / Chrome / Firefox / Safari / Edge)
    • try disabling browser extensions & plugins
  • if you've installed any plugins which could be related to the issue

** Note that the more detail we get, the sooner we'll be able to investigate! **

We have limited free time and often only have one configuration at our disposable, so...

If possible, even more helpful details to include are:

  • device type and OS (Mac OS / Windows / Android / Apple ...)
  • OS or device version (Monterey / Win10 / Android 11 / iOS12 ...)
  • browser (Brave / Chrome / Firefox / Safari / Edge ...)

Latest Reports

[Bandit]: OpenWebif Bandit Report

[Flake8]: OpenWebif Flake8 report

[JSHint]: Modern interface report | Classic interface report

License

OpenWebif is licensed under the GNU General Public License, Version 3.

Latest Package

Download the most recent OpenWebif ipk package


Installation

OpenWebif is installed by default on a number of enigma2 images

To install the plugin manually:

## connect to your enigma2 device via SSH/Telnet, (eg. `ssh root@boxip`), then

# change to the temp directory
cd /tmp

# shut down enigma2 gracefully
init 4

# fetch OpenWebif ipk
wget -O openwebif.ipk https://github.com/E2OpenPlugins/e2openplugin-OpenWebif/raw/gh-pages/enigma2-plugin-extensions-openwebif_latest_all.ipk

# install downloaded ipk file
opkg install openwebif.ipk

# restart enigma2
init 3

Custom SSL Certificate

If you want to use your own certificate, then replace both /etc/enigma2/key.pem and /etc/enigma2/cert.pem with your own key and cert, in PEM format.

Restart Enigma2 after replacing those files.

Using your own CA

You can also put the ca cert as /etc/enigma2/ca.pem and enable HTTPS Client Cert auth in settings you can even login using Client certs signed by the same CA auth.

It doesn't bypass the password login yet and you should of course use your own CA, because else any client with a key signed by that CA auth can login, as there is no option to limit access to certain users (yet, and probably newer will be).

See also #215

Problems with a custom Certificate

Creating key and cert is beyond the scope of this readme. I found Ivan Ristić's openssl cookbook helpful.

FWIW, an ecparam secp384r1 key and a ecdsa-with-SHA256 cert with 4 SAN worked just fine on the following;

root@vuduo4kse:~# date ; cat /etc/os-release 
Wed Nov 29 22:58:24 CET 2023
ID=openbh
NAME="openbh"
VERSION="5.1"
VERSION_ID=5.1
PRETTY_NAME="openbh 5.1"

Development Information

See what's been happening, check out the OpenWebif changelog

Dependencies

The following additional packages need to be installed:
(dependencies should be handled by using ipkg/opkg packages)

python-pprint
python-cheetah
python-json
python-unixadmin
python-misc
python-twisted-web
python-pyopenssl
python-compression
python-ipaddress
python-six (>= 1.14)

File Paths

The OpenWebif plugin's files are located on the enigma2 box at /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif

On non-dev builds, .tmpl files will need to be generated to .py

  • connect to the stb (eg. ssh root@boxip)
  • manually delete the .pyc/.pyo file(s) associated with the template(s) you've modified (enigma2 will regenerate them) cheetah compile --nobackup --iext=.tmpl -R /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/views/
  • restart Twisted server by going to /web/restarttwisted in the browser or
  • restart enigma2 init 4 && init 3

Updating Assets

Find out how to make changes to OpenWebif's JS & CSS assets.

e2openplugin-openwebif's People

Contributors

a4tech avatar abubaniaz avatar athoik avatar chipcard avatar cimarast avatar dependabot[bot] avatar dima73 avatar doubleo8 avatar hdmu avatar hsa2000 avatar huevos avatar jbleyel avatar koivo avatar littlesat avatar lupomeo avatar mickeyreg avatar nobody9 avatar nunigaia avatar persianpros avatar priskvark avatar rdamas avatar rimasx avatar schimmelreiter avatar scuotivento avatar technl avatar thawtes avatar tinola avatar wanwizard avatar weblate avatar wedebe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

e2openplugin-openwebif's Issues

Enhancement request

It would be very nice if we could download a ".m3u" playlist file with all channels in a bouquet like it is possible to do in old webinterface.

I think this is a major drawback in openwebif.
besides this you are doing a great job.
Thank you

Can't grab screenshoot!?

When i want to grab screenshot in Open Webif (in FF, IE, Opera, etc...), Screenshot(OSD) working good, but Screenshot(All) and Screenshot(Video) not working, just spinning.

I don't need Screenshot(Video), but Screenshot(All) will be appreciated.

Sh4 box with ARP enigma.

I updated from version 0.1.3 (which had the same problem) to 0.1.5 - same thing.

Feature Request: EPG Modification

Would it be possible to change the EPG to have the times horizontally along the top and the channels vertically on the left side? Seems to make more sense going that way.

Thanks

Write Access

Hello,

can i get write access to this repro.

Thanks

Feature request remotely start media player

Hi,

It would be great feature, if we could start a movie via web interface.
It is quite easy, in Streaming, movies, we can browse all our recordings and other movies.
We can even sream, or download them.

It would be exellent, if we can "zap" or start playing locally movies as well.
It could be the same as "zap" in channels list - clicking on the name of movie could start playing locally.

I thing this is quite easy to be made (have a look at the picture for an idea)
openwebif1

SSL support

Hi,

I was wondering when a version built with HTTPS-support would be built? I saw that Cimarast committed the code for it.

I don´t know where else to ask. By "built" I mean upgradable from plugins on the dreambox.

Dreambox 7020hd with OpenPli

Br. Patrik

Timer issue OWIF 0.1.3

If i create recording timer from epg and leave location to default it will cause scheduling to fail when OpenVix should start recording.

I have no idea is there some settings to solve this or is this a bug.

In recording settings of OpenVix :

  • Default folder is /hdd/movie
  • Timer recodring location is Default folder

WEBIF

Changed port and webif crashed on pressing green to save changes

OpenWebif mobile

Is it possible to switch between mobile and full version on smartphones?
(cannot change channel using OpenWebif mobile with iPhone) so can only record channel box is on.

Add timer for radiochannels without EPG

Hello,

I have a feature request which is also available in the original webif.
To put a timer for radio channels which doesn't have an EPG. As the most radio stations don't have an EPG it's not possible to put a timer to record some hours of that radio stations. Now this is only possible at the receiver itself. My question is to add the radio channels bouquets also at the function:

"Box control - Timers - Add timer - Channel:"

There you can find only the tv channels.

Thanks!

Support multiple streams when dual-tuner available

Hi

i have a Vu+Solo shich i have added a Sundtek USB tuner to, i can watch 1 stream on the STB, and stream another, however, i cannot open 2 streams and occupy both tuners.

I have experimented with assigning another streamproxy to port 8002, and changing in my .m3u file so i access VLC with port 8002, and another instance of VLC on port 8001, but it seems like when i start the other player the first player freeezes, so im trying to read some code too see whether it's a limitation in the webif code, of a enigma2 general issue.

Got any insights for me? Is this a known problem, or has it got anything to do with my setup?

OpenWebif mobile template - Timer issue

Hi everyone !

It is impossible to set a timer using an iPhone. The "+" button in the mobile's template is not linked to anything...

/plugin/controllers/views/mobile/timerlist.tmpl :
Line 17 : div class="button-bold">+ </div

There should definitely be a way to link this button and make it functional... Any idea ?

Feature Request : Keyboard

Hi,

is it possible to integrate a full QUERZ Keyboard View?
I have try something but enigma2 will not do what i want.

WHY? : The input of Text is very difficult with the remote control keys.

Thanks

formatIp(ip) bug in / plugin / controllers / models / info.py

i get an error from this:

/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/info.py, line 31 in formatIp
29
30def formatIp(ip):
31 if len(ip) != 4: <- here
32 return None

"ip" can be "none". fix:

def formatIp(ip):
if ip is None:
return None
if len(ip) != 4:
return None
return "%d.%d.%d.%d" % (ip[0], ip[1], ip[2], ip[3])

Feature request: Tuner setup and scanning

Hi,

I think you're doing a great with the OpenWebif!

I still have a feature request though... With OpenPLi remote streaming it's possible to add channels from remote tuners to bouquets which works quite nicely.

What I'd like to do is remove the need for a bunch of satellite cables into your house and place a "fat" receiver with a number of tuners at the site of the dish and switches itself. The "thin" receiver in the living room should need to tuners or sat cables then.

For this to work, the "fat" receiver should be controllable remotely without the need to hook up a display and a remote control. For a large part this is already possible using the webif.

What now still misses (imho) is a possibility to setup tuners remotely and do a scan on them, remotely. If the webif would feature that, the above setup would become possible.

I think many people will be interested once they know what's possible now!

EPG in OpenWebif

Open Webif does not represent the epg properly.
In order to have some formatting in the epg control charachters \n or \r\n of \n\r are used.
Also line feeds CHR(10) and CHR(13) are used. These are added to obtain a little of bit formatting and increase the readability

All these are not properly displayed in the epg presentation of OpenWebif.
See the attached screenshots.
In Enigma these are properly presented. (line feeds)

These \n \r tags are currently present when importing the rytecxmltv in numerous channels.
één (HD) en Nederland1 (HD) to name two

Could this be fixed.

Willy

epg
epg2

SSL Code for Certificates

Hi,

about 2 monts ago ssl support has been integrated into the openwebif.
Part of code is a very very close copy (about 95% i'd say) of the original webinterface code which licensed in an gpl-incompatible fashion.

please see:

https://schwerkraft.elitedvb.net/plugins/scmgit/cgi-bin/gitweb.cgi?p=enigma2-plugins/enigma2-plugins.git;a=blob;f=webinterface/src/plugin.py;h=5cf273e75b7db160fe4f2f0e764be86fa1aa0810;hb=d04b8b4a560b88d22c35e33031f9c06d96f531f9#l107

and:

https://github.com/E2OpenPlugins/e2openplugin-OpenWebif/blob/master/plugin/httpserver.py#L250

for approval.
I'm sorry i didn't come up with this erarlier but i rarely drop in here.
It's not a lot of code so it's not big deal to resolve this quite easily.

Thanks for your cooperation,

Reichi

add OpenWEBIF Update/Upgrade

Hello,

Could you ,please, Include this functionality in OpenWEBIF to Update/Upgrade it Online, Or offline by selecting ".tar.gz" file.

Best Regards

Screenshot issue with 2 tuners

After trying to retrieve a screenshot while 2 tuners are working (Sundtek dvbs2 usb driver with Suntek Control Center plugin), the feature doesn't work anymore.

In /tmp, the "screenshot.jpg" is not refreshed anymore. Using the telnet "Grab" command does not work anymore, even when removing the usb tuner.

I am using OpenPli 2.1 on a DM800se

"epgpop" page font style

Would be great to align the font family of the EPG search page to the main one, I think now is using Times New Roman while the whole main interface is in Verdana/Arial/Sans Serif.

Thanks

Conflicting Timer(s) detected!

If i have more than one tuner an i will add a new timer on the same time of a existing timer i get :

"Conflicting Timer(s) detected!"

Can't "zapto" channels defined as alternatives

While the "old" webinterface can zapto channels that are defined as alternatives ...

userbouquet.favourites.tv:

SERVICE 1:134:1:0:0:0:0:0:0:0:FROM BOUQUET "alternatives.RTLHD.tv" ORDER BY bouquet

alternatives.RTLHD.tv

NAME RTL HD

SERVICE 1:0:19:EF10:421:1:C00000:0:0:0

SERVICE 1:0:1:2EE3:441:1:C00000:0:0:0

Saved with Bouquet Editor Suite v1.22

OpenWebif fails doing so.

Behaviour in OpenWebif:
Does nothing, goes nowhere

Behaviour in old web interface:
Zaps to first available service defined as alternative

Expected behavior:
As in old web interface

I use alternatives a lot, especially for each and every HD channel to define the SD variant as alternative.

Feature request: add timer in MultiEPG

Fantastic the new MultiEPG feature in OpenWebIF. Is there a possibility to add the timer symbol (the alarmclock) in the window when you click at the name of the program name in the list? Easy to put a timer to record that program. This will finish the MultiEPG feature in my opinion.

Thanks a lot

Edgar

parental control probelm

you can watch any channel with parental control enabled in Open WebIF

someone should fix this

Add AZBOX images to BOXINFO brand

Hi guys, could you add correct Brand to BOXINFO in azbox receivers?
I can provide you with azbox images and coordinates.
Thank you very much in advance.

Android & OpenWebIf - Standby issue

Currently, using dreamdroid (would prefer not to, but personally it's the best app I've found to use on android, so stuck with it).

Anyway, Using openwebif, if I try using the "Power Control" -> "Standby", I get a Force Close... I'm guessing that this is because the app uses the "Signal Panel" flag:

http://i.imgur.com/T4Nq9.png

Screenshot above taken using the original webif for dmm...

Using dreamdroid on that webif, When I toggle standby, I get a message "Device is now running" or "Device is now in Standby-Mode". If I try it on openwebif, I get a long wait, and then the app crashes. As far as I remember, it works perfectly fine on the box, just crashes the phone...

Using reboot etc works fine, it's just the standby. Would there be a possibility of setting this flag?

My guess is that this is the code that tells it whether it's in standby:

protected static final String TAG_E2INSTANDBY = "e2instandby";

Many thanks.

OpenWebif - Extend shared pmt streaming to recordings

For some channels, VLC requires the specific program stream (the sid). The sid value for a broadcast recording is in the '.meta' file. Within the file usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/stream.py there is a procedure "getTS" which can be altered to include the SID required by VLC:

def getTS(self,request):
if "file" in request.args:
filename = unquote(request.args["file"][0]).decode('utf-8', 'ignore').encode('utf-8')
if not os.path.exists(filename):
return "File '%s' not found" % (filename)
sRef = ""
if os.path.exists(filename + '.meta'):
metafile = open(filename + '.meta', "r")
line = metafile.readline()
if line:
sRef = eServiceReference(line.strip()).toString()
metafile.close()
if sRef != '':
progopt="#EXTVLCOPT:program=%d\n" % (int(sRef.split(':')[3],16))
else:
progopt=""
response = "#EXTM3U\n#EXTVLCOPT--http-reconnect=true \n%shttp://%s:%s/file?file=%s\n" % (progopt,request.getRequestHostname(), config.OpenWebif.port.value, quote(filename))
request.setHeader('Content-Type', 'application/text')
return response
else:
return "Missing file parameter"

Perhaps someone who has developer access can commit this enhancement so that others can enjoy. Meanwhile, I am happy being able to stream recordings (rather than just 'live') of shared pmt channels. With this change, I am able to stream channels recorded from Optus C1 in the Aurora package (eg. WIN, GWN, IMP, 7Central etc.)

cheers

Support other web based plugins

Is it possible to support the web features of autotimer, epgrefresh and webbouqueteditor without DMM webinterface plugin installed on the box?

Parental lock issue

Wanted to try to ensure LO didn't accidentally turn over to any pr0n, so enabled the parental lock (Menu -> Setup -> Parental Control). Enabled it with the following settings:

http://i.imgur.com/YxHjk.jpg

Now, changing over to a pr0n channel works perfectly fine (asks for pin). However, if I change over using webif, then it loads the channel up perfectly, and doesn't ask for a pin or anything. Surely the plugin should read the e2 settings to see whether the following line is activated:

config.ParentalControl.servicepinactive=true

Or, could this be a problem within the image (would imagine not, as it's the plugin zapping to the channel)...

Cheers

Open Web IF Newnigma2 OE20

Open Web IF lässt sich nicht installeieren in Newnigma2 OE2.0


opendreambox 2.0.0 dm800
dm8000 login: root
Password:
root@dm8000: opkg install /tmp/*.ipk
Installing enigma2-plugin-extensions-openwebif (2.0) to flash...
Configuring enigma2-plugin-extensions-openwebif.


  • OpenWebif Plugin *

Plugin successfully installed! You should restart enigma2 now ...

Collected errors:

  • extract_archive: Cannot make dir /usr/lib/python2.7/site-packages/Cheetah/Utils/: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/VerifyType.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/WebInputMixin.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/Misc.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/init.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/Indenter.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/memcache.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/htmlEncode.py: Input/output error.
  • extract_archive: Cannot make dir /usr/lib/python2.7/site-packages/Cheetah/Utils/optik/: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/optik/errors.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/optik/init.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/optik/option_parser.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/optik/option.py: Input/output error.
  • wfopen: /usr/lib/python2.7/site-packages/Cheetah/Utils/htmlDecode.py: Input/output error.

Can not login with authentification

The password that I'm using for ssh access to my VU+ Duo does not work with OpenWebif.

Brand: Vuplus
Model: duo
Kernel version: 3.1.1
Firmware version: 2012-11-28 22:55:33

Displaying channel description bug

Hi,

OWIF 0.1.2 on VTi 4.2.1. There is a bug in displaying channel descriptions: it works only for the first bouquet you open. If you switch to the next bouquet, the channel list is loaded via AJAX call, but unfortunately uses the same

ID's for 'now_idp' and 'next_idp' as the previously opened channel list. As a consquence, displaying the channel description - also a AJAX call - replaces its content in the correspondig
from the previously opened channel list.

Support streaming urls in bouquet list

Since a while it is possible to add streaming urls in a bouquest list. When such urls appear in the bouquest list, openwebif cannot display the list anymore. An example of such a streaming url:

SERVICE 4097:0:0:0:0:0:0:0:0:0:mms%3A//wm1.ams.cdn.surf.net/surfnetvdox%3DRTVRijnmond%3DTVRijnmond3:TV Rijmond

I hope this can be fixed.

Conflicting Timers

Please Note, there is no Timer on 28.5.
The Error Timers (Rick ...) and (U2...) are on the 26.5. and not on the 28.5.
I think the conflict check should only be make for the new timer and not for existing timers.
The Box is Solo2 with 2 Tuners connected.

bildschirmfoto 2013-05-26 um 12 04 48

css - dynamic resize...

Hi,

I've just upgraded OpenWebif today from repo (VTi 5.0) on my Vu+ Ultimo.
Unfortunately 85% of width is awful on large screen resolution of my laptop (1920x1080)
Please look on screenshot from Firefox here:
http://i49.tinypic.com/6gh74k.jpg
OSD looks very bad... Fixed widths was much better :)

Happy New Year!! :)

No Answer seen in Yes/No option

Answer comes only after waiting 30sec. Is there chance to see answer as soon as it given.
And if no answer it gives automatically Yes!

grab screenshots

I have problems making screenshots, if the Box is running for a while or after standby.
Navigation with remote works but screen remain showing this:

WebIF-grab

Need to reboot my box to get WebIf working :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.