Jump to content


Photo

Command line interface in the STB


  • Please log in to reply
6 replies to this topic

#1 -M-

  • Senior Member
  • 128 posts

+4
Neutral

Posted 16 September 2020 - 13:18

Is it possible to execute commands at the linux prompt in the STB? For example:
- Zap to a channel number
- Clear EPG data and start reload from EIT (DVB stream)

PS. I cannot "git checkout release-7.3", I got "error: The following untracked working tree files would be overwritten by checkout:" ...many meta-dream files... "Aborting". What do I do wrong / how to fix?

 



Re: Command line interface in the STB #2 WanWizard

  • PLi® Core member
  • 70,528 posts

+1,811
Excellent

Posted 16 September 2020 - 13:38

Up until 7.3-release, meta-dream was internal to the repository, in develop is has been moved to a submodule, like all other meta layers.

 

Unfortunately, git and submodules is always a struggle.

 

Best would probably be to clone the repo with "-b 7.3-release". If not possible, try deleting the meta-dream directory before the checkout.

 

As to your first question, it depends. If the function your require has an OpenWebIf function, yes, using wget or curl. If not, then no.


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: Command line interface in the STB #3 Trial

  • Senior Member
  • 1,128 posts

+34
Good

Posted 17 September 2020 - 07:53

Hi -M-,

Enigma2 has a web interface which can control almost all functions and it is done by a simple wget command.

 

With

wget -q -T 0 -O - http://127.0.0.1/web...:1:C00000:0:0:0:

my box switches to "Das Erste" on 19e.

 

I do not use this internal command but the following command to control from another computer.

wget -q -T 0 -O - http://user:'passwor...1:C00000:0:0:0:

 

If you want to use channel numbers you must simulate button presses with

wget -q -T 0 -O - http://127.0.0.1/web...ntrol?command=5 which is 4 I think.

 

There are a lot more commands.

Here is a list but in German: http://dream.reichholf.net/wiki/Webinterface_Befehle

 

Ralf


Edited by Trial, 17 September 2020 - 07:57.


Re: Command line interface in the STB #4 mrvica

  • Senior Member
  • 1,259 posts

+86
Good

Posted 17 September 2020 - 08:07

there is a script that emulates rc keys (fb.sh, fb = fernbedienung, remote control)

i.e. 

fb.sh l_blau s:2 down down s:2 ok

means

long blue + 2 sec. pause + 2x cursor down + 2 sec. pause + OK

 

 

 

 

Attached Files



Re: Command line interface in the STB #5 -M-

  • Senior Member
  • 128 posts

+4
Neutral

Posted 17 September 2020 - 10:11

Thanks!

I can zap

wget -q -O - http://127.0.0.1/web/zap?sRef=1:0:1:64:C9:65:FFFF0000:0:0:0:

However if I try some other command from https://dream.reichh...terface_Befehle

For example

wget -q -O - http://127.0.0.1/cgi-bin/status

it will be: 404 Not Found
What do I do wrong?

fb.sh works! (well, it prints strange if no argument and it doesn't seem to be able to show Verfuegbare Plugins)

PS. Now I thinking about to look into the epgrefresh source code.

 



Re: Command line interface in the STB #6 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 17 September 2020 - 11:59

Better look here:

https://github.com/E...I-documentation


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Command line interface in the STB #7 -M-

  • Senior Member
  • 128 posts

+4
Neutral

Posted 17 September 2020 - 13:58

Great :)

It works!

wget -q -O - http://127.0.0.1/web/about
wget -q -O - http://127.0.0.1/web/tunersignal
wget -q -O - http://127.0.0.1/web/deviceinfo
wget -q -O - http://127.0.0.1/web/vol
wget -q -O - http://127.0.0.1/api/statusinfo
wget -q -O - http://127.0.0.1/api/epgservicenow?sRef=1:0:1:64:C9:65:FFFF0000:0:0:0:

 

 




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users