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?
Command line interface in the STB
#1
Posted 16 September 2020 - 13:18
Re: Command line interface in the STB #2
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
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
Edited by Trial, 17 September 2020 - 07:57.
Re: Command line interface in the STB #4
Re: Command line interface in the STB #5
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
Posted 17 September 2020 - 11:59
Re: Command line interface in the STB #7
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:
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users