Dreambox WebIF commands
You can access the Dreambox with any browser. If you want to explore a little more take a look at DreamboxIP/index.js and /zap.js
Example for a WebIF Command(change it to your dreambox IP):
http://root:dreambox@192.168.0.5/channels/getcurrent
or:
http://192.168.0.5/channels/getcurrent
with User=root and Password=dreambox
Commands:
case sensitive!
/addTimerEvent
/audio.pls
PLS file containing audio stram URL for direct access
/body?mode=controlFBShot
JPG 720 x 405 px with the TV screen message
/body?mode=controlLCDShot
PNG graphic 128 x 64 px of the Dreambox hardware display
/body?mode=controlSatFinder
select satellite and transponder in the browser and the satFinder in a second window
/body?mode=controlScreenShot
JPG 720 x 405 px with TV screen shot including Dreambox messages
/body?mode=help
a nice picture and information like this:
Model: DM7000, Manufacturer: Dream-Multimedia-TV, Processor STB04500, 252MHz, Harddisk SAMSUNG SP0802N (master, 76351 MB), USB Stick none,
Linux Kernel: Linux version 2.6.9 (tux@tux) (gcc version 3.4.4) #1 Sat Dec 20 00:35:58 CET 2008, Firmware release 4.6.0, 20.12.2008
FP Firmware 1.06, Web Interface: 6.0.4-Expert
/body?mode=helpDMMSites
two links to Dream Multimedia and the Download Center
/body?mode=helpOtherSites
links to
/body?mode=helpForums
links to
other mode parameters:
* zap&zapmode=<0..4>&zapsubmode=<0..4>&curChannel=<-1..nn>
* config, configFlashMgr, configMountMgr, configSwapFile, configSettings
/cgi-bin/admin?command=shutdown
/cgi-bin/admin?command=reboot
/cgi-bin/admin?command=restart
/cgi-bin/admin?command=standby
/cgi-bin/admin?command=wakeup
/cgi-bin/audio
displays volume and mute-flag
/cgi-bin/channelinfo
Station name and 2-line EPG info, all in formatted HTML
/cgi-bin/currentService?...
/cgi-bin/currentTransponderServices
list in TXT-format, representing paths (as above in ZAPTO syntax)
/cgi-bin/deleteMovie
/cgi-bin/getcurrentepg
/cgi-bin/getEIT
/cgi-bin/getPMT
result=+okPMT(0030) program_number=2f3a PCR_PID=00a9 program_info PMTEntry stream_type=02 elementary_PID=00a9 ES_info PMTEntry stream_type=03 elementary_PID=0049 ES_info ger 1 PMTEntry stream_type=06 elementary_PID=0050 ES_info 0003
/cgi-bin/getServices?ref=..
ref=0 shows program list structure, from there you can derive codes for other queries like:
ref=2:47:0:0:0:0:0:0:0:0:/hdd/ lists contents of the HDD root directory
ref=1:15:fffffffe:12:ffffffff:0:0:0:0:0: lists all TV services
With this command in combination with "zapto" and "getMultiEPG" you could read out much of the information you need to write your own WebIF commander
/cgi-bin/ln
createSymlink
/cgi-bin/ls?hdd
list Directory in XML format with query codes for other directories (I only got 'couldn't read...' messages back)
/cgi-bin/message
remove message
/cgi-bin/mkdir
makeDirectory
/cgi-bin/mv
moveFile
/cgi-bin/osdshot
PNG-graphic with On Screen Display (not the TV picture)
/cgi-bin/pause
for video playback
/cgi-bin/play
for video playback
/cgi-bin/rc?key:duration(optional):reptime(optional),nextkey,...
react as if these keys were pressed on the remote control
codes (translated from Dreambox Wiki, see link below):
(1): 2 (2): 3 (3): 4
(4): 5 (5): 6 (6): 7
(7): 8 (8): 9 (9): 10
(<):412 (0):11 (>):407
up:115 mute:113 up:402
volume EXIT:1 bouquet
down:114 down:403
INFO :358 up :103 MENU :141
left :105 OK :352 right:106
AUDIO:392 down:108 VIDEO:393
red:398 green:399 yellow:400 blue:401 (tv mode)
TV :385 RADIO:377 TEXT: 66 HELP:138
<< :168 > :207 || :119 >> :208 (video mode)
# :128 O :167
/cgi-bin/record
/cgi-bin/recoverRecordings
/cgi-bin/reloadNetworks
reload satellites.xml transponder list from var/etc into enigma (dir depending on Dreambox model). It is similar with the other reload commands. Before the Dreambox will use them (after FTP upload), they must be reloaded.
/cgi-bin/reloadPlaylist
/cgi-bin/reloadRecordings
/cgi-bin/reloadSettings
/cgi-bin/reloadTimerList
/cgi-bin/reloadUserBouquets
/cgi-bin/rm
removeFile
/cgi-bin/rmdir
removeDirectory
/cgi-bin/savePlaylist
/cgi-bin/saveRecordings
/cgi-bin/saveTimerList
/cgi-bin/saveUserBouquets
/cgi-bin/selectAudio
/cgi-bin/selectSubChannel
/cgi-bin/setAudio
/cgi-bin/setStreamingServiceRef?sref=
/cgi-bin/setVideo?position=1..20
defines first video line
/cgi-bin/startPlugin
/cgi-bin/status
Streaminfo-Screen in HTML
/cgi-bin/stop
for video playback
/cgi-bin/stopPlugin
/cgi-bin/streaminfo
/cgi-bin/switchService?anykey=sid:namespace:tsid:onid:type
/cgi-bin/videocontrol?command=stop
only for recording, other command: pause
/cgi-bin/xmessage?caption=...&body=...&timeout=10
send message, timeout in seconds, 0=no timeout
/cgi-bin/zapTo
look here
/changeTimerEvent
/channavi
/channels/getcurrent
/cleanupTimerList
/clearTimerList
/control/channellist
/control/getonidsid
funny blend of SID (service ID) and ONID (Original Network ID). Example: returned value is decimal 81424 (in Hex 13E10h) when SID=10h and ONID=13Eh
/control/message?msg=hallo
send or remove message
/control/zapto?getpids
returns video and audio PID
/data
/deleteTimerEvent
/editTimerEvent
/EPGDetails
/getcurrentepg?type=extended
/getcurrentepg2
/getMultiEPG?ref=4097:7:0:dbe00:0:0:0:0:0:0:%2fvar%2ftuxbox%2fconfig%2fenigma%2fuserbouquet%2edbe00%2etv
see cgi-bin/getServices for the ref codes
/leftnavi?mode=control, shows various web-screens
/leftnavi?mode=zap
/leftnavi?mode=help
/leftnavi?mode=updates
/msgWindow
/pda
loads WebIF for small resolution
/satFinder?frequency(KHz):symbolrate(S/s):pol:FEC:position(deg*10):2:
- displays SNR/AGC/BER values in a browser table together with green LED bars and checkboxes for LOCK and SYNC
- if no parameters are given, the table appears but the transponder won't change
- it would be logical if the tuner could be set to any transponder frequency and symbol rate like:
- /satFinder?11097000:22000000:1:4:192:2:
- for pol and FEC see Satellites XML structure, last value could be "use BAT", always 2
- when you look at /body?mode=controlSatFinder you find the parameters (in the source and in the Satfinder Window URL), but if you enter the URL directly, transponder will not change. Any clues?
/selectAudio
/selectSubChannel
/setAudio
/setVideo
/setVolume?
/showAddTimerEventWindow
/showEditTimerEventWindow
/showRemoteControl
displays a virtual remote control in the web browser with all buttons clickable.
/TVBrowserTimerEvent
/tvMessageWindow
returns current OSD message
/version
the answer is: enigma. /body?mode=help is more informative
/video.m3u
M3U file containing video and audio stram URL for direct access. The result is like:
http://192.168.3.99:31339/0,PMT,VideoPID,AudioPID,alternative Audio PIDs
example: http://DreamboxIP:port/0,0a8c,0a29,0a2a,0a2b
You can open such a stream with any media player which has its codecs configured correctly. VLC player is recommended. While streaming, the Dreambox won't be able to change the transponder.
/videodata
found in other documentattion but didn't work in my WebIF:
/blank
/body?mode=configRotor
/body?mode=controlTimerList
/body?mode=updates
/body?mode=updatesInternet
/header
You can find more info about the Dreambox WebIF in the excellent Dreambox Wiki:
WebIF documentation (in German, very comprehensive)
Enigma2 WebInterface (in English, other content, only Enigma2 for newer models)
Radiovibrations.com ->
Dreambox Notes