Kodi Community Forum
WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


- taily - 2005-04-08

hey nad!
i think your doing some great work, both on the gui and the xbmc extension, which in their turn have inspired me to create one for linux.

currently i only have a command line application to feed those commands to the xbox, but i would greatly appriciate if you could go through some parameters and functions for some commands with me!
once i got those under controll i could start working on a gui =), most likely in gtk..

and to the rest of you, are there people out there who would like this kind of program? i mean surely there has to be some linux users here :p


- nad - 2005-04-09

salle: i'm having a look at the asp commands and will hopefully have anupdate soon.

opearmain: as you have gathered the client doesn't work on the palm. however, i wrote the interface to be as simple as possible so that if you are able to do a bit of string processing and are able to get a network connection to xbmc from your palm it shouldn't be that difficult. i believe there are some basic like development environments for the palm which may make things more straightforward.

taily: great news to hear we are branching out to linux. are you just asking for information on what the parameters to the commands are? my lazy response would be just to point you in the direction of my client code. however, i am meaning to write some more detailed documentation. any of the commands in particular?

nad


- taily - 2005-04-09

(nad @ april 09 2005,11:24 Wrote:taily: great news to hear we are branching out to linux. are you just asking for information on what the parameters to the commands are? my lazy response would be just to point you in the direction of my client code. however, i am meaning to write some more detailed documentation. any of the commands in particular?

nad
hmm.. not really, seems i got most of them under controll now after a little bit of experimenting Smile..

some things i still wonder about though is:
# getcurrentplaylist
# setcurrentplaylist
and
# getplaylistsong (returns the number playing and an error)

now to get working on a gui :p..

thanks,
taily


- nad - 2005-04-09

taily: the playlist values are as follows

-1 = playlist_none no playlist active
0 = playlist_music playlist from music playlist window
1 = playlist_music_temp playlist started in a normal music window
2 = playlist_video playlist from music playlist window
3 = playlist_video_temp playlist started in a normal video window

the error being returned on getplaylistsong is a bug. you can safely ignore it for now, but i'll fix it in the next update.

nad


- nad - 2005-04-10

just updated the cvs with the new httpapi command: config. this exposes the following configuration commands which correspond to the existing asp commands and take the same parameters:

bookmarksize
getbookmark
addbookmark
savebookmark
removebookmark
saveconfiguration
getoption
setoption

examples of their use:

xbmccmds/xbmchttp?command=config&parameter=getbookmark;music;name;1

xbmccmds/xbmchttp?command=config&parameter=getoption;dashboard

nad






- salle78 - 2005-04-11

that's great nad, thank's.

now i'm excited to continue to work on my application  Smile


- salle78 - 2005-04-11

(opearmain @ april 05 2005,12:25 Wrote:re: xbox media remote
i just downloaded v0.1a and it didn't work, dunno why, (i can post error messages if you'd like)
did you copy the file "list_files.asp" to the web-catalog on your xbox? maybe it doesn't work anymore, i haven't tried it with a new version of xbmc.

but my new version (which is better) will be finished quite soon.


- HaggleLad - 2005-04-11

Quote:did you copy the file "list_files.asp" to the web-catalog on your xbox?

yeah, i followed the instructions in the readme exactly.

the app just locks up once i check "music" (for example) and then about a minute later i get the following error popup:

---------------------------

---------------------------
error when trying to connect to: 'http://162.168.62.52/xbmccmds/xbmcform?command=navigate&parameter=music&redirect=xbmc-blank.htm'
the operation has timed-out.
---------------------------
ok  
---------------------------


- salle78 - 2005-04-11

(opearmain @ april 11 2005,17:55 Wrote:the app just locks up once i check "music" (for example) and then about a minute later i get the following error popup:
---------------------------
error when trying to connect to: 'http://162.168.62.52/xbmccmds/xbmcform?command=navigate&parameter=music&redirect=xbmc-blank.htm'
the operation has timed-out.
---------------------------
ah, now i have tried it for myself, and it works if you make an empty text-file in the web-directory on the xbox named "xbmc-blank.htm".


- HaggleLad - 2005-04-11

thanks salle, i've got it working now.
looks good, look forward to the new version!!!

thanks.


- thor918 - 2005-04-27

suggestion:
"gettagfromfilename"  command.
should be able to get tag from the current playing file witout passing in a file as parameter.

gettagfromfilename&parameter=
if no parameter is given it will take it as if we are getting info from a current playing file.

and another thing.thing would go faster if the next and prevois command would return the filename it will play in the same http session.

offcource this is only usefull if we have a app that don't download the playlist first.


- zordon - 2005-04-30

i have tried to download the xbmccontrol.zip file as i want the pocket pc app, but this is corrupt, and i have now tried this on two computers, if anyone has got this can they please send it via email to [email="[email protected]"][email protected][/email]

thanks


- Hullebulle - 2005-05-01

(zordon @ april 30 2005,22:37 Wrote:i have tried to download the xbmccontrol.zip file as i want the pocket pc app, but this is corrupt, and i have now tried this on two computers, if anyone has got this can they please send it via email to [email="[email protected]"][email protected][/email]

thanks
tried it too and the zip worked (using winrar 3.42).


- zordon - 2005-05-01

i have tried with winzip and winrar, winrar gives the folling error:

! c:\documents and settings\zordon\desktop\xbmccontrol.zip: either multipart or corrupt zip archive


Image


- thor918 - 2005-05-01

use getright or something similar to ensure download