Jump to content


Photo

help hotkey function


  • Please log in to reply
49 replies to this topic

#1 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 10:00

Hi, I tried to create a simple bash script called message.sh, copied to the / usr / script directory and using the hotkey function I assigned it to the info button (tried with others) but when I press that button it doesn't appear what the script should give me what it does if I run it from the command line ... what am I doing?

 

Attached Files



Re: help hotkey function #2 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 10:11

.... if instead I assign any function of the image it executes it then I assume that there is something in the script that it does not like


Edited by zaccomass, 14 October 2019 - 10:12.


Re: help hotkey function #3 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 14 October 2019 - 12:05

wget -q -c http://127.0.0.1/web/message'?text=Hallo!!!....&type=2&timeout='+5 >/dev/null

The script itself dumps the results do /dev/null so you will simply see a OK script did run... and the popup it creates via openwebif only will appear at 'infobar' level...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: help hotkey function #4 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 12:09

wget -q -c http://127.0.0.1/web/message'?text=Hallo!!!....&type=2&timeout='+5 >/dev/null

The script itself dumps the results do /dev/null so you will simply see a OK script did run... and the popup it creates via openwebif only will appear at 'infobar' level...

 

So to have the same result of how I run it from the shell how should I do?



Re: help hotkey function #5 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 12:12

or send a pause command for streaming like this 

 

wget -q -O - http://127.0.0.1/web...rol?command=164 >/dev/null

 

 

 

 

not seeing anything on the screen (the message) I can't understand if the script was executed. can you give me an example with the pause command that I gave you above that if I start it from the shell it works for me, thanks


Edited by zaccomass, 14 October 2019 - 12:17.


Re: help hotkey function #6 WanWizard

  • PLi® Core member
  • 68,625 posts

+1,739
Excellent

Posted 14 October 2019 - 12:35

and the popup it creates via openwebif only will appear at 'infobar' level...

 

Meaning that as long as you are not watching TV but are elsewhere in the GUI, the popup will not show.

 

Run the script with an ! in front of it, so it doesn't open the result screen when you press the key. 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: help hotkey function #7 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 12:36

 

and the popup it creates via openwebif only will appear at 'infobar' level...

 

Meaning that as long as you are not watching TV but are elsewhere in the GUI, the popup will not show.

 

Run the script with an ! in front of it, so it doesn't open the result screen when you press the key. 

 

I don't understand so much you would give me an example thanks
 
maybe you mean here /etc/enigma2/setting to the line config.misc.hotkey.showTv=Shellscript/message.sh

Edited by zaccomass, 14 October 2019 - 12:40.


Re: help hotkey function #8 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 14 October 2019 - 12:39

Just rename the sh file so it starts with an !... so rename it to !message.sh... this closes the result file...

 

But what do you try to achieve here?


Edited by littlesat, 14 October 2019 - 12:39.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: help hotkey function #9 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 12:45

Just rename the sh file so it starts with an !... so rename it to !message.sh... this closes the result file...

 

But what do you try to achieve here?

My purpose is to create my own pause button using this command

wget -q -O - http://127.0.0.1/web...rol?command=164



Re: help hotkey function #10 WanWizard

  • PLi® Core member
  • 68,625 posts

+1,739
Excellent

Posted 14 October 2019 - 12:47

Isn't it much simpler just to map the pause function to another key?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: help hotkey function #11 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 14 October 2019 - 12:47

Then just made the script and add an ! before the script name should work.

 

remap keys disappear as soon you flash/upgrade an image.

 

(un)pauze from timeshift is included as hotkey function.


Edited by littlesat, 14 October 2019 - 12:49.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: help hotkey function #12 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 12:50

Isn't it much simpler just to map the pause function to another key?

have I never tried how to do it?



Re: help hotkey function #13 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 12:56

for resolve this problem https://forums.openp...ntrol-dreambox/



Re: help hotkey function #14 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 13:01

I made the suggested change to rename the file in /usr/script/!message.sh but anyway it should be wrong



Re: help hotkey function #15 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 14 October 2019 - 13:17

Maybe because you're into the hotkey 'screen' where the pause button is executed via the webif and then pause is not available...

On which box are you trying the old simplified DMM remote?


Edited by littlesat, 14 October 2019 - 13:18.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: help hotkey function #16 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 13:19

Maybe because you're into the hotkey 'screen' where the pause button is executed via the webif and then pause is not available...

On which box are you trying the old simplified DMM remote?

for resolve this problem https://forums.openp...ntrol-dreambox/



Re: help hotkey function #17 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 14 October 2019 - 13:27

Then you 'stuck' to the keymap... 

https://github.com/O...data/keymap.xml

and ensure the file is not overwritten during an upgrade


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: help hotkey function #18 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 13:31

Then you 'stuck' to the keymap... 

https://github.com/O...data/keymap.xml

and ensure the file is not overwritten during an upgrade

I thank you but I can't understand where and how to modify the file, can you give me an example to insert the pause / play on a key different from the standard one ?? Then this file where I copy it?
pause/play during streaming execution

 

 

I need these keys
        <key id="KEY_PLAY" mapto="play" flags="m"/>
        <key id="KEY_STOP" mapto="stop" flags="b"/>
        <key id="KEY_PAUSE" mapto="pause" flags="m"/>
        <key id="KEY_REWIND" mapto="rewind" flags="b"/>
        <key id="KEY_FASTFORWARD" mapto="fastforward" flags="b"/>

 


Edited by zaccomass, 14 October 2019 - 13:35.


Re: help hotkey function #19 zaccomass

  • Senior Member
  • 117 posts

0
Neutral

Posted 14 October 2019 - 13:37

maybe to assign to the keys
TV=PLAY
RADIO=PAUSE
TEXT=FORWARD
HELP=REWIND


Edited by zaccomass, 14 October 2019 - 13:38.


Re: help hotkey function #20 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 14 October 2019 - 14:16

Better consider trying to obtain a 'full' enigma2 capable remote instead of keeping this enigma1 remote...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users