Beiträge von thowi

    ----------------------------------------------
    remote control WebIF for DM 7025 Version 4.0 by thowi
    ----------------------------------------------
    Thanks to cjsosa for the basic code !
    Thanks to Seddi for the fbshot !
    Thanks to 3c5x9 for the Mediaserver !
    ----------------------------------------------


    The bug with the upkey is now fixed and you now can
    get an updated screenshot of the current OSD menu with
    the TV button.


    For installation copy dm7025remoteXX.tar.bz2
    to /var/tmp via FTP.


    Then install with manual install in blue
    pannel or type:


    cd /
    bunzip2 /var/tmp/dm7025remote*.tar.bz2
    tar -xvf /var/tmp/dm7025remote*.tar


    This puts the binaries at the plugin directory


    Then you simply can enable the Mediaserver with the menu
    interface of the DM7025remote plugin under games/plugin
    or in telnet with:


    cd /usr/lib/enigma2/python/Plugins/Extensions/DM7025remote


    er.sh enable


    Then enter the DM 7025 IP address or Hostname in your PC
    Browser.


    Remote control now contains a very simple password check.


    Username is root and password is thowi - guess why :winking_face:


    If you want to change username and password
    simply edit the index.html file


    The username/password is hardcoded, so the whole thing is
    not really secure, it is just to scare the kids.


    And if you enter http://ip.of.you.box/remote.html you can enter
    without password too.


    Hence the password screen is just to show how easy
    the WebIF can now be extended with further functionality !


    Type er.sh without options for a list of the other possible
    management commands.


    Use er.sh restart for restating the Mediaserver instead
    of re-doing er.sh enable !


    The full functionality of er.sh is now available also
    via the enigma2 menu interface under games / plugin
    of the engima2 main menu.


    ----------------------------------------------
    Have fun controlling your Dreambox 7025 remotely via the WebIF !
    ----------------------------------------------

    ----------------------------------------------
    remote control for DM 7025 Version 3.2 by thowi
    ----------------------------------------------
    Thanks to cjsosa for the basic code !
    ----------------------------------------------


    For installation copy controlXX.tar.bz2
    to /var/tmp via FTP.


    Then install with manual install in blue
    pannel or type:


    cd /
    bunzip2 /var/tmp/control*.tar.bz2
    tar -xvf /var/tmp/control*.tar


    This puts the binaries at /usr/bin
    and the sources and this readme.txt
    at /media/hdd/control.


    Then you simply can execute the remote
    control commands in telnet:


    zapup
    zapdown
    record
    restart


    control
    remote


    The first 4 are simply remote commands


    With remote you can find out which
    commands are sent to the dreambox
    via the remote control.


    And with control you can send any possible
    command:


    control number


    Number is any value from below
    for the remote control keys:



    OFF 116
    MENU 139
    EXIT 174
    OK 352
    UP 102
    DOWN 108
    RIGHT 106
    LEFT 105
    RED 398
    GREEN 399
    YELLOW 400
    BLUE 401
    TV 377
    RADIO 385
    TEXT 388
    VIDEO 393
    AUDIO 392
    INFO 358
    VOLUP 115
    VOLDOWN 114
    BOUQUP 402
    BOUQDOWN 403
    SPEAKOFF 113
    < 412
    > 407
    1 2
    2 3
    3 4
    4 5
    5 6
    6 7
    7 8
    8 9
    9 10
    0 11


    There is now also a control.sh script
    inlcuded at /usr/bin
    which allows you to pass up to 12 commands
    to the control binary in sequenze.
    And you can either passe the numeric codes
    or the values from the baovel ist to this
    shell script.


    control.sh 1 1 OK


    The above command will zap to channel 11
    for example.


    If you need a Break between commands you now can
    also pass SLEEP as option (will be a 1 sec
    sleep, if you need more use multiply in sequenze)


    For Multiple UP/DOWNS there are now options UP1...8
    and DOWN1..8 available.


    You now can have your on remote control macro files
    at /media/hdd/control/MRC.


    For a list of predefined MRC files enter:


    control.sh MACRO LIST


    The E2RESTART for restarting enigma2 for example
    looks like this:


    MENU RIGHT OK DOWN DOWN OK


    You can execute this MRC file by typing:


    control.sh MACRO E2RESTART


    You can define and edit your own MRC files
    on a PC (notepad or any other text editor is OK,
    because files will be converted to unix fileformat
    on Dreambox before executing anyway).


    If you double click on the PC and
    choose an editor like notepad
    on PC and tick the always open file with this
    application then this will be your prefered MRC
    editor.


    After Editing your MRC files simply FTP them to
    /media/hdd/control/MRC directroy on your Dreambox.


    ----------------------------------------------
    Have fun controlling your Dreambox 7025 remotely !
    ----------------------------------------------

    der dreambox schadets meist nicht, eher dem filesystem auf der harddisk, aber dafür gibts das diskdoctor script (auch im Shell Plugin 3.0 drinnen) nur kann das mit dem linux fsck auch nicht immer alles fixen, und dann adieu movies !

    lade das aktuelle Handbuch runter, da steht drinnen wie man den Urszustand wieder herstellt, bzw. sollte schon einer der codes funktionieren, meistens muss man halt einen kompatiblen finden wenn man mit den Gerätenamen nicht zum ziel kommt.


    Gruss
    thowi

    über andere Images als DMM standard und CVS images wird hier nicht diskutiert, sorry, du musst dann halt nach anderen foren suchen ...


    Und der Meidaplayer ist halt so wie du ihn getestet hast (!) im moment nur für MP3 funktionsfähig.

    LCD Helligkeit ist wie der Name schon sagt nur fürs LCD Display


    Du musst im menu aktivieren das du eigene User Bouquets hast sonst wirds mit denen nichts werden


    aktuelles Image = besserer Mediaplayer (aber Macken hat er immer noch)

    Zu der ganzen DVD abspielerei mit/ohneVLC, lokal, remote,..:


    Ich konvertiere schon seit DM 7000 Zeiten alle DVDs (vor allem für die Kids) mit DVDx auf mpeg, das spielt die 7000 schon ewig und die 7025 in der zwischenzeit auch schon ab (nur sprechen wir wir nicht drüber, womit auch die Frage von SadButTrue hoffentlich besser verständlich wird)


    Auf halbwegs normalem PC ist das in fast Realtime erledigt, mpeg per FTP auf die Box und die Sache ist erledigt.


    Qualität ist auch ok (ich benutze VLC kompatibles mpeg bei den settings im DVDx, bei Cartoons ist das aber mehr als ausreichend - 1 DVD mit 1 Sprachspur = ca. 1.5-1.8GB)


    Files von VCDs kann man meistens 1:1 per FTP rüberkopieren und auf *.mpg renamen, dann spielen die meisten davon auch.


    Das Rechteproblem bei den DVDs bleibt damit auch dort wo es hingehört (bei mir) und alle kids sind glücklich.


    Gruss
    thowi

    wenn ich helfen konnte.


    Shell script programmierung ist aber eigentlich recht ienfach (gerade wenn man so wie ich nur die standard system V shell verwendet).


    Schließlich ist der Befehlssatz fast so alt wie ich :winking_face:


    Mit googeln findest du genug seiten wo die Befehle und Verwendung
    aufgelistet sind, und Beispiele gibts auch genug.


    Python ist zwar nett, aber hat eine andere, modernere Programmierlogik.


    Aber grade auf Betriebsystemebene kann man schon ziemlich viel machen mit shell scripts (multiboot ist z.B. ein Shell script mit 4000 Zeilen code mit nur einem kleinen python wrapper mit 1000 codezeilen)


    Hauptsache die box bootet jetzt ordentlich (wenn auch im 2. Anlauf).


    Wenn aber ein reiner reboot hilft würde ich evt. auch erstmals im script probieren enigma neuzustarten - init 2 und dann init 3 und nach 30 sec wieder schauen ob alle prozesse (noch) laufen.


    Ich würde auch trotzdem mal ins bootlog schauen was bei den 2 bootvorgängen anders ist, es kann nicht sein das es grundlos 1x geht und 1x nicht.


    Ich habe eigentlich noch nie das Problem gehabt das die box grundlos (!) nicht zuende gebotet hat und durch die Multiboot entwicklung teste ich eigentlich alle images in unterschiedlichsten varianten durch.


    Gruss
    thowi

    I though I saw already r8 Kernels but sometimes the imagebuilders are not too precise in their readme and it could be that I just was confused.


    I'll check and come back only if needed.


    Probably I'll add also kernels to be downloaded via multiboot image download center anyway (when I have time to do the coding), because at the moment I simply replace the kernel, but later you should be able ot geth the original ones back (either from nfi image oder downloading) and then it would be no problem to get always the latest version if somebody spends his time to manage this :winking_face:


    Thanks again


    (BTW gettext support now starts to rock for multiboot - German works now 90% already and Italian with 60%)


    Ciao
    thowi

    hello !


    The vmlinux.gz that noggie posted with the USB drivers included is getting a little bit old - when my multilanguage support für multiboot is finished (in 1 week or so) I would like to include a more up-to-date one in Version 7.1, hence I'm asking if somebody could build a newer one from the current CVS over the weekend ?


    Thanks in advance
    thowi

    schaut Euch doch bitte erstmals die einfachen plugins an die man runterladen kann - für sachen wie timer, zappen, etc gibt es einfach keine ordentlich dokumentierte schnittstelle - Ihr könnt aber in der notaufnahme (sucht nach er60.zip) nachschauen wie man die entsprechendne config files anpassen kann wodurch man mit enigma restart der box einen timer oder einen anderen sender unterjubeln kann.


    Erst wenn Ihr das versteht könnt Ihr im python code vom enigma selbst schauen wo diese files erstellt/geladen/manipuliert werden und dann entsprechende exits einbauen - ABER das ist dann mühsam, und bei jedem image von neuen nötig - ich habs für die timers.xml probiert (und ja es geht weil es gibt eine loop wo immer nachgeschaut wird obs was neues zum aufnehmen gibt und dort kann man dann 'zusatzfunktionalität' ablaufen lassen, ABER das ist eben mühsam und Fehlerbehaftet (wobei das eher an meinen mangelhaften pythonkenntnissen liegt - bzw. meinem Unwillen diese weiterzuentwickeln - aber das ist eine andere Geschichte)
    und ich habe dann entschieden es zu lassen, weil keiner wirklich was davon hat wenn dann andere wichtige sachen nicht funktionieren, enigma hängenbleibt,...)


    Das schöne am Linux ist ja das sich jeder seinen Platz wo er graben will nach interesse selber suchen kann.


    Gruss
    thowi

    ich habe nur schnell die befehle aus dem Gedächnis reingekloppft. Das script sauber zu machen musst du selber - einfach mit sh -x bootprobleme.sh ausführen dann kannst Du es debuggen :winking_face:


    scheinbar sind die 60 mit 0 als buchstaben statt als Zahl, probier einfach mal 59 oder tipps im joe editor ordentlich ein :winking_face:


    Wahrscheinlich hast du es auch als DOS file cut & paste gemacht - fürh mal ein dos2unix bootprobleme.sh aus um es aufs unix fileformat zu konvertieren.


    Mit cat /rc3.d/S* kannst Du dir die files schon ausehen weil dann wird dem Link gefolgt.


    Zum Linken des scripts:


    cd /etc/rc3.d
    ln -sf /etc/init.d/bootprobleme.sh S99bootprobleme
    cat S99bootprobleme


    der letzte Befehl sollte dann wieder den scriptinhalt anzeigen.


    Aber zuerst mal das script debuggen - wie gesagt habe ich Dir ja nur Befehle gezeigt wie man die enigmaprozesse zählen kann (und wenn es nach 1 min zuwenig sind dann gab es eben Bootprobleme)


    Und mit den if/then/else musst du dann so wie du möchstest eben die logik bauen das du ein file schreibst wo man sich merkt das es schon ein reboot mit bootproblemen ist (das touch zum fileanlegen reicht) und dsan eben entsprechend shutdown -r now machen.


    Ich dachte das wenn du nach python fragst (dafür ist es im Bootvorgang nur eben eigentlich zu früh - wobei man natürlich auch python scripte schreiben kann so wie das shell script) du dich eh mit proggenb auskennst und mit den tipps weiterkommst - ich kann dir schon ein fertiges script produzieren, aber dann lernst Du nichts dabei - und müßtest bis heute abend warten :winking_face:


    Gruss
    thowi

    link des scripts bootprobleme.py (oder .sh) das du auf auf /etc/init.d wo die startupscript liegen anlegst (ich würde aber ein shell script nehmen - siehe unten) mit S99bootprobleme im directory /etc/rc3.d anlegen dann wird es beim starten als letztes ausgeführt


    code müßte ungefähr so aussehen:


    #!/bin/sh
    sleep 60
    if [ 'ps ax | grep enigma2 | wc -l' -lt 4 ]; then
    if [ ! -f /etc/init.d/bootproblem ]; then
    touch /etc/init.d/bootproblem
    shutdown -r now
    fi
    else
    rm /etc/init.d/bootproblem
    fi
    exit 0


    script zählt 60 sec nach dem booten ob alle enigma2 prozesse laufen
    und wenn nicht legt es problemfile an und rebootet (wenn enigma eh nicht läuft ist auch keiner sauberer shutdown nötig und shutdown -r now reicht völlig)


    Gruss
    thowi

    I tested and now the multiboot.sh shell script works too (Multiboot 7.03 kit includes these fixes and you can call it with gettext download for downloadign the ipk and install for installing them).


    Only remaining problem is that the German äöü are still not properly displayed, but I assume this has to be related to the charset used in the po file.


    As soon as I have found the right one I would be happy.


    BTW it looks like really all these ipk packages are needed (well I can ommit some, but then I need to use -force-depends when installing, but the actual space needed is OK, even for flash so I don't want to investigate and test any further).


    So now I only have to find the additional language packs for otherl anguages, but with the German template this shouldn't be too difficult.


    Ciao
    thowi


    PS: So soon the translators will be busy for multiboot and I can continue playing with the alternative bootloaders !

    nein Multiboot unterstützt derzeit nur CF Karte (empfohlen) sowie Harddisk und USB Stick (mit Einschränkungen).


    Die ganze Netzwerkbooterei macht eigentlich nur Sinn wenn man am PC seine OE Entwicklungsumgebung hat und die direkt mounten will statt ein Image zum Flashen für die Box drauf zu machen, und da der normaluser kein OE auf seinem Linux PC hat (und ich auch nicht) habe ich mich nicht wirklich damit befasst.


    Gruss
    thowi

    I already was assuming that something was missing because I had to install with ipkg -force-depends.


    Thanks for trying and testing - I'll now try to eliminate the not needed packages and then report back.


    And you even got the ä correctly (because of the iso-8850-15 charset I assume), hopefully this will now also work in python (there the mo files were found und used except the äöü problem).


    Because then multiboot will soon be multilanguage - main problem migth be that if too many big addons need to be installed that it will be too big for flash, but this should be solveable on my own.


    Thanks a lot and have a nice weekend


    PS: Hopefull I'll be able to download all the needed ipk files with ipkg install :winking_face:


    Ciao
    thowi