You are not logged in.

Dear visitor, welcome to Dreamboard. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, November 3rd 2006, 2:49pm

Remote Control für Web2Interface

Hi !

Nachdem 3c5x9 so schöne Beispiele gemacht hat wie man das Web2Interface der neuen OE 1.4 basierenden Images erweitern, kann habe ich mich auch daran versucht und auf Basis seines Screengrabber Plugins schnell die Möglichkeit implementiert die Fernbedienungskommandos über das Web2Interface
zur box zu schicken, sowie eine message auf den TV Schirm und auch noch wenn auch sehr spartanisch Timer für Aufnahmen programmieren.

Ist zwar nicht 100% so wie das RemoteControl für die OE 1.3 basierenden Images, aber erfüllt auch seinen Zweck und wenn man das Klicken abzieht im Vergleich auch sauschnell, und man kann auch mehrere Kommandos schicken bevor man sich das Ergebnis ansieht ;-)

Das sleeptimer plugin ist der einfachheit jetzt im Kit inkludiert, weil nur wenn man die aktuelle gepatchte version davon hat geht auch alles !

Hier noch das readme:
------------------------------------------------------
DM 7025 Remote Control and Message Box Plugin
for the Web2 Webinterface by gutemine
------------------------------------------------------

For Installation of this plugin simply copy
the rcXX.tar.bz2 file with FTP to /var/tmp.

Then do a manual install with Blue Pannel
or type in telnet:

cd /
bunzip2 /var/tmp/rc*
tar -xvf /var/tmp/rc*

Then you have to edit the following file:

/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py

After the line:

child_hdd = static.File("/hdd")

add the lines (in exactly the same column !):

child_remote =RemoteControl()
child_message =MessageBox()
child_addtimer =AddTimer()

and at the begining of the file add the lines:

from RemoteControl import *
from MessageBox import *
from AddTimer import *

Then restart enigma2 or reboot the Dreambox.

After this you should have access to a very simply
WebIF which allows you to send the remote control
commands to the Dreambox and get screenshots of the
osdmenu.

Simply type in browser:

http://ip.of.your.dreambox/remote

For sending Messages to TV screen
simply type in browser:

http://ip.of.your.dreambox/message

For adding Timers for recording
simply type in browser:

http://ip.of.your.dreambox/addtimer

You can enable/disable the remote Message
Bbox and Add Timer functionality via
the Sleeptimer Addon Menu in Enigma2
but the functionality is now autostarted
as default !

Thanks to 3c5x9 for the marvellous template where I stole
the complete source code to make this Q&D Remote Control
and Message Box Web Interface !

This addon works only for the new OE 1.4 based Images
(like current CVS Images) which include the web2
Webinterface from DMM.
gutemine has attached the following file:
  • rc09.tar.bz2 (42.44 kB - 398 times downloaded - latest: Apr 22nd 2013, 10:45pm)
Lost in Translation

This post has been edited 5 times, last edit by "gutemine" (Nov 5th 2006, 9:15am)


2

Saturday, November 11th 2006, 11:11am

Seit dem Image vom 08.11.2006 sieht das etwas anders aus:

Die Plugin Datei enthält:
child_web = ScreenPage("/") # "/web"
#child_hdd = static.File("/hdd") ".xml"
child_webdata = static.File(util.sibpath(__file__, "web-data"))

habe die Zeilen nach child_web eingefügt, das funktioniert.

Jedoch wird das Image der Fernbedienung nicht angezeigt (/hdd gibts ja nicht mehr).

Wenn ich channel=1 übertrage steht im Timer im Menu der Box kein Kanal.

Gibt es noch weitere Parameter für addtimer?
Wo finde ich Script und Logfile auf der Box?

This post has been edited 1 times, last edit by "christian64" (Nov 11th 2006, 11:19am)


3

Saturday, November 11th 2006, 2:10pm

du musst nur die plugin.py wieder richtig editieren, und das servicieren der harddisk übers Web is nur auskommentiert, sollte immer noch gehen (für ein Offizielles Standard Image wäre es auch nicht empfehlenswert) - dann sollte auch das Fernbedienungsbild wieder gehen.

Alle *.py liegen im WebInterface directory bis auf das Sleeptimer das hat aus historischen Gründen ein eigenes Directory.

Es gibt in der Zwischenzeit übrigens auch eine Version für ein Fremdimage über das hier nicht gesprochen wird wo eine Alpha Version vom Web-X-TV fürs streamen dabei ist (da muss man aber auch die InfoBarGenerics patchen um die pids zu klauen - ist aber nicht schwer - nur 10 Zeilen code).

Wäre nett wenn Du das ganze ins aktuelle DMM Image einbaust und dann makekit.sh aus dem remote control kit anwirfst um wieder alles als all-in-one kit zu haben den man nur auspacken muss. Ich bin einfach zu faul dazu, sobald ich es geschafft habe es zum Laufen zu bringen interessiert es mich nicht mehr so richtig, da sollen andere dran verhübschen und optimieren ...

Das Addtimer ist auch "etwas" schmutzig implementiert - es wird einfach aus dem bouguet file mit der Channel Nummer die SID geklaut (das head & tail beim os.system das die sid ins timers.txt überträgt) , also wenn keine Favoriten kann er dort auch nichts richtig finden.

Das Ganze ist halt nur eine art PoC was man auf die Schnelle mit dem Web2IF schon anstellen kann - ich hoffe schon das da auch ordentlich dran gearbeitet wird ;-)

Nur ich habe jetzt eigentlich die Wichtigsten Funktionen durch die so lange gefehlt haben - der Rest ist fades proggen, und mit der Remote Control wartet man halt viel entspannter !

gutemine ist halt ein Trüffelschwein, und nicht der Bauer ders ausgräbt ;-)

LG
gutemine
Lost in Translation

This post has been edited 4 times, last edit by "gutemine" (Nov 11th 2006, 2:15pm)


4

Monday, December 4th 2006, 3:54am

works fine with me

start of the file ...
3c5x9
from RemoteControl import *
from MessageBox import *
from AddTimer import *

I had to add a space after the =

child_web = ScreenPage("/") # "/web"
child_hdd = static.File("/hdd")
child_remote = RemoteControl()
child_message = MessageBox()
child_addtimer = AddTimer()
#child_irc = IRCModule()
child_grab = GrabResource()

thanks
farrell

5

Monday, December 4th 2006, 11:14am

yes, but be aware that this is old stuff already, there is a much nicer webif available (including also all the code that I have done and posted here) which has full Timer management, movielist, streaming with Web-X-TV.

But you have to search for Homey's WebIF in another board where images come from which boot with a blue screen :-)

Ciao
gutemine
Lost in Translation

This post has been edited 1 times, last edit by "gutemine" (Dec 4th 2006, 11:15am)