Jump to content


bacicciosat

Member Since 30 Nov 2009
Offline Last Active 07 Jan 2021 10:07
*****

#231338 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 13 November 2011 - 23:59

use attached Patch to avoid crashing when Webbserver wants to bind on a Port already in use.


Applyed thanks.

Ps. I have added the Epg Search.
Please test.


#231195 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 13 November 2011 - 15:58

Have to say this webif works fast!
I hated the dreamboxonly webif for its slow performance


About performance i think you will be surprise.
OpenWebIf is already fast. But cheetah offer the availability to compile templates to speed up all.
So at the end of work when the application will be complete we will compile templates and the performance will be more increased.


#231157 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 13 November 2011 - 14:35

Yes for channel epg OpenWebIf search for picons in the box.
The result seems nice.
But i have a doubt. If to leave epg in a popup window or if to direct include epg in internal page adding a button in the toolbar.

Attached Thumbnails

  • ow3.png



#231113 A suggestion: Common Public E2 Plugin Repository (E2 OpenPlugins)

Posted by bacicciosat on 13 November 2011 - 12:56

Ok. But I'm waiting instructions....


If you want to join e2openplugins developers to add plugins you can ask to sjaaky to be included in the organization team.

Ps. i have setup a dedicate forum @ vuplus-community for e2OpenPlugins where all the commits are automatically posted via rss agent: HERE
Ps2 i have setup too a mailing list reported commits for OpenWebIf git.


#229748 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 8 November 2011 - 00:01

Thanks to skaman work we have rebuilded application using Mvc architeture.
We start to have some api working and pages.Channel lists, about, info and zap channels.

Attached Thumbnails

  • ow2.png



#229132 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 5 November 2011 - 17:21

here is

Attached Files




#228699 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 3 November 2011 - 23:16

But how about programs on phones who use webif to control the enigma2 tuner. Like Dreamdroid. Can opensourcewebif been made in away that it is compatible with those programs for the dreambox-only-webif.



This is not a problem, Skaman will write the standard api set to mantain compatibility with the current apis used by third part applications. And it could be available a set of extended api too for future applications.
The problem is that this is a long work and it is only at beginning and maybe will be never completed.
P.s. i Have removed the tab system to use a better solution with a toolbox.
Here is the preview but is not yet committed because we have decided to change the code to use cheetah template system.

Attached Thumbnails

  • ow1.png



#227867 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 31 October 2011 - 00:49

I have implemented jQuery Ajax tabs for channels list to have an original approach.
I think is fast and comfortable.
Let me know your opinion.

Attached Thumbnails

  • ow.png



#225182 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 20 October 2011 - 14:07

Let me know


Very good skaman, simply and fast !


#225071 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 19 October 2011 - 23:46

Ok we have Box info page too.
There is something to do yet to complete this page.
Please take a look at TODO in file: ow_contents.py
affected files to complete page: http_server.py, ow_contents.py, box_info.html
code optimizations and info additions are welcome !

Attached Thumbnails

  • boxinfo.png



#224823 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 18 October 2011 - 17:22

Ok add the js folder and openwebif.js for our javascript stuffs.
Ah we have the about page :D

Attached Thumbnails

  • about.png



#224495 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 17 October 2011 - 00:04

Ok Sjaaky, done !
I have used Template function by string. It is really good.

File http_server.py
function: def get_Main_body

Good work !


#224245 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 15 October 2011 - 10:01

I've already created a simple bouquetlist channellist overview. It works with static html files, some javascript and a python function generating json. I will try to integrate it this weekend.


Great !


#224238 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 15 October 2011 - 09:33

About to use plain python or frameworks to render dynamic content it seems that the best way is simply string template method:


 
NAME = 'name'
 
 
def render1():
	template = "<p>Hello %s!</p>"
	return template % NAME
 
 
def render2():
	from string import Template
	template = Template("<p>Hello ${name}!</p>")
	return template.substitute(dict(name=NAME))
 
 
def render3():
	from mako.template import Template
	template = Template("<p>Hello ${name}!</p>")
	return template.render(name=NAME)
 
 
def render4():
	from genshi.template import MarkupTemplate
	tmpl = MarkupTemplate('<p>Hello $name!</p>')
	stream = tmpl.generate(name=NAME)
	return stream.render('xhtml')
 
 
def render5():
	from jinja2 import Template
	template = Template('<p>Hello {{ name }}!</p>')
	return template.render(name=NAME)
 
 
if __name__ == '__main__':
	num = int(sys.argv[1])
	print globals()['render%d' % num]()
	raw_input('Press Enter...')

Memory consumption Results:

Results:
Method RSS (kB)
standard formatting 4988 string.template 5020 Jinja2 7188 Genshi 7388 Mako 9148


#223070 OpenWebif [E2OpenPlugins]

Posted by bacicciosat on 9 October 2011 - 16:12

Ok i think it is time to try to work to a common plugin :)
I have started OpenWebif.
This is not my project but our project. It is a long work but we have not hurry.
I have not intention to coordinate or to manage, everyone have to feel free to contribute in everyway.
Till now we have only the server starting and listening on port 8080 for static files in the folder: /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/www/html
We have only an example html template there.
The next things to do i think that are:
to implement Authentication
to complete Configuration
to choose a layout


The server is listening on port 8080 to avoid conflicts with webinterface so you can test.
For tests use folder: /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif