Enigma2:WebInterface
Inhaltsverzeichnis
General
With the Webinterface you can Control your Box using a Browser. The Dreambox Webinterface (short WebIf) is included in all newer Images. The latest version of the WebIf can be obtained via CVS. You can also use the Webinterface API in your 3rd Party Applications to control the box or display information.
You can reach the WebIf by pointing your Browser to the IP if your Box (e.g. 192.168.0.21), or if name resolution works by calling http://dreambox.
Technical
The Webinterface is fully embedded into enigma2. It is able to use ANY functionality and obtain ANY Information enigma2 can deliver.
Concept
The Webinterface works with a Client-/Server based Concept. The Webinterface Plugin provides you with 2 Major things.
- A Client API which you can access with any client (html/javascript, c++, java) you want to
- Control your Box and obtain Information for Channels (EPG, Timers, Recorded Movies, etc)
- Results are returned as xml
- A http client you can use with your browser
Generated API Documentation
You can find a generated API Documentation here: http://dream.reichholf.net/e2web/
This list will be updated automatically.
Live Updates
One of the major Improvements compared to the Webinterface of enigma1 is the Live-Update functionality. Changes can be automatically delivered to the webinterface without polling the server or reloading the whole page. This is realized by using a never ending Connection which is used to execute the DOM-Manipulation cmds.
<script>parent.set("CurrentTime", "19:46:32");</script> <script>parent.set("CurrentService", Channelname(19.2?E)");</script> <script>parent.set("Event_Now_Name", "Name of Current event");</script> <script>parent.set("Event_Now_Extended_Description", "Extended description of current event");</script> <script>parent.set("Event_Now_Begin", "19:40");</script> <script>parent.set("Event_Now_Remaining", "+28 min");</script> <script>parent.set("Event_Next_Name", "Name of next Event");</script> <script>parent.set("Event_Next_Begin", "20:15");</script> <script>parent.set("Event_Next_Remaining", "60 min");</script> <script>parent.set("Event_Next_Extended_Description", "Extendes description of next event");</script>
Client API
The API can be used by making http requests to your Box. As described above every request will usually result in a valid xml response.
Box General Info
Request:
-
http://IP_of_your_box/web/about
Or via Telnet use at the Telnet prompt:
- wget -q -O - http://127.0.0.1/web/about
Result is (here a DM800 / no HDD):
<?xml version="1.0" encoding="UTF-8"?> <e2abouts> <e2about> <e2enigmaversion>dev-2008-05-19</e2enigmaversion> <e2landhcp>True</e2landhcp> <e2lanip>10.101.98.94</e2lanip> <e2lanmask>255.255.255.0</e2lanmask> <e2langw>10.101.98.1</e2langw> <e2fpversion>?</e2fpversion> <e2webifversion>Beta 0.98.5</e2webifversion> <e2tunerinfo> <e2nim> <name>Tuner A</name> <type> Alps BSBE2 (DVB-S2)</type> </e2nim> </e2tunerinfo> <e2hddinfo> <model>N/A</model> <capacity>-</capacity> <free>-</free> </e2hddinfo> <e2servicename>Das Erste</e2servicename> <e2serviceprovider>ARD </e2serviceprovider> <e2serviceaspect>4:3</e2serviceaspect> <e2servicevideosize>-1x-1</e2servicevideosize> <e2servicenamespace>0xc00000</e2servicenamespace> <e2vpid>101</e2vpid> <e2apid>102</e2apid> <e2pcrid>101</e2pcrid> <e2pmtpid>100</e2pmtpid> <e2txtpid>104</e2txtpid> <e2tsid>1101</e2tsid> <e2onid>1</e2onid> <e2sid>28106</e2sid> </e2about> </e2abouts>
DM8000:
<?xml version="1.0" encoding="UTF-8"?> <e2abouts> <e2about> <e2enigmaversion>Mar 29 2012</e2enigmaversion> <e2imageversion>Apr 3 2012 16:58:47</e2imageversion> <e2webifversion>1.6.8</e2webifversion> <e2fpversion>7</e2fpversion> <e2model>dm8000</e2model> <e2lanmac>d8:5d:4c:eb:55:23</e2lanmac> <e2landhcp>True</e2landhcp> <e2lanip>0.0.0.0</e2lanip> <e2lanmask>0.0.0.0</e2lanmask> <e2langw>0.0.0.0</e2langw> <e2tunerinfo> <e2nim> <name>Tuner A</name> <type> BCM4506 (internal) (DVB-S2)</type> </e2nim> <e2nim> <name>Tuner B</name> <type> BCM4506 (internal) (DVB-S2)</type> </e2nim> <e2nim> <name>Tuner C</name> <type> (empty)</type> </e2nim> <e2nim> <name>Tuner D</name> <type> (empty)</type> </e2nim> </e2tunerinfo> <e2servicename>Animal Planet</e2servicename> <e2servicenamespace/> <e2serviceaspect/> <e2serviceprovider>HTB+</e2serviceprovider> <e2videowidth>N/A</e2videowidth> <e2videoheight>N/A</e2videoheight> <e2servicevideosize>N/AxN/A</e2servicevideosize> <e2apid>N/A</e2apid> <e2vpid>N/A</e2vpid> <e2pcrpid>N/A</e2pcrpid> <e2pmtpid>N/A</e2pmtpid> <e2txtpid>N/A</e2txtpid> <e2tsid>5</e2tsid> <e2onid>112</e2onid> <e2sid>20504</e2sid> </e2about> </e2abouts>
Request:
-
http://IP_of_your_box/web/deviceinfo
Result:
<?xml version="1.0" encoding="UTF-8"?> <e2deviceinfo> <e2enigmaversion>Mar 29 2012</e2enigmaversion> <e2imageversion>Apr 3 2012 16:58:47</e2imageversion> <e2webifversion>1.6.8</e2webifversion> <e2fpversion>7</e2fpversion> <e2devicename>dm8000</e2devicename> <e2frontends> <e2frontend> <e2name>Tuner A</e2name> <e2model> BCM4506 (internal) (DVB-S2)</e2model> </e2frontend> <e2frontend> <e2name>Tuner B</e2name> <e2model> BCM4506 (internal) (DVB-S2)</e2model> </e2frontend> <e2frontend> <e2name>Tuner C</e2name> <e2model> (empty)</e2model> </e2frontend> <e2frontend> <e2name>Tuner D</e2name> <e2model> (empty)</e2model> </e2frontend> </e2frontends> <e2network> <e2interface> <e2name>eth0</e2name> <e2mac>00:09:34:1c:9e:d2</e2mac> <e2dhcp>False</e2dhcp> <e2ip>192.0.2.2</e2ip> <e2gateway>192.0.2.1</e2gateway> <e2netmask>255.255.255.0</e2netmask> </e2interface> </e2network> <e2hdds> </e2hdds> </e2deviceinfo>
Movie location
Show a movie locations.
Request:
-
http://IP_of_your_box/web/getlocations
Result:
<e2locations> <e2location>/hdd/movie/</e2location> </e2locations>
Show a movie current location (What does "current" mean?).
Request:
-
http://IP_of_your_box/web/getcurrlocation
Result:
<e2locations> <e2location>/hdd/movie</e2location> </e2locations>
Volume
Requests:
- Get current Volume:
http://dreambox/web/vol
oderhttp://dreambox/web/vol?set=state
- Set Volume to 23:
http://dreambox/web/vol?set=set23
- Increase Volume:
http://dreambox/web/vol?set=up
- Decrease Volume:
http://dreambox/web/vol?set=down
- Switch Mute:
http://dreambox/web/vol?set=mute
Result:
<?xml version="1.0" encoding="utf-8"?> <e2volume> <e2result>True</e2result> <e2resulttext>state</e2resulttext> <e2current>5</e2current> <e2ismuted>False</e2ismuted> </e2volume>
Parameter:
result = True if command successful, False otherwise resulttext = textbased description of what succeeded/went wrong current = current Volume - Value between 0 and 100 ismuted = True if muted, False if not
Audio Tracks
Displays the available audio tracks of the current service
Request:
-
http://IP_of_your_box/web/getaudiotracks
or via Telnet:
- wget -q -O - http://127.0.0.1/web/getaudiotracks
Result:
<?xml version="1.0" encoding="UTF-8"?> <e2audiotracklist> <e2audiotrack> <e2audiotrackdescription>MPEG (Stereo)</e2audiotrackdescription> <e2audiotrackid>0</e2audiotrackid> <e2audiotrackpid>120</e2audiotrackpid> <e2audiotrackactive>True</e2audiotrackactive> </e2audiotrack> <e2audiotrack> <e2audiotrackdescription>MPEG (mono/Hörfilm)</e2audiotrackdescription> <e2audiotrackid>1</e2audiotrackid> <e2audiotrackpid>121</e2audiotrackpid> <e2audiotrackactive>False</e2audiotrackactive> </e2audiotrack> <e2audiotrack> <e2audiotrackdescription>AC3 (Dolby Digital)</e2audiotrackdescription> <e2audiotrackid>2</e2audiotrackid> <e2audiotrackpid>125</e2audiotrackpid> <e2audiotrackactive>False</e2audiotrackactive> </e2audiotrack> </e2audiotracklist>
To select a specific audio track you first have to find out its id via the "getaudiotracks" command. Then use the id as a parameter on this command:
Request:
-
http://IP_of_your_box/web/selectaudiotrack?id=2
or via Telnet:
- wget -q -O - http://127.0.0.1/web/selectaudiotrack?id=2
Result:
<?xml version="1.0" encoding="UTF-8"?> <e2result>Success</e2result>
In case you issued an invalid (non-existing) id you get this result:
<?xml version="1.0" encoding="UTF-8"?> <e2result>Error</e2result>
EPG
Request:
-
http://IP_of_your_box/web/epgservice?sRef=1:0:1:19A:136:70:1680000:0:0:0:
Result:
<?xml version="1.0" encoding="UTF-8"?> <e2eventlist> <e2event> <e2eventid>4873</e2eventid> <e2eventstart>1330276500</e2eventstart> <e2eventduration>6600</e2eventduration> <e2eventcurrenttime>1330279058</e2eventcurrenttime> <e2eventtitle>Мистическая пятерка</e2eventtitle> <e2eventdescription/> <e2eventdescriptionextended>В канун Хэллоуина щенки оказываются далеко за городом в таинственном особняке, где их ждут удивительные приключения. Заручившись поддержкновых друзей, им придётся приложить немало усилий, чтобы помешать коварным планам злого колдуна.</e2eventdescriptionextended> <e2eventservicereference>1:0:1:19A:136:70:1680000:0:0:0:</e2eventservicereference> <e2eventservicename>Disney </e2eventservicename> </e2event> <e2event> <e2eventid>4967</e2eventid> <e2eventstart>1330283100</e2eventstart> <e2eventduration>3300</e2eventduration> <e2eventcurrenttime>1330279058</e2eventcurrenttime> <e2eventtitle>Легенда об Искателе</e2eventtitle> <e2eventdescription>Фантастика</e2eventdescription> <e2eventdescriptionextended>Сериал рассказывает о приключениях персонажей серии книг писателя-фантаста Терри Гудкайнда под названием "Меч истины"</e2eventdescriptionextended> <e2eventservicereference>1:0:1:19A:136:70:1680000:0:0:0:</e2eventservicereference> <e2eventservicename>Disney </e2eventservicename> </e2event> ... </e2eventlist>
Requests:
- http://dreambox/web/epgsearch?search={searchstring}
- http://dreambox/web/epgnow?bRef={bouqetRev}
- http://dreambox/web/epgnow?bRef=1:0:1:335:9dd0:7e:820000:0:0:0:
Timer
Request:
-
http://IP_of_your_box/web/timeraddbyeventid?sRef=1:0:1:7926:A:70:1680000:0:0:0:&eventid=53779&dirname=/hdd/movie/
Result:
<e2simplexmlresult> <e2state>True</e2state> <e2statetext>Timer 'ФОРУМ. Продолжение' added</e2statetext> </e2simplexmlresult>
Request:
-
http://dreambox/web/timerlist
Result:
<e2timerlist> <e2timer> <e2servicereference>1:0:1:7926:A:70:1680000:0:0:0:</e2servicereference> <e2servicename>РБК-ТВ</e2servicename> <e2eit>53779</e2eit> <e2name>ФОРУМ. Продолжение</e2name> <e2description/> <e2descriptionextended/> <e2disabled>0</e2disabled> <e2timebegin>1330283100</e2timebegin> <e2timeend>1330285320</e2timeend> <e2duration>2220</e2duration> <e2startprepare>1330283406.12</e2startprepare> <e2justplay>0</e2justplay> <e2afterevent>3</e2afterevent> <e2location>/hdd/movie/</e2location> <e2tags/> <e2logentries>[(1330283150, 15, 'record time changed, start prepare is now: Sun Feb 26 20:04:40 2012'), (1330283150, 5, 'activating state 1'), (1330283150, 0, "Filename calculated as: '/hdd/movie/20120226 2005 - \xd0\xa0\xd0\x91\xd0\x9a-\xd0\xa2\xd0\x92 - \xd0\xa4\xd0\x9e\xd0\xa0\xd0\xa3\xd0\x9c_ \xd0\x9f\xd1\x80\xd0\xbe\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5'"), (1330283150, 4, 'failed to write meta information'), (1330283150, 10, 'backoff: retry in 5 seconds'), (1330283150, 16, 'record event 5'), (1330283150, 16, 'record event 1'), (1330283150, 7, 'prepare failed'), (1330283150, 9, 'zap without asking'), (1330283151, 13, 'ok, zapped away'), (1330283155, 5, 'activating state 1'), (1330283155, 0, "Filename calculated as: '/hdd/movie/20120226 2005 - \xd0\xa0\xd0\x91\xd0\x9a-\xd0\xa2\xd0\x92 - \xd0\xa4\xd0\x9e\xd0\xa0\xd0\xa3\xd0\x9c_ \xd0\x9f\xd1\x80\xd0\xbe\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5 \xd0\xbd\xd0\xb8\xd0\xb5'"), (1330283155, 16, 'record event 2'), (1330283155, 16, 'record event 6'), (1330283156, 4, 'failed to write meta information'), (1330283156, 10, 'backoff: retry in 10 seconds'), (1330283156, 16, 'record event 5'), (1330283156, 16, 'record event 1'), (1330283156, 7, 'prepare failed'), (1330283166, 5, 'activating state 1'), (1330283166, 0, "Filename calculated as: '/hdd/movie/20120226 2005 - \xd0\xa0\xd0\x91\xd0\x9a-\xd0\xa2\xd0\x92 - \xd0\xa4 \xd0\x9e\xd0\xa0\xd0\xa3\xd0\x9c_ \xd0\x9f\xd1\x80\xd0\xbe\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5'"), (1330283166, 16, 'record event 2'), (1330283166, 16, 'record event 6'), (1330283166, 4, 'failed to write meta information'), (1330283166, 10, 'backoff: retry in 20 seconds'), (1330283166, 16, 'record event 5'), (1330283166, 16, 'record event 1'), (1330283166, 7, 'prepare failed'), (1330283186, 5, 'activating state 1'), (1330283186, 0, "Filename calculated as: '/hdd/movie/20120226 2005 - \xd0\xa0\xd0\x91\xd0\x9a-\xd0\xa2\xd0\x92 - \xd0\xa4\xd0\x9e\xd0\xa0\xd0\xa3\xd0\x9c_ \xd0\x9f\xd1\x80\xd0\xbe\xd0\xb4 \xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5'"), (1330283186, 16, 'record event 2'), (1330283186, 16, 'record event 6'), (1330283186, 4, 'failed to write meta information'), (1330283186, 10, 'backoff: retry in 40 seconds'), (1330283186, 16, 'record event 5'), (1330283186, 16, 'record event 1'), (1330283186, 7, 'prepare failed'), (1330283226, 5, 'activating state 1'), (1330283226, 0, "Filename calculated as: '/hdd/movie/20120226 2005 - \xd0\xa0\xd0\x91\xd0\x9a- \xd0\xa2\xd0\x92 - \xd0\xa4\xd0\x9e\xd0\xa0\xd0\xa3\xd0\x9c_ \xd0\x9f\xd1\x80\xd0\xbe\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5'"), (1330283226, 16, 'record event 2'), (1330283226, 16, 'record event 6'), (1330283226, 4, 'failed to write meta information'), (1330283226, 10, 'backoff: retry in 80 seconds'), (1330283226, 16, 'record event 5'), (1330283226, 16, 'record event 1'), (1330283226, 7, 'prepare failed'), (1330283306, 5, 'activating state 1'), (1330283306, 0, "Filename calculated as: '/hdd/movie/20120226 2005 - \xd0\xa0\xd0\x91\xd0\x9a-\xd0\xa2\xd0\x92 - \xd0\xa4\xd0\x9e\xd0\xa0\xd0\xa3\xd0\x9c_ \xd0\x9f\xd1\x80\xd0\xbe\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5'"), (1330283306, 16, 'record event 2'), (1330283306, 16, 'record event 6'), (1330283306, 4, 'failed to write meta information'), (1330283306, 10, 'backoff: retry in 100 seconds'), (1330283306, 16, 'record event 5'), (1330283306, 16, 'record event 1'), (1330283306, 7, 'prepare failed')]</e2logentries> <e2filename>/hdd/movie/20120226 2005 - РБК-ТВ - ФОРУМ_ Продолжение</e2filename> <e2backoff>100</e2backoff> <e2nextactivation/> <e2firsttryprepare>False</e2firsttryprepare> <e2state>0</e2state> <e2repeated>0</e2repeated> <e2dontsave>0</e2dontsave> <e2cancled>False</e2cancled> <e2toggledisabled>1</e2toggledisabled> <e2toggledisabledimg>off</e2toggledisabledimg> </e2timer> </e2timerlist>
Request:
-
http://IP_of_your_box/web/timerdelete?sRef=1:0:1:7926:A:70:1680000:0:0:0:&begin=1330283100&end=1330285320
Result:
<e2simplexmlresult> <e2state>True</e2state> <e2statetext>The timer 'ФОРУМ. Продолжение' has been deleted successfully</e2statetext> </e2simplexmlresult>
Requests:
- http://dreambox/web/timeradd?sRef={serviceRef}&begin={begin}&end={end}&name={name}&description={description}&eit={eit}&disabled={disabled}&justplay={justplay}&afterevent={afterevent}
- http://dreambox/web/timerchange?sRef={serviceRef}&begin={begin}&end={end}&name={name}&description={description}&eit={eit}&disabled={disabled}&justplay={justplay}&afterevent={afterevent}
- http://dreambox/web/timeronoff?sRef={serviceRef}&begin={begin}&end={end}
- http://dreambox/web/tvbrowser?command=add&&syear={start_year}&smonth={start_month}&sday={start_day}&shour={start_hour}&smin={start_minute}&eyear={end_year}&emonth={end_month}&eday={end_day}&ehour={end_hour}&emin={end_minute}&sRef={serviceRef}&name={title}&description={description}&afterevent=0&eit=&disabled=0&justplay=0&repeated=0
- http://dreambox/web/tvbrowser?command=add&&syear={start_year}&smonth={start_month}&sday={start_day}&shour={start_hour}&smin={start_minute}&eyear={end_year}&emonth={end_month}&eday={end_day}&ehour={end_hour}&emin={end_minute}&sRef={serviceRef}&name={title}&description={description}&afterevent=0&eit=&disabled=0&justplay=0&repeated=0
- http://dreambox/web/tvbrowser?command=del&&syear={start_year}&smonth={start_month}&sday={start_day}&shour={start_hour}&smin={start_minute}&eyear={end_year}&emonth={end_month}&eday={end_day}&ehour={end_hour}&emin={end_minute}&sRef={serviceRef}&name={title}&description={description}&afterevent=0&eit=&disabled=0&justplay=0&repeated=0
Message
Requests:
-
http://dreambox/web/message?text={messagetext}&type={messagetype}&timeout={messagetimeout}
Parameter:
messagetext=Text of Message messagetype=Number from 0 to 3, 0= Yes/No, 1= Info, 2=Message, 3=Attention timeout=Can be empty or the Number of seconds the Message should disappear after.
Result:
<e2message> <e2result>True</e2result> <e2resulttext>Message send to screen</e2resulttext> </e2message>
Requests:
-
http://dreambox/web/messageanswer?getanswer=now
Result:
<e2message> <e2result>True</e2result> <e2resulttext>Answer is (YES|NO)!</e2resulttext> </e2message>
RemoteControl
Requests:
-
http://dreambox/web/remotecontrol?command={command}
result:
<e2remotecontrol> <e2result>True</e2result> <e2resulttext>command was was sent</e2resulttext> </e2remotecontrol>
{Command} is (slight differences to the Enigma1 WebIF):
116 Key "Power" 2 Key "1" 3 Key "2" 4 Key "3" 5 Key "4" 6 Key "5" 7 Key "6" 8 Key "7" 9 Key "8" 10 Key "1" 11 Key "0" 412 Key "previous" 407 Key "next 115 Key "volume up" 113 Key "mute" 402 Key "bouquet up" 114 Key "volume down" 174 Key "lame" 403 Key "bouquet down" 358 Key "info" 103 Key "up" 139 Key "menu" 105 Key "left" 352 Key "OK" 106 Key "right" 392 Key "audio" 108 Key "down" 393 Key "video" 398 Key "red" 399 Key "green" 400 Key "yellow" 401 Key "blue" 377 Key "tv" 385 Key "radio" 388 Key "text" 138 Key "help"
Settings
Requests:
-
http://dreambox/web/settings
Result:
<e2settings> <e2setting> <e2settingvalue>0</e2settingvalue> <e2settingname>config.recording.margin_before</e2settingname> </e2setting <e2setting> <e2settingvalue>0</e2settingvalue> <e2settingname>config.recording.margin_after</e2settingname> </e2setting> </e2settings>
Bouquets
Requests:
-
http://dreambox/web/getservices?ServiceListBrowse= ' plus encoded serviceref
...anybody knows what the result looks like...?
-
http://IP_of_your_box/web/getservices
or via Telnet:
- wget -q -O - http://127.0.0.1/web/getservices
Result (more than one bouquet assumed):
<?xml version="1.0" encoding="UTF-8"?> <e2servicelist> <e2service> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe00.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Normal</e2servicename> </e2service> <e2service> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe04.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Premiere</e2servicename> </e2service> <e2service> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe01.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Sport+News</e2servicename> </e2service> <e2service> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe02.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Kinder+Music</e2servicename> </e2service> <e2service> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe03.tv" ORDER BY bouquet</e2servicereference> <e2servicename>HD</e2servicename> </e2service> <e2service> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Favourites (TV)</e2servicename> </e2service> </e2servicelist>
The services within a bouquet are requested by specifying the service reference. The service reference of the last bouquet from above is:
1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
so the request is:
-
http://IP_of_your_box/web/getservices?sRef=1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
or via Telnet (replace all spaces with %20 and the " with %22):
- wget -q -O - http://127.0.0.1/web/getservices?sRef=1:7:1:0:0:0:0:0:0:0:FROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet
Result is:
<?xml version="1.0" encoding="UTF-8"?> <e2servicelist> <e2service> <e2servicereference>1:0:1:6DCA:44D:1:C00000:0:0:0:</e2servicereference> <e2servicename>Das Erste</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:6D66:437:1:C00000:0:0:0:</e2servicereference> <e2servicename>ZDF</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:6D67:437:1:C00000:0:0:0:</e2servicereference> <e2servicename>3sat</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:445C:453:1:C00000:0:0:0:</e2servicereference> <e2servicename>SAT.1</e2servicename> </e2service> ... </e2servicelist>
If there are headers within the bouquet an <e2service> entry looks like this:
<e2service> <e2servicereference>1:64:A:0:0:0:0:0:0:0::Premiere-Star---Astra(19.2E)---------------------------------------------------------</e2servicereference> <e2servicename>Premiere-Star---Astra(19.2E)---------------------------------------------------------</e2servicename> </e2service>
Request:
-
http://IP_of_your_box/web/getallservices
Result:
<?xml version="1.0" encoding="UTF-8"?> <e2servicelistrecursive> <e2bouquet> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Favourites (TV)</e2servicename> <e2servicelist> <e2service> <e2servicereference>1:0:19:2B5C:3F3:1:C00000:0:0:0:</e2servicereference> <e2servicename><n/a></e2servicename> </e2service> <e2service> <e2servicereference>1:0:19:2B66:3F3:1:C00000:0:0:0:</e2servicereference> <e2servicename><n/a></e2servicename> </e2service> </e2servicelist> </e2bouquet> <e2bouquet> <e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.LastScanned.tv" ORDER BY bouquet</e2servicereference> <e2servicename>Last Scanned</e2servicename> <e2servicelist> <e2service> <e2servicereference>1:0:1:280B:2:70:1680000:0:0:0:</e2servicereference> <e2servicename>12226V SID 0x280b</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:2810:2:70:1680000:0:0:0:</e2servicereference> <e2servicename>12226V SID 0x2810</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:5015:5:70:1680000:0:0:0:</e2servicereference> <e2servicename>Discovery</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:2816:2:70:1680000:0:0:0:</e2servicereference> <e2servicename>12226V SID 0x2816</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:5016:5:70:1680000:0:0:0:</e2servicereference> <e2servicename>DIVA Universal</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:5018:5:70:1680000:0:0:0:</e2servicereference> <e2servicename>Animal Planet</e2servicename> </e2service> <e2service> <e2servicereference>1:0:1:5019:5:70:1680000:0:0:0:</e2servicereference> <e2servicename>TLC</e2servicename> </e2service> </e2servicelist> </e2bouquet> </e2servicelistrecursive>
reload lamedb or Userbouquets
Requests:
-
http://dreambox/web/servicelistreload?mode={mode}
Mode can be:
- 0, reloading lamedb and Userbouquets
- 1, reloading lamedb only
- 2, reloading Userbouquets only
Result of mode=1:
<e2message> <e2result>true</e2result> <e2resulttext>reloaded lamedb</e2resulttext> </e2message>
- e2result, true or false
- e2resulttext: contains strings with errortext if failed, in the other case the successfull command
Zap
Request:
-
http://dreambox/web/zap?sRef={servicereference}
or via Telnet (this one switches to Anixe HD):
- wget -q -O - http://127.0.0.1/web/zap?sRef=1:0:19:84:6:85:C00000:0:0:0:
Result:
<rootElement></rootElement>
Issuing an invalid servicereference will get you the same result...
Streaming
Request:
Current Channel
Requests:
-
http://dreambox/web/subservices
' subservices for current service
Result:
<?xml version="1.0" encoding="UTF-8"?> <e2servicelist> <e2service> <e2servicereference>1:0:1:335:9DD0:7E:820000:0:0:0:</e2servicereference> <e2servicename>M6 Suisse</e2servicename> </e2service> </e2servicelist>
Miscellaneous
Requests:
- http://dreambox/web/updates.html
- http://dreambox/web/movielist
- http://dreambox/web/powerstate? to check Powerstate
- http://dreambox/web/powerstate?newstate={powerstate_number}
- 0 = Toogle Standby
- 1 = Deepstandby
- 2 = Reboot
- 3 = Restart Enigma2
- 4 = Wakeup form Standby
- 5 = Standby
Links
- Enigma2-Plugins CVS: http://schwerkraft.elitedvb.net/scm/?group_id=11
Grundlagen - Installation - Hardware - Entwicklung - Portal
Enigma - Enigma2 - Plugins - Spiele - Software - Tools - Howto - FAQ - Images
Hauptseite - News - Alle Artikel - Bewertungen - Gewünschte Seiten - Index - Neue Artikel - Impressum - Meilensteine - Team
Hilfeportal - Seite bearbeiten - Bilder - Links - Tabellen - Textgestaltung