[15335] | 1 | /*****************************************************/
|
---|
| 2 | /* this file is part of the tiTan / tiTanNIT Project */
|
---|
| 3 | /* and allowed only for use with this. */
|
---|
| 4 | /* */
|
---|
| 5 | /* copyright by NIT */
|
---|
| 6 | /*****************************************************/
|
---|
| 7 |
|
---|
[15340] | 8 | use query?param¶m&... for html output
|
---|
| 9 | use queryraw?param¶m&... for raw-struct output
|
---|
| 10 |
|
---|
[24291] | 11 | query: sendrc
|
---|
| 12 | raw: nothing
|
---|
| 13 | desc: send rc code
|
---|
| 14 | param: rc code
|
---|
| 15 | example: query?sendrc&rcmute
|
---|
[15335] | 16 |
|
---|
[24291] | 17 | query: getrectimer
|
---|
| 18 | raw: begin#end#justplay#repeate#name#serviceid#transpoderid#status#errstr#timestamp#channelname#afterevent (or "no data", if no timer in list)
|
---|
| 19 | desc: get active record timer list
|
---|
| 20 | param: no
|
---|
| 21 | example: queryraw?getrectimer
|
---|
[15335] | 22 |
|
---|
[24291] | 23 | query: getrectimerarchive
|
---|
| 24 | raw: begin#end#justplay#repeate#name#serviceid#transpoderid#status#errstr#timestamp#channelname#afterevent (or "no data", if no timer in list)
|
---|
| 25 | desc: get old record timer list
|
---|
| 26 | param: no
|
---|
| 27 | example: queryraw?getrectimer
|
---|
[15335] | 28 |
|
---|
[24291] | 29 | query: addrectimer (not used for queryraw)
|
---|
| 30 | raw: ???
|
---|
| 31 | desc: add a record timer
|
---|
| 32 | param: ???
|
---|
[15335] | 33 |
|
---|
[24291] | 34 | query: editrectimer (not used for queryraw)
|
---|
| 35 | raw: ???
|
---|
| 36 | desc: edit a record timer
|
---|
| 37 | param: ???
|
---|
[15335] | 38 |
|
---|
[24291] | 39 | query: delrectimer
|
---|
| 40 | raw: begin#end#justplay#repeate#name#serviceid#transpoderid#status#errstr#timestamp#channelname#afterevent
|
---|
| 41 | desc: delete a record timer and give active record timer list back
|
---|
| 42 | param: timestamp (from getrectimer/getrectimerarchive entry)
|
---|
| 43 | example: queryraw?delrectimer&1362672485239282
|
---|
[15335] | 44 |
|
---|
[24291] | 45 | query: rectimersend
|
---|
| 46 | raw: ok -> TimerID
|
---|
| 47 | desc: set a record timer
|
---|
| 48 | param: node= (0 for new timer, else timestamp from getrectimer/getrectimerarchive entry)
|
---|
| 49 | param: name= (timer name)
|
---|
| 50 | param: type= ("record" for record, else switch timer)
|
---|
| 51 | param: begin= (start time, format "HH:MM dd-mm-YYYY" example "10:26 11-03-2013")
|
---|
| 52 | param: end= (end time, format "HH:MM dd-mm-YYYY" example "11:26 11-03-2013")
|
---|
| 53 | param: sid= (ServiceID from channel)
|
---|
| 54 | param: tid= (TransponderID from channel)
|
---|
| 55 | param: repeat= (0 no repeate, else Bitmuster, 1 Mo, 2 Di, 4 Mi, 8 Do, 16 Fr, 32 Sa, 64 So)
|
---|
| 56 | param: afterevent= (0 auto,1 nothing, 2 standby, 3 shutdown)
|
---|
| 57 | param: ext=1 (if ext=x exist, then we give the current created timer entry back, else the active record timer list)
|
---|
| 58 | param: send=Send (must exist)
|
---|
| 59 | param: channel= (channel name --> use it only, if you don't use sid+tid. Channelname must be unique in your channellist)
|
---|
| 60 | example: queryraw?rectimersend&node=%s&name=%s&type=%s&begin=%s&end=%s&sid=%s&tid=%s&repeat=%s&afterevent=%s&ext=1&send=Send';
|
---|
| 61 | example: queryraw?rectimersend&node=%s&name=%s&type=%s&begin=%s&end=%s&channel=%s&repeat=%s&afterevent=%s&send=Send
|
---|
[15335] | 62 |
|
---|
[24291] | 63 | query: getbouquet
|
---|
| 64 | raw: bouquetname#type
|
---|
| 65 | desc: get a list of all bouquets
|
---|
| 66 | param: no
|
---|
| 67 | example: queryraw?getbouquet
|
---|
[15335] | 68 |
|
---|
[24291] | 69 | query: getsat
|
---|
| 70 | raw: satname#orbitalpos
|
---|
| 71 | desc: get a list of all sat
|
---|
| 72 | param: no
|
---|
| 73 | example: queryraw?getsat
|
---|
[15335] | 74 |
|
---|
[24291] | 75 | query: getprovider
|
---|
| 76 | raw: providername#number
|
---|
| 77 | desc: get a list of all provoder
|
---|
| 78 | param: no
|
---|
| 79 | example: queryraw?getprovider
|
---|
[15335] | 80 |
|
---|
[24291] | 81 | query: getaz
|
---|
| 82 | raw: returns A-Z
|
---|
| 83 | desc: get chars A-Z
|
---|
| 84 | param: no
|
---|
| 85 | example: queryraw?getaz
|
---|
[15335] | 86 |
|
---|
[24291] | 87 | query: getchannelpage
|
---|
| 88 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 89 | desc: get a channel page
|
---|
| 90 | param: at type 0 = 0, 1 = orbitalpos, 2 = providername, 3 = A-Z
|
---|
| 91 | param: type (0 = all, 1 = sat, 2 = provider, 3 = A-Z)
|
---|
| 92 | param: page nr
|
---|
| 93 | example: queryraw?getchannelpage&0&0&1
|
---|
[15335] | 94 |
|
---|
[24291] | 95 | query: getallchannel
|
---|
| 96 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 97 | desc: get channel page 1 from "getchannelpage" with type 0(all)
|
---|
| 98 | param: no
|
---|
| 99 | example: queryraw?getallchannel
|
---|
[15335] | 100 |
|
---|
[24291] | 101 | query: getbouquetchannel
|
---|
| 102 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 103 | desc: get all channel from a bouquet
|
---|
| 104 | param: bouquetname
|
---|
| 105 | example: queryraw?getbouquetchannel&Musik
|
---|
[15335] | 106 |
|
---|
[24291] | 107 | query: getsatchannel
|
---|
| 108 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 109 | desc: get channel page 1 from "getchannelpage" with type 1(Sat)
|
---|
| 110 | param: orbitalposition
|
---|
| 111 | example: queryraw?getsatchannel&192
|
---|
[15335] | 112 |
|
---|
[24291] | 113 | query: getproviderchannel
|
---|
| 114 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 115 | desc: get all channel from a provider
|
---|
| 116 | param: providerID (List number in "getprovider")
|
---|
| 117 | example: queryraw?getproviderchannel&31
|
---|
[15335] | 118 |
|
---|
[24291] | 119 | query: getazchannel
|
---|
| 120 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 121 | desc: get all channel from first char
|
---|
| 122 | param: char (A-Z in ASCII Dec)
|
---|
| 123 | example: queryraw?getazchannel&81
|
---|
[15335] | 124 |
|
---|
[24291] | 125 | query: switch
|
---|
| 126 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 127 | desc: change channel
|
---|
| 128 | param: channelid
|
---|
| 129 | param: transponderid
|
---|
| 130 | param: bouquetName (BOUQUET)-xxx / is an optional param, it set the right bouquet in channellist.
|
---|
| 131 | example: queryraw?switch&66553&20625&(BOUQUET)-Musik
|
---|
[15335] | 132 |
|
---|
[24291] | 133 | query: getaktservice
|
---|
| 134 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 135 | desc: get akt service data from TV channel
|
---|
| 136 | param: no
|
---|
| 137 | example: queryraw?getaktservice
|
---|
[15335] | 138 |
|
---|
[24291] | 139 | query: getservice
|
---|
| 140 | raw: channelname#proz#serviceid#transponderid#channellist#servicetype#eventid#actstarttime#actepgshort#nextstartime#nextstoptime#nextepgshort#nexteventid#lockstatus
|
---|
| 141 | desc: get service data
|
---|
| 142 | param: channelid
|
---|
| 143 | param: transponderid
|
---|
| 144 | example: queryraw?getservice&66553&20625
|
---|
[15335] | 145 |
|
---|
[24291] | 146 | query: getsysteminfo
|
---|
| 147 | raw: titan#NIT#ReleaseRev#ImageName#BoxType#BoxTime
|
---|
| 148 | desc: get system data
|
---|
| 149 | param: no
|
---|
| 150 | example: queryraw?getsysteminfo
|
---|
[15335] | 151 |
|
---|
[24291] | 152 | query: getconfig
|
---|
| 153 | raw: ParamName#ParamValue
|
---|
| 154 | desc: get titan config data
|
---|
| 155 | param: no
|
---|
| 156 | example: queryraw?getconfig
|
---|
[15335] | 157 |
|
---|
[24291] | 158 | query: getchannellock
|
---|
| 159 | raw: channelname#serviceid#transponderid#channellock
|
---|
| 160 | param: channelid
|
---|
| 161 | param: transponderid
|
---|
| 162 | example: queryraw?getchannellock&66553&20625
|
---|
[15335] | 163 |
|
---|
[24291] | 164 | query: getbouquetepg
|
---|
| 165 | raw: BeginNewChannel(fixtext)#channelname#serviceid#transponderid#servicetype
|
---|
| 166 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 167 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 168 | BeginNewChannel(fixtext)#channelname#serviceid#transponderid#servicetype
|
---|
| 169 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 170 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 171 | ....
|
---|
| 172 | desc: get EPG data from all channel from a bouquet
|
---|
| 173 | param: bouquetname
|
---|
| 174 | param: longepgtext 0/1
|
---|
| 175 | param: startzeit (unix time format)
|
---|
| 176 | param: endzeit (unix time format)
|
---|
| 177 | example: queryraw?getbouquetepg&Musik&0&1381707900&1381729500
|
---|
[15335] | 178 |
|
---|
[24291] | 179 | query: getepg
|
---|
| 180 | raw: epgshort#begin#end#subtitle#epglong
|
---|
| 181 | desc: get epg data from epg event id
|
---|
| 182 | param: channelid
|
---|
| 183 | param: transponderid
|
---|
| 184 | param: epg event id
|
---|
| 185 | example: queryraw?getepg&61302&66553&20625
|
---|
[15335] | 186 |
|
---|
[24291] | 187 | query: getmovieepg
|
---|
| 188 | raw: returns text from movie .epg file
|
---|
| 189 | desc: get the epg to a recorded movie
|
---|
| 190 | param: movie name (full path)
|
---|
| 191 | example: queryraw?getmovieepg&/media/hdd/movie/movie.ts
|
---|
[15335] | 192 |
|
---|
[24291] | 193 | query: getsingleepg
|
---|
| 194 | raw: epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 195 | desc: get all epg data from a channel
|
---|
| 196 | param: channelid
|
---|
| 197 | param: transponderid
|
---|
| 198 | example: queryraw?getsingleepg&61301&66553&0
|
---|
[15335] | 199 |
|
---|
[24291] | 200 | query: getgmultiepg (for queryraw use "getbouquetepg")
|
---|
| 201 | raw: ???
|
---|
| 202 | desc: get all epg from all channel in a bouquet
|
---|
| 203 | param: bouquetname
|
---|
| 204 | param: page nr
|
---|
[15335] | 205 |
|
---|
[24291] | 206 | query: getepgsearch
|
---|
| 207 | raw: BeginNewChannel(fixtext)#channelname#serviceid#transponderid#servicetype
|
---|
| 208 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 209 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 210 | BeginNewChannel(fixtext)#channelname#serviceid#transponderid#servicetype
|
---|
| 211 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 212 | epgshort#begin#end#subtitle#epglong#eventid
|
---|
| 213 | ....
|
---|
| 214 | desc: search epg entry
|
---|
| 215 | param: Search String
|
---|
| 216 | param: Pagecount (optional) -1=all
|
---|
| 217 | param: withlongepg (optional) 0/1
|
---|
| 218 | example: queryraw?getepgsearch&Tagesschau&-1&0
|
---|
[15335] | 219 |
|
---|
[24291] | 220 | query: getsignal
|
---|
| 221 | raw: ber#unc#signal#snr
|
---|
| 222 | desc: get tuner signal value from active TV tuner
|
---|
| 223 | param: no
|
---|
| 224 | example: queryraw?getsignal
|
---|
[15335] | 225 |
|
---|
[24291] | 226 | query: getmoviefilelist
|
---|
| 227 | raw: filename#type (dir = 0, file = 1)
|
---|
| 228 | desc: get a list of movies
|
---|
| 229 | param: empty or path
|
---|
| 230 | param: page nr (not used for queryraw)
|
---|
| 231 | example: queryraw?getmoviefilelist
|
---|
[15335] | 232 |
|
---|
[24291] | 233 | query: delmoviefile
|
---|
| 234 | raw: give "getmoviefilelist" back
|
---|
| 235 | desc: delete a movie file
|
---|
| 236 | param: path
|
---|
| 237 | param: 1
|
---|
| 238 | param: FileName
|
---|
| 239 | example: queryraw?delmoviefile&/media/hdd/movie&1&Movie.ts)
|
---|
[15335] | 240 |
|
---|
[24291] | 241 | query: getm3u
|
---|
| 242 | raw: m3u format
|
---|
| 243 | desc: get m3u file from a movie
|
---|
| 244 | param: moviename
|
---|
[15335] | 245 |
|
---|
[24291] | 246 | query: getvideo
|
---|
| 247 | raw: http url string for video
|
---|
| 248 | desc: get html inline code for playing movie
|
---|
| 249 | param: moviename
|
---|
[15335] | 250 |
|
---|
[24291] | 251 | query: getshoot
|
---|
| 252 | raw: fixtext "shoot.html"
|
---|
| 253 | desc: get a screenshot
|
---|
| 254 | param: type (1=gui, 2=tv, 3=gui + tv)
|
---|
| 255 | example: queryraw?getshoot&1
|
---|
[15335] | 256 |
|
---|
[24291] | 257 | query: poweroff
|
---|
| 258 | raw: nothing
|
---|
| 259 | desc: poweroff the box
|
---|
| 260 | param: no
|
---|
| 261 | example: queryraw?poweroff
|
---|
[15335] | 262 |
|
---|
[24291] | 263 | query: restart
|
---|
| 264 | raw: nothing
|
---|
| 265 | desc: restart the box
|
---|
| 266 | param: no
|
---|
| 267 | example: queryraw?restart
|
---|
[15335] | 268 |
|
---|
[24291] | 269 | query: guirestart
|
---|
| 270 | raw: nothing
|
---|
| 271 | desc: gui restart the box
|
---|
| 272 | param: no
|
---|
| 273 | example: queryraw?guirestart
|
---|
[15345] | 274 |
|
---|
[24291] | 275 | query: standby
|
---|
| 276 | raw: nothing
|
---|
| 277 | desc: set box in standby
|
---|
| 278 | param: no
|
---|
| 279 | example: queryraw?standby
|
---|
[15345] | 280 |
|
---|
[24291] | 281 | query: boxstatus
|
---|
| 282 | raw: running or standby
|
---|
| 283 | desc: get boxstatus (running or standby)
|
---|
| 284 | param: no
|
---|
| 285 | example: queryraw?boxstatus
|
---|
[15345] | 286 |
|
---|
[24291] | 287 | query: message
|
---|
| 288 | raw: fixtext "Message send"
|
---|
| 289 | desc: shows the message on tv
|
---|
| 290 | param: message=
|
---|
| 291 | example: queryraw?message=Hallo Message
|
---|
[15345] | 292 |
|
---|
[24291] | 293 | query: xmessage
|
---|
| 294 | raw: fixtext "OK"
|
---|
| 295 | desc: shows the Xmessage on tv
|
---|
| 296 | param: caption=
|
---|
| 297 | param: body=
|
---|
| 298 | param: timeout= (in secound, 0 for static message)
|
---|
| 299 | example: cgi-bin/xmessage?caption=Hallo&body=Text&timeout=30
|
---|
[16070] | 300 |
|
---|
[24291] | 301 | query: getvol
|
---|
| 302 | raw: vol (0-100)
|
---|
| 303 | desc: get the current volume value
|
---|
| 304 | param: no
|
---|
| 305 | example: queryraw?getvol
|
---|
[16070] | 306 |
|
---|
[24291] | 307 | query: setvol
|
---|
| 308 | raw: returns the active vol (0-100)
|
---|
| 309 | desc: set the volume
|
---|
| 310 | param: 0-100
|
---|
| 311 | example: queryraw?setvol&50
|
---|
| 312 |
|
---|
| 313 | query: getmute
|
---|
| 314 | raw: mute (0/1)
|
---|
| 315 | descr: get the current mute state
|
---|
| 316 | param: no
|
---|
| 317 | example: queryraw?getmute
|
---|
| 318 |
|
---|
| 319 | query: setmute
|
---|
| 320 | raw: returns the aktive mute (0/1)
|
---|
| 321 | descr: set mute
|
---|
| 322 | param: 0/1
|
---|
| 323 | example: queryraw?setmute&1
|
---|
| 324 |
|
---|
| 325 | query: getrccodes
|
---|
| 326 | raw: rcName#code
|
---|
| 327 | descr: gets all rccodes
|
---|
| 328 | param: no
|
---|
| 329 | example: queryraw?getrccodes
|
---|
| 330 |
|
---|
| 331 | query: videoplay
|
---|
| 332 | raw: play: play (on error "can not start playback")
|
---|
| 333 | raw: stop: stop (on error "not in play mode")
|
---|
| 334 | raw pause: pause (on error "not in play mode")
|
---|
| 335 | raw ff: ff (on error "not in play mode")
|
---|
| 336 | raw fr: fr (on error "not in play mode")
|
---|
| 337 | raw getlen: len in sek (on error "not in play mode")
|
---|
| 338 | raw getpos: pos in sek (on error "not in play mode")
|
---|
| 339 | raw getisplaying: 0/1 (on error "not in play mode")
|
---|
| 340 | raw getplayercan: playercan bits (on error "not in play mode")
|
---|
| 341 | descr: play a stream on TV
|
---|
| 342 | param: play url/local file(full path)
|
---|
| 343 | param: stop url/local file(full path)
|
---|
| 344 | param: pause url/local file(full path)
|
---|
| 345 | param: ff url/local file(full path)
|
---|
| 346 | param: fr url/local file(full path)
|
---|
| 347 | param: getlen url/local file(full path)
|
---|
| 348 | param: getpos url/local file(full path)
|
---|
| 349 | param: getisplaying url/local file(full path)
|
---|
| 350 | param: getplayercan url/local file(full path)
|
---|
| 351 | example: queryraw?videoplay&play&/media/hdd/movie/movie.ts
|
---|
| 352 |
|
---|
[16070] | 353 | ***************************************
|
---|
| 354 |
|
---|
| 355 | playercan bits:
|
---|
| 356 | 0 policy
|
---|
| 357 | 1 auditraklist
|
---|
| 358 | 2 subtitle
|
---|
| 359 | 3 videomode
|
---|
| 360 | 4 powerofftimer
|
---|
| 361 | 5 videosettings
|
---|
| 362 | 6 stop
|
---|
| 363 | 7 ff
|
---|
| 364 | 8 fr
|
---|
| 365 | 9 pause
|
---|
| 366 | 10 play
|
---|
| 367 | 11 jump/seek reverse
|
---|
| 368 | 12 jump/seek forward
|
---|
| 369 | 13 changecodec
|
---|
| 370 | 14 infobar |
---|