Jump to content


Photo

Channellist from ftp


  • Please log in to reply
6 replies to this topic

#1 gusto

  • Senior Member
  • 63 posts

0
Neutral

Posted 15 October 2023 - 15:21

I don't want to reinvent the wheel. Surely someone has already done it.
I need the client to be able to download the current chanellist from my FTP (where they are stored, bouquets.tv, lame.db, etc.) to the box.
It is not a problem to write a shell script so that the client uses scp to download the necessary files to the right place and restart enigma2.
I see the problem in how to implement the execution of the script using a remote control (RC).
I would like it to be e.g. under the yellow button.
Can you help me  ?


Re: Channellist from ftp #2 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 15 October 2023 - 19:39

Hi. I don't know for sure... but I'll try to advise. In OpenPLi, there should be an option to short RCU button or to program a user button, according to the user. There you will choose the Enigma2 function that it is supposed to fulfill and somewhere between them will be the start of the Shell Script. Then you use the set RCU button to run that Shell Script in your set-top box. But I don't know for sure. I don't have OpenPLi currently installed to verify this. I only have OpenATV and in it it is possible to do as I describe :).



Re: Channellist from ftp #3 WanWizard

  • PLi® Core member
  • 70,522 posts

+1,810
Excellent

Posted 15 October 2023 - 20:04

It was OpenPLi who developed that feature, called "hotkey" ( I know ATV has renamed it).

 

But I have no idea how the shell script option works...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Channellist from ftp #4 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 15 October 2023 - 21:02

upload .sh script to box and make executable.

 

/usr/script/mydownloadscript.sh
 
or with .hidden. marker
 
/usr/script/mydownloadscript.hidden.sh
assign script to yellow key:
 
menu > setup > system > expert settings > hotkey > yellow > shellscripts > mydownloadscript.sh


Re: Channellist from ftp #5 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 15 October 2023 - 22:01

Yes, that's exactly what I meant. I don't know exactly what it's called in the case of OpenATV, because I didn't want to look it up :). But it is possible to find it there. And also, as @LraiZer already wrote, it can also be checked in OpenPLi.

 

Simply written... you can find it among the special functions of the RCU buttons or among the reprogrammable RCU buttons... in the Enigma2 GUI MENU.

 

Of course, shell scripts need to be moved to the "/usr/script" directory, and if it doesn't exist, you have to create this directory. To be sure, shell scripts should also have execution rights assigned (with the help of FTP or via the chmod command, it is the value 755, for attributes of shell script files).



Re: Channellist from ftp #6 littlesat

  • PLi® Core member
  • 57,165 posts

+698
Excellent

Posted 15 October 2023 - 22:25

They call it button assignment or so….

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


Re: Channellist from ftp #7 gusto

  • Senior Member
  • 63 posts

0
Neutral

Posted 16 October 2023 - 05:43

Thanks to all of you. I'll try it and let you know how it works.




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users