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 |
|
---|
8 | use query?param¶m&... for html output
|
---|
9 | use queryraw?param¶m&... for raw-struct output
|
---|
10 |
|
---|
11 | query: sendrc
|
---|
12 | raw: nothing
|
---|
13 | desc: send rc code
|
---|
14 | param: rc code
|
---|
15 | example: query?sendrc&rcmute
|
---|
16 |
|
---|
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
|
---|
22 |
|
---|
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
|
---|
28 |
|
---|
29 | query: addrectimer (not used for queryraw)
|
---|
30 | raw: ???
|
---|
31 | desc: add a record timer
|
---|
32 | param: ???
|
---|
33 |
|
---|
34 | query: editrectimer (not used for queryraw)
|
---|
35 | raw: ???
|
---|
36 | desc: edit a record timer
|
---|
37 | param: ???
|
---|
38 |
|
---|
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
|
---|
44 |
|
---|
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
|
---|
62 |
|
---|
63 | query: getbouquet
|
---|
64 | raw: bouquetname#type
|
---|
65 | desc: get a list of all bouquets
|
---|
66 | param: no
|
---|
67 | example: queryraw?getbouquet
|
---|
68 |
|
---|
69 | query: getsat
|
---|
70 | raw: satname#orbitalpos
|
---|
71 | desc: get a list of all sat
|
---|
72 | param: no
|
---|
73 | example: queryraw?getsat
|
---|
74 |
|
---|
75 | query: getprovider
|
---|
76 | raw: providername#number
|
---|
77 | desc: get a list of all provoder
|
---|
78 | param: no
|
---|
79 | example: queryraw?getprovider
|
---|
80 |
|
---|
81 | query: getaz
|
---|
82 | raw: returns A-Z
|
---|
83 | desc: get chars A-Z
|
---|
84 | param: no
|
---|
85 | example: queryraw?getaz
|
---|
86 |
|
---|
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
|
---|
94 |
|
---|
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
|
---|
100 |
|
---|
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
|
---|
106 |
|
---|
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
|
---|
112 |
|
---|
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
|
---|
118 |
|
---|
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
|
---|
124 |
|
---|
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
|
---|
132 |
|
---|
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
|
---|
138 |
|
---|
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
|
---|
145 |
|
---|
146 | query: getsysteminfo
|
---|
147 | raw: titan#NIT#ReleaseRev#ImageName#BoxType#BoxTime
|
---|
148 | desc: get system data
|
---|
149 | param: no
|
---|
150 | example: queryraw?getsysteminfo
|
---|
151 |
|
---|
152 | query: getconfig
|
---|
153 | raw: ParamName#ParamValue
|
---|
154 | desc: get titan config data
|
---|
155 | param: no
|
---|
156 | example: queryraw?getconfig
|
---|
157 |
|
---|
158 | query: getchannellock
|
---|
159 | raw: channelname#serviceid#transponderid#channellock
|
---|
160 | param: channelid
|
---|
161 | param: transponderid
|
---|
162 | example: queryraw?getchannellock&66553&20625
|
---|
163 |
|
---|
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
|
---|
178 |
|
---|
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
|
---|
186 |
|
---|
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
|
---|
192 |
|
---|
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
|
---|
199 |
|
---|
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
|
---|
205 |
|
---|
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
|
---|
219 |
|
---|
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
|
---|
225 |
|
---|
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
|
---|
232 |
|
---|
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)
|
---|
240 |
|
---|
241 | query: getm3u
|
---|
242 | raw: m3u format
|
---|
243 | desc: get m3u file from a movie
|
---|
244 | param: moviename
|
---|
245 |
|
---|
246 | query: getvideo
|
---|
247 | raw: http url string for video
|
---|
248 | desc: get html inline code for playing movie
|
---|
249 | param: moviename
|
---|
250 |
|
---|
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
|
---|
256 |
|
---|
257 | query: poweroff
|
---|
258 | raw: nothing
|
---|
259 | desc: poweroff the box
|
---|
260 | param: no
|
---|
261 | example: queryraw?poweroff
|
---|
262 |
|
---|
263 | query: restart
|
---|
264 | raw: nothing
|
---|
265 | desc: restart the box
|
---|
266 | param: no
|
---|
267 | example: queryraw?restart
|
---|
268 |
|
---|
269 | query: guirestart
|
---|
270 | raw: nothing
|
---|
271 | desc: gui restart the box
|
---|
272 | param: no
|
---|
273 | example: queryraw?guirestart
|
---|
274 |
|
---|
275 | query: standby
|
---|
276 | raw: nothing
|
---|
277 | desc: set box in standby
|
---|
278 | param: no
|
---|
279 | example: queryraw?standby
|
---|
280 |
|
---|
281 | query: boxstatus
|
---|
282 | raw: running or standby
|
---|
283 | desc: get boxstatus (running or standby)
|
---|
284 | param: no
|
---|
285 | example: queryraw?boxstatus
|
---|
286 |
|
---|
287 | query: message
|
---|
288 | raw: fixtext "Message send"
|
---|
289 | desc: shows the message on tv
|
---|
290 | param: message=
|
---|
291 | example: queryraw?message=Hallo Message
|
---|
292 |
|
---|
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
|
---|
300 |
|
---|
301 | query: getvol
|
---|
302 | raw: vol (0-100)
|
---|
303 | desc: get the current volume value
|
---|
304 | param: no
|
---|
305 | example: queryraw?getvol
|
---|
306 |
|
---|
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: getdrawcount
|
---|
332 | raw: count
|
---|
333 | descr: returns the OSD counter value
|
---|
334 | param: no
|
---|
335 | example: queryraw?getdrawcount
|
---|
336 |
|
---|
337 | query: videoplay
|
---|
338 | raw: play: play (on error "can not start playback")
|
---|
339 | raw: stop: stop (on error "not in play mode")
|
---|
340 | raw pause: pause (on error "not in play mode")
|
---|
341 | raw ff: ff (on error "not in play mode")
|
---|
342 | raw fr: fr (on error "not in play mode")
|
---|
343 | raw getlen: len in sek (on error "not in play mode")
|
---|
344 | raw getpos: pos in sek (on error "not in play mode")
|
---|
345 | raw getisplaying: 0/1 (on error "not in play mode")
|
---|
346 | raw getplayercan: playercan bits (on error "not in play mode")
|
---|
347 | descr: play a stream on TV
|
---|
348 | param: play url/local file(full path)
|
---|
349 | param: stop url/local file(full path)
|
---|
350 | param: pause url/local file(full path)
|
---|
351 | param: ff url/local file(full path)
|
---|
352 | param: fr url/local file(full path)
|
---|
353 | param: getlen url/local file(full path)
|
---|
354 | param: getpos url/local file(full path)
|
---|
355 | param: getisplaying url/local file(full path)
|
---|
356 | param: getplayercan url/local file(full path)
|
---|
357 | example: queryraw?videoplay&play&/media/hdd/movie/movie.ts
|
---|
358 |
|
---|
359 | ***************************************
|
---|
360 |
|
---|
361 | playercan bits:
|
---|
362 | 0 policy
|
---|
363 | 1 auditraklist
|
---|
364 | 2 subtitle
|
---|
365 | 3 videomode
|
---|
366 | 4 powerofftimer
|
---|
367 | 5 videosettings
|
---|
368 | 6 stop
|
---|
369 | 7 ff
|
---|
370 | 8 fr
|
---|
371 | 9 pause
|
---|
372 | 10 play
|
---|
373 | 11 jump/seek reverse
|
---|
374 | 12 jump/seek forward
|
---|
375 | 13 changecodec
|
---|
376 | 14 infobar |
---|