Seite 1 von 4 123 ... LetzteLetzte
Ergebnis 1 bis 10 von 35
  1. #1
    Mitglied
    Registriert seit
    13.12.2017
    Beiträge
    31
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ DUO 4k SE Openatv 6.4 / 2 dual mtsif dvb-t2 tuner
     
     

    How to make macro command with remote control ?

    Hello,
    I want to assign 2 functions to my remote control.
    1 Swap pip
    followed by
    1 close pip

    But If can't assign a serie of 2 functions to hotkey

    I searched functions of remote control to find PIP and swap PIP

    I used the cmd function in windows and type
    curl -u root:passwd http://IP_of_my_Vu:80/web/remotecontrol?command=##
    where ## is a number
    You can find the list in attachment It's more complete than list I found in forum

    The pip function is 64 but if you send the command twice you have pip zap
    and there is no function swap pip

    In old post someone used multiquickbutton but I don't found this plugin working with openATV 6.4

    May be it's possible to create a plugin called by hotkey but I don't know how to do

    Do you have a solution ?
    Thank you
    Angehängte Dateien Angehängte Dateien
    Geändert von houbahop (01.02.2021 um 15:48 Uhr)

    •   Alt Advertising

       

  2. #2
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.441
    Thanks (gegeben)
    649
    Thanks (bekommen)
    1658
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    hi,

    yes this is possible with hotkey, for that you need to know the key_ids which you can found here;
    enigma2/keyids.py at 6.4 . openatv/enigma2 . GitHub

    as example;
    if you want to start a plugin with name mediaplayer and this plugin you found on your box under menu -> plugins (if plugins is the first entry in menu) and here as the third entry from above is the plugin mediaplayer then you can start this as macro in a script as following;
    Code:
    #!/bin/bash 
    
    ## Variablen ##
    BOXIP=http://localhost
    WGET=/usr/bin/wget
    TMP=/tmp
    LOGFILE=$TMP/pip_macro.log
    
    exec 3>&1 4>&2
    trap 'exec 2>&4 1>&3' 0 1 2 3
    exec 1>$LOGFILE 2>&1
    
    # close the first window automatically, you didn't need it.
    $WGET -q -O - $BOXIP/web/remotecontrol?command=174
    
    # it's the same as you press the menu button on your rc.
    $WGET -q -O - $BOXIP/web/remotecontrol?command=139
    sleep 1
    
    # it's the same as you press the ok button on your rc.
    $WGET -q -O - $BOXIP/web/remotecontrol?command=352
    sleep 1
    
    # it's the same as you press the curser (down) button two times on your rc.
    $WGET -q -O - $BOXIP/web/remotecontrol?command=108
    $WGET -q -O - $BOXIP/web/remotecontrol?command=108
    
    # it's the same as you press the ok button on your rc.
    $WGET -q -O - $BOXIP/web/remotecontrol?command=352
    
    exit
    name the script test.sh put it on your box to the directory /usr/script and make it executable with the following telnet or ssh command;
    Code:
    chmod 755 /usr/script/test.sh
    and at last put it on a key with hotkey and start it, then you can see how it works.
    in this case it starts only the third plugin from above which is under menu -> plugins (if plugins is the first entry under menu)
    otherwise if plugins is not the first entry under menu it opens a setting or whatever you have under menu -> first entry -> third entry


    This is only a example, if you can start swap pip by a shorter way you can use the key_ids for this shorter way too.

    Zitat from "houbahop"
    The pip function is 64 but if you send the command twice you have pip zap
    and there is no function swap pip
    maybe a timing problem and a sleep between the commands can help.


    regards
    Pike
    Geändert von Pike_Bishop (01.02.2021 um 19:45 Uhr)

  3. Thanks houbahop bedankten sich
  4. #3
    Mitglied
    Registriert seit
    13.12.2017
    Beiträge
    31
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ DUO 4k SE Openatv 6.4 / 2 dual mtsif dvb-t2 tuner
     
     
    Thank you for your answer, I will try it and post my solution later

  5. #4
    Mitglied
    Registriert seit
    13.12.2017
    Beiträge
    31
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ DUO 4k SE Openatv 6.4 / 2 dual mtsif dvb-t2 tuner
     
     
    Do you know where hotkey store his informations ?

  6. #5
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.441
    Thanks (gegeben)
    649
    Thanks (bekommen)
    1658
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    have a look at "ButtonSetup" in /etc/enigma2/settings

  7. #6
    Mitglied
    Registriert seit
    13.12.2017
    Beiträge
    31
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ DUO 4k SE Openatv 6.4 / 2 dual mtsif dvb-t2 tuner
     
     
    Hello Pike,
    I have a problem with your script
    I create it,copy in /usr/script chmod 755
    attrib it to hotkey
    When try it I have the error
    /bin/bash Nos such file or directory
    execute error 127
    If I delete the first line #!/bin/bash
    I have the error
    ambigus redirect in the line exec 3>&1 4>&2

  8. #7
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.441
    Thanks (gegeben)
    649
    Thanks (bekommen)
    1658
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    change it to;
    #!/bin/sh

    and hopefully you write this script with a linux compatible editor as example with notepad++
    otherwise write it new with a linux compatible editor or use dos2unix to fix the script which was written with a windows editor

    which image do you have - openatv ?
    Geändert von Pike_Bishop (01.02.2021 um 23:24 Uhr)

  9. #8
    Mitglied
    Registriert seit
    13.12.2017
    Beiträge
    31
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ DUO 4k SE Openatv 6.4 / 2 dual mtsif dvb-t2 tuner
     
     
    Yes Open ATV 6.4

  10. #9
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.441
    Thanks (gegeben)
    649
    Thanks (bekommen)
    1658
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    and now - did the script work now ? (i have edited my earlier post)

  11. #10
    Mitglied
    Registriert seit
    13.12.2017
    Beiträge
    31
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ DUO 4k SE Openatv 6.4 / 2 dual mtsif dvb-t2 tuner
     
     
    I used Notepad++ ( I created empty shell script and copy your script)
    The only way your script works is to no use variable and I have a problem with sleep : invalid number 1 !
    ## Variablen ##
    BOXIP=http://localhost
    WGET=/usr/bin/wget
    TMP=/tmp
    LOGFILE=$TMP/pip_macro.log
    # close the first window automatically, you didn't need it.
    wget -q -O - http://localhost/web/remotecontrol?command=174
    # it's the same as you press the menu button on your rc.
    wget -q -O - http://localhost/web/remotecontrol?command=139
    sleep 1
    # it's the same as you press the ok button on your rc.
    wget -q -O - http://localhost/web/remotecontrol?command=352
    sleep 1
    # it's the same as you press the curser (down) button two times on your rc.
    wget -q -O - http://localhost/web/remotecontrol?command=108
    wget -q -O - http://localhost/web/remotecontrol?command=108
    # it's the same as you press the ok button on your rc.
    wget -q -O - http://localhost/web/remotecontrol?command=352
    exit

    May be can you send me your script file to verify


Seite 1 von 4 123 ... LetzteLetzte

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:27 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,26%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com