Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 20
  1. #1
    Anfänger
    Registriert seit
    22.10.2016
    Beiträge
    8
    Thanks (gegeben)
    0
    Thanks (bekommen)
    12
    Total Downloaded
    64,08 MB
    Total Downloaded
    64,08 MB
    ReceiverDanke
    Box 1:
    VU Solo 4K
     
     
    Box 2:
    Dream 500HD
     
     

    Fernbedienungstasten per Skript ausführen.

    An bei ein kleines Skript mit dem die Fernbedienungstasten per Skript aus
    einer ssh/telnet Konsole heraus aufgerufen werden können.
    Habe mir das grad schnell mal gebastelt um das im ATV integrierte Fullback per cron zu starten.
    Da das AutomatedFullbackup Plugin mit meinem NAS keider nicht zufriedenstellend funktioniert.
    Kann man natürlich auch andere Sachen damit machen, einen automatischen Sendersuchlauf per Skript
    oder einfach just for fun die Box sich einfach mal ein bischen alleine bedienen lassen.

    Skript nach /usr/script kopieren und die Rechte entsprechen setzen 'chmod 755 /usr/script/fb.sh'


    -1_0_1f_12d_419_1_c00000_0_0_0.jpg -1_0_1f_12d_419_1_c00000_0_0_0.jpg

    Aufruf z.b.für einen automatischen Sendersuchlauf über das Schnellstart Menu ( s:2 = 2 bzw. 0.5 sec. Pause bis zum nächsten Kommando)
    Code:
    /usr/script/fb.sh blau s:2 down down down down down down s:2 rechts down down s:0.5 ok green
    Neue Version 1.3 neu: Simulation langer Tastendruck
    Bspl.:
    Code:
    fb.sh l_blau down down ok
    Anhang 41689

    Neue Version 1.4 neu: Plugins direkt aus dem Plugin Manager starten
    Bspl.:
    Code:
    fb.sh exit exit exit exit s:0.5 menu 4 s:2 plugin:OpenWebif s:0.5 ok
    Angehängte Dateien Angehängte Dateien
    • Dateityp: zip fb.zip (1,6 KB, 97x aufgerufen)
    Geändert von Herr_Knödel (28.11.2016 um 20:01 Uhr)

  2. Thanks Lucifer, Heart, Fischreiher, sgs, - and 3 others bedankten sich
    •   Alt Advertising

       

  3. #2
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    Hi Herr_Knödel,

    Thank you for the script, nice work.
    but i had to change a few codes to make it work on my (xtrend) boxes.
    the code for 'exit' is 174 instead of 1
    and the code for 'menu' is 139 instead of 141

    i use a MQB mod on my boxes that has the option of button macro's
    in the plugin there is a list of rc button codes for several brands.
    here is the list. maybe it can be useful.

    grt Lucifer
    Angehängte Dateien Angehängte Dateien

  4. Thanks Heart, sgs bedankten sich
  5. #3
    Anfänger
    Registriert seit
    22.10.2016
    Beiträge
    8
    Thanks (gegeben)
    0
    Thanks (bekommen)
    12
    Themenstarter
    Total Downloaded
    64,08 MB
    Total Downloaded
    64,08 MB
    ReceiverDanke
    Box 1:
    VU Solo 4K
     
     
    Box 2:
    Dream 500HD
     
     
    Hi Lucifer,

    thanks a lot for your hints. I have corrected my script in the post above
    on my vu solo4k code 141 is for the config menu

    br

  6. #4
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    Hi Herr_Knödel,

    i also have a list of Keyboard key codes, that also includes the rc codes.
    the MQB mod that i use has another nice option for button macro's, you can set a pause between button presses.
    this is very handy when you open a screen that needs to load information from a file or the web, before the plugin reacts to an other key press.
    the file that makes this possible is named "MQBMacroHelper.py"
    i don't know if you can read python, but it might be interesting to have a look at it.

    this is an example of the code for a button macro with a pause between key presses.
    Macro 3:139,P1000,108

    and this is the button script.
    <code><=!=[=C=D=A=T=A=[from Plugins.Extensions.MultiQuickButton.MQBMacroHelper import MacroHelper
    keys = ['139', 'P2000', '108']
    macrohelper = MacroHelper(keys)
    macrohelper.pressButton()
    ]=]=></code>

    if you want to try the MQB mod i use, i can post it.
    one of my friends uses it in combination with the openatv image. it does not conflict with embedded plugins like Hotkey/ Button Setup

    grt Lucifer
    Angehängte Dateien Angehängte Dateien
    Geändert von Lucifer (20.11.2016 um 17:14 Uhr) Grund: text error

  7. #5
    Anfänger
    Registriert seit
    22.10.2016
    Beiträge
    8
    Thanks (gegeben)
    0
    Thanks (bekommen)
    12
    Themenstarter
    Total Downloaded
    64,08 MB
    Total Downloaded
    64,08 MB
    ReceiverDanke
    Box 1:
    VU Solo 4K
     
     
    Box 2:
    Dream 500HD
     
     
    Thanks Lucifer, for the keyboard codes

    I have completed the script now , optional parameter: s:<sec> 's:2' for example makes a 2 sec. pause before the next button press

  8. Thanks Heart bedankten sich
  9. #6
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    works really well, good job Herr_Knödel.

    i do have a question, all the plugins for button macro's that i know, can only simulate a button pressed 'short'.
    most of the buttons of my rc have an other function if they are pressed 'long'
    do you know a solution for this in your script ?

    grt Lucifer

  10. #7
    Anfänger
    Registriert seit
    22.10.2016
    Beiträge
    8
    Thanks (gegeben)
    0
    Thanks (bekommen)
    12
    Themenstarter
    Total Downloaded
    64,08 MB
    Total Downloaded
    64,08 MB
    ReceiverDanke
    Box 1:
    VU Solo 4K
     
     
    Box 2:
    Dream 500HD
     
     
    long button press (green for example)

    wget -O- -q "http://localhost/web/remotecontrol?type=long&command=399"

    will add this to my script

    br
    Geändert von Herr_Knödel (22.11.2016 um 20:43 Uhr)

  11. #8
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    That's good news, thanks

    i almost forgot to tell you the best place that i ever found for information about rc button codes for enigma2 boxes.
    you can find it on github (OE Alliance). on top of the home page of this forum, there is a button to get there.
    from there, you have to go: branding-module/BoxBranding/remotes
    there you will see a folder for every rc type. if you open one of the folders, you will see 4 files.
    in the file with te name 'remote.html' you can see the button names and codes.

    here is the link:
    branding-module/BoxBranding/remotes at master * oe-alliance/branding-module * GitHub

    grt Lucifer

  12. #9
    Anfänger
    Registriert seit
    22.10.2016
    Beiträge
    8
    Thanks (gegeben)
    0
    Thanks (bekommen)
    12
    Themenstarter
    Total Downloaded
    64,08 MB
    Total Downloaded
    64,08 MB
    ReceiverDanke
    Box 1:
    VU Solo 4K
     
     
    Box 2:
    Dream 500HD
     
     
    Thanks Lucifer for the github link, very handy :-)

    I have add long press button in the new version of the script in first post.
    simply add "l_" to the button you want to be long pressed

    example:
    Code:
     fb.sh l_blue down down ok
    switches the lcd panel from channelinfo to live tv on my vusolo 4k ;-)

  13. Thanks Heart bedankten sich
  14. #10
    Senior Mitglied Avatar von Lucifer
    Registriert seit
    01.02.2015
    Beiträge
    184
    Thanks (gegeben)
    134
    Thanks (bekommen)
    131
    Total Downloaded
    1,62 MB
    Total Downloaded
    1,62 MB
    ReceiverDanke
    Just tested your new version, and in looks like a job well done.
    Thank you again Herr_Knödel for this handy script.

    about the pause: is 1 sec. the minimum, or is a shorter pause (0.5 sec) also possible ?

    grt Lucifer


Seite 1 von 2 12 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 06:33 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