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 :winking_face:


    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.

  • 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?

    Einmal editiert, zuletzt von christian64 ()

  • 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 :winking_face:


    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 :winking_face:


    LG
    gutemine

    4 Mal editiert, zuletzt von Lost in Translation ()

  • 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

  • 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 :smiling_face:


    Ciao
    gutemine

    Einmal editiert, zuletzt von Lost in Translation ()