Zappen, Aufnahme starten und Restart enigma2 übers Telnet - es ist vollbracht !

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

  • Man kann jetzt auch Remote control Macros schreiben !


    Viel Spass !
    thowi


    ---------------------------------------------------------------
    You now can also program remote control macros !


    Have fun !
    thowi

    3 Mal editiert, zuletzt von thowi ()

  • hallo!
    danke für das control script.
    habe leider ein paar probleme damit
    -nach dem entpacken habe ich festgestellt, dass die scripte in /var/usr/bin und /media/hdd/control/ landen und nicht wie in der readme.txt beschrieben.
    habe dann manuell verschoben über winscp.
    -zapup und zapdown funktionieren.
    -die übergabe von befehlen an control.sh aber nicht:...274 not found.
    Was kann ich tun?
    lg
    werz99

  • du musst beim auspacken auf / stehen und nicht auf /var dann sollten auch die scripte und binaries an der richtigen stelle landen.


    aus control.sh und control muss auf /usr/bin stehen damit es im PATH gefunden wird wenn man das script ohne vollem Pfad namen eingibt.


    Ausserdem wenn du auf /var auspackst sind die binaries nach reboot weg weil tempfs.


    Gruss
    thowi

    Einmal editiert, zuletzt von thowi ()

  • hallo!
    danke für die infos...habe das in der anleitung aufs erste mal nicht gelesen...
    auch mit dem pfad oder wenn ich auf /usr/bin stehe bekomme ich die selben fehler.
    lg
    werz99

  • Can you modify the control for use on a DM7000?


    I would be happy if i had only the control for DM7000 (control.h -> control_DM7000).


    Or does it already exist?


    Thanks,


    Black_64