Ergebnis 1 bis 10 von 20
-
17.11.2016, 16:28 #1
- Registriert seit
- 22.10.2016
- Beiträge
- 8
- Thanks (gegeben)
- 0
- Thanks (bekommen)
- 12
- Total Downloaded
- 64,08 MB
- Total Downloaded
- 64,08 MB
Box 1:VU Solo 4KBox 2:Dream 500HDFernbedienungstasten 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'
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
Bspl.:Code:fb.sh l_blau down down ok
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
Geändert von Herr_Knödel (28.11.2016 um 20:01 Uhr)
-
Danke - 8 Thanks
-
Advertising
-
19.11.2016, 16:47 #2
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
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
-
Danke - 2 Thanks
-
19.11.2016, 20:50 #3
- Registriert seit
- 22.10.2016
- Beiträge
- 8
- Thanks (gegeben)
- 0
- Thanks (bekommen)
- 12
- Total Downloaded
- 64,08 MB
- Total Downloaded
- 64,08 MB
ThemenstarterBox 1:VU Solo 4KBox 2:Dream 500HDHi 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
-
20.11.2016, 15:32 #4
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
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 LuciferGeändert von Lucifer (20.11.2016 um 17:14 Uhr) Grund: text error
-
21.11.2016, 18:52 #5
- Registriert seit
- 22.10.2016
- Beiträge
- 8
- Thanks (gegeben)
- 0
- Thanks (bekommen)
- 12
- Total Downloaded
- 64,08 MB
- Total Downloaded
- 64,08 MB
ThemenstarterBox 1:VU Solo 4KBox 2:Dream 500HDThanks 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
-
Danke - 1 ThanksHeart bedankten sich
-
21.11.2016, 23:00 #6
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
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
-
22.11.2016, 20:39 #7
- Registriert seit
- 22.10.2016
- Beiträge
- 8
- Thanks (gegeben)
- 0
- Thanks (bekommen)
- 12
- Total Downloaded
- 64,08 MB
- Total Downloaded
- 64,08 MB
ThemenstarterBox 1:VU Solo 4KBox 2:Dream 500HDlong button press (green for example)
wget -O- -q "http://localhost/web/remotecontrol?type=long&command=399"
will add this to my script
brGeändert von Herr_Knödel (22.11.2016 um 20:43 Uhr)
-
22.11.2016, 22:25 #8
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
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
-
23.11.2016, 18:53 #9
- Registriert seit
- 22.10.2016
- Beiträge
- 8
- Thanks (gegeben)
- 0
- Thanks (bekommen)
- 12
- Total Downloaded
- 64,08 MB
- Total Downloaded
- 64,08 MB
ThemenstarterBox 1:VU Solo 4KBox 2:Dream 500HDThanks 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
-
Danke - 1 ThanksHeart bedankten sich
-
24.11.2016, 20:55 #10
- Registriert seit
- 01.02.2015
- Beiträge
- 184
- Thanks (gegeben)
- 134
- Thanks (bekommen)
- 131
- Total Downloaded
- 1,62 MB
- Total Downloaded
- 1,62 MB
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
Lesezeichen