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


- nad - 2005-07-23

again well spotted. that was going to be the original format of the command but then i thought it would be more logical without the xbmc prefix. i'll change the docs.

thanks.

nad


- nad - 2005-07-24

just uploaded version 1.2 of my xbmc controller app. this version is required following the changes i made to the xbmc cvs yesterday.

v1.2 also adds a setup wizard which will convert xbmc bookmarks into controller roots.

nad


- nad - 2005-07-30

just uploaded a new version of my vb6 port of the httpapi client. the end user functionality is only a demo but the complete api is now exposed to vb6. you can download it here:vb6 code

nad


- Livin - 2005-07-30

nad,
did you update the control app? sourceforge only shows .98 from a while back?


- nad - 2005-07-31

affini: just checked and downloaded from sourceforge and got v1.2. where did you see 0.98?

nad


- Livin - 2005-07-31

your own link on post 1 of this thread...

http://sourceforge.net/tracker....=581840

you may want to update the link.

i did find the files, thanks.


- nad - 2005-07-31

post 1 updated.

thanks,

nad


- morte0815 - 2005-08-01

hi!

version 1.2 of the pc-application does not work for me. in my webbrowser i can enter the commands and there is no error, but if i try to use the application i get an error. it says that it is not possible to get the directories. in the logfile it says, that there is this error:

getpagegeneralexception: der typeninitialisierer für system.net.httpwebrequest hat eine ausnahme verursacht.

in english it says: typeinitializer caused an exception...

i hope you can fix it.

xbmc is a fresh cvs from yesterday.

cya morte


- Drongo - 2005-08-01

nad, just downloaded your ppc app to control xbmc. the combination of this with xbmc is simply the best. i use the app, both with and without the tv on, so i have a couple of feature requests:-

playlists
would it be possible to display the playlist with only the artist followed by the track name, instead of having the full command structure. this would save having to scroll across the screen.

display
i noticed your app now displays and allows the user to select from the display on the pda. great feature but maybe of limited use because of the size of the fonts, graphics etc. i'm sure that over time you will use your talents to create other mimic screens to get round this problem. however, having used it last night i think it would be more usable if there was a means of selecting 'back' to back out of the various screens.

controller
this screen is potentially a great idea. i was thinking of buying a ms remote kit until i saw this. i looked at your controller map file and note that you have 3 numbers for each button - 1st for the key assignment, 2nd for the x axis pixel position , 3rd for the y axis pixel position. i assume that in the actual app itself you have defined the size of the button area on the pda screen.

but what if you added a few more parameters such that we could design a sort of wifi remote with larger buttons of say rectangular [incl. square] or elliptical[incl. circular] shape. this would then enable people to create a jpg graphic and modify the controller map file to give a very user friendly remote control interface, so we could throw away the gamepad and any ir remotes and use it anywhere around the house.

so i suggest a parameter format as follows:-

260, 111, 77, e, 20,10     where

e is say for an elliptical [or circular] button and 20, 10 is the button width and height. you could use r for rectangular

finally within the controller screen you could select different remote graphics depending on whether you were into music, videos, pictues etc., by loading a different graphic each time.

any thoughts. in effect this might encourage a number of people to produce 'nad skins' for the controller screen. which would put the icing on the xbmc cake.

with these improvements, a new dvd core soon, and hopefully once i find out if the synology nas system works with xbmc, i will then have the best there is.

great work nad.

drongo


- nad - 2005-08-01

morte0815: i can't think of anything obvious that would cause your problem. i am certain that the cause isn't with the xbmc end so don't worry about the csv version.

1. do you have the file xbmccontrol.exe.config in the same directory as xbmccontrol.exe?
2. when does the error occur? after the setup wizard has finished? when you do something such as sync root?
3. looking in debug.txt are earlier getpage commands working?

would you send me (private message) a few lines from debug.txt around the one causing the error (so i can get some context).

it may be down to german characters - i don't have much (any) experience of internationalisation.

nad


- nad - 2005-08-01

drongo,

playlists: on the lists tab which is the current playlist it shows the file name. are you suggesting that instead of the filename the artist + track name is shown? one work around would be for you to rename your files to have a filename of your liking. i'll look into having user defined information shown on this tab.

display: you are right that the small display requires good eye sight and a steady hand - but it does work - just. to make things better you can rotate the display by manually adding to the ini.txt file one of the following depending on whether you are left or right handed:

rotate=90

or

rotate=270

if you run the app on a full windows machine or at least one with a larger screen, you can change the size of xbmc controller by adding the following to the .ini.txt file:

size=x,y

where x and y is the size you want.

i'll look into adding a back button to this tab. of course you can use the one on the controller tab.

controller:

good idea. i'll add it to the next version.

thanks for the complements.

nad


- Drongo - 2005-08-01

nad, thanks for replying. regarding the playlist query i was trying to explain that after you add songs to the playlist and view it on the pda 'lists' screen you get the full api / http command. in effect you cant actually see the name of the song. what i was hoping was that you could display just the song name. hope this explains a little better.

just a clarification on the controller enhancements as you like the idea. if your program say allowed for maybe 10 different screens that we could create a jpg graphic with larger buttons, this would give others flexibility in adding a number of wifi remotes for different aspects of xbmc. if the 10 screen options were configurable via the 'ini' file this would provide the best flexibility in customisation. so if the 'jpg' file is included in the 'ini' file then your app will provide a menu to display it. i will try and create a typical graphic that i had in mind and upload it to you. i think when others see the possibilities that your app could provide they will surely have other ideas as well. sorry to give you extra work, but its a great app with plenty more potential.

as i'm new to this perhaps you could tell me the best way to upload such a file.

i recently bought an hp rx3715 with the embedded nevo program. compared to whats going on with xbmc its utter rubbish.



drongo


- morte0815 - 2005-08-02

(nad @ aug. 01 2005,17:32 Wrote:morte0815: i can't think of anything obvious that would cause your problem. i am certain that the cause isn't with the xbmc end so don't worry about the csv version.

1. do you have the file xbmccontrol.exe.config in the same directory as xbmccontrol.exe?
2. when does the error occur? after the setup wizard has finished? when you do something such as sync root?
3. looking in debug.txt are earlier getpage commands working?

would you send me (private message) a few lines from debug.txt around the one causing the error (so i can get some context).

it may be down to german characters - i don't have much (any) experience of internationalisation.

nad
1: the config is in the same directory
2: the setupwizzard does not work. whatever ip i enter in the dialog window it does not connect to the xbox, if i edit the ini.txt file by hand it seems to work till it gets to getpage
3: there is no getpage working. here is a complete debug.txt::

02.08.2005 10:05:01 -- getpage:http://192.168.2.104/xbmccmds/xbmchttp?command=getcurrentplaylist
-------------
02.08.2005 10:05:01 -- getpagegeneralexception: der typeninitialisierer für system.net.httpwebrequest hat eine ausnahme verursacht.
-------------
02.08.2005 10:05:01 -- getpage:http://192.168.2.104/xbmccmds/xbmchttp?command=getdirectory&parameter=f%3a%5c
-------------
02.08.2005 10:05:01 -- getpagegeneralexception: der typeninitialisierer für system.net.httpwebrequest hat eine ausnahme verursacht.
-------------


- nad - 2005-08-02

morte,

are you trying this on a pda or a windows box?

is the device that you are running the web browser on (which works) the same device as the one you are trying to run my controller on?

if they are different devices, try to connect to the xbmc web server using a differnt app e.g. ie that you are running controller on.

if they are the same device, i'm stumped (for now).

nad


- nad - 2005-08-02

drongo,

i suggest you just email the jpg to me (button below).

also it would help if you send the corresponding parameter file in which ever format you wish (as long as it is obvious).

as far as the list tab, something sounds weird, can you either email me a screen grab or just transcribe a few lines so i can see what the problem is.

thanks,

nad