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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760)



- nad - 2007-07-30 16:19

Pulp: Has this just started? Would you email be xbmc.log. Thanks.


- TREX6662k5 - 2007-08-27 19:16

Would XBMC and programs that use the HTTPAPI benefit from using persistent connections?


- CrazyIvan - 2007-08-27 21:45

Has anyone use this to control an Xbox from another Xbox?

I have speakers throughout my house wired up to a central receiver in the basement home theatre. I just put our xbmc xbox in the bedroom to watch movies etc. on our little LCD. It'd be awesome if I could use the bedroom xbox and TV to control another xbox in the basement that is feeding its audio into the whole house receiver. Then we could listen to mp3's on the nice bedroom inwall speakers rather than through the tinny TV speakers. I'd pick up 2 more xboxes for the kitchen and basement if I could do this.

Thoughts?


- TREX6662k5 - 2007-09-01 18:06

You could use a program on the computer, pocket pc or PSP to remote control the xboxes
or
Compile yourself xbmc with linksbox
or
Create a little script to remote control the xboxes in python for the xbox (quite easy)


- pulp_136 - 2007-09-25 22:50

It crashed again with the same message (as mentioned in my last post)

Here is my xbmc.log right after the crash:

03:42:37 M: 53305344 NOTICE: -----------------------------------------------------------------------
03:42:37 M: 53284864 NOTICE: Starting XBoxMediaCenter. Built on Jun 17 2007
03:42:37 M: 53284864 NOTICE: Q is mapped to: F:\Apps\XBMC
03:42:37 M: 53284864 NOTICE: The executeable running is: F:\Apps\XBMC\default.xbe
03:42:37 M: 53284864 NOTICE: Log File is located: Q:\xbmc.log
03:42:37 M: 53284864 NOTICE: -----------------------------------------------------------------------
03:42:37 M: 53284864 NOTICE: Unmapped drive T
03:42:37 M: 53284864 NOTICE: Mapping drive T to Harddisk0\Partition6\Apps\XBMC\userdata
03:42:37 M: 53284864 NOTICE: Setup DirectX
03:42:37 M: 53260288 NOTICE: Mapping drive C to Harddisk0\Partition2
03:42:37 M: 53260288 NOTICE: Mapping drive E to Harddisk0\Partition1
03:42:37 M: 53260288 NOTICE: Unmapped drive D
03:42:37 M: 53260288 NOTICE: Mapping drive D to Cdrom0
03:42:37 M: 53260288 NOTICE: Mapping drive F to Harddisk0\Partition6
03:42:37 M: 53260288 NOTICE: Mapping drive X to Harddisk0\Partition3
03:42:37 M: 53260288 NOTICE: Mapping drive Y to Harddisk0\Partition4
03:42:37 M: 53260288 NOTICE: Unmapped drive Z
03:42:37 M: 53260288 NOTICE: Mapping drive Z to Harddisk0\Partition5
03:42:37 M: 53260288 NOTICE: load settings...
03:42:37 M: 53260288 NOTICE: Mapping drive P to Harddisk0\Partition6\Apps\XBMC\userdata
03:42:37 M: 53260288 NOTICE: loading T:\guisettings.xml
03:42:37 M: 53092352 NOTICE: Getting hardware information now...
03:42:37 M: 53092352 NOTICE: Checking resolution 10
03:42:37 M: 53092352 NOTICE: Setting autoresolution mode 7
03:42:37 M: 53092352 ERROR: Error loading P:\advancedsettings.xml, no <advancedsettings> node
03:42:37 M: 53071872 NOTICE: Per AV pack settings are off
03:42:37 M: 53211136 NOTICE: q:\userdata\sources.xml
03:42:37 M: 53211136 ERROR: <files> tag is missing or sources.xml is malformed
03:42:37 M: 53211136 ERROR: <music> tag is missing or sources.xml is malformed
03:42:38 M: 46915584 ERROR: Window Translator: Can't find window myvideotitles
03:42:38 M: 47001600 NOTICE: Checking the Date!
03:42:38 M: 47001600 NOTICE: start dvd mediatype detection
03:42:38 M: 46936064 NOTICE: initializing playlistplayer
03:42:38 M: 46936064 NOTICE: DONE initializing playlistplayer
03:42:38 M: 46927872 NOTICE: load default skin:[Project Mayhem III]
03:42:39 M: 43855872 WARNING: use dashboard
03:42:39 M: 43012096 NOTICE: initialize done
03:42:39 M: 41955328 NOTICE: Running the application...
03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\home-myprograms\home-myprograms.png
03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Middle.png
03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Bottom.png
03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Top_16x9.png
03:42:40 M: 41848832 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\home-dvd.gif
03:42:40 M: 41848832 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\home-dvd.gif
03:42:40 M: 41652224 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Middle.png
03:42:40 M: 41652224 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Bottom.png
03:42:40 M: 41652224 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Top_16x9.png
03:42:46 M: 43556864 ERROR: Unable to connect to http://www.google.com: 0
03:42:49 M: 43556864 NOTICE: Webserver: Starting...
03:42:49 M: 43413504 NOTICE: XBFileZilla: Starting...
03:42:49 M: 42758144 NOTICE: Webserver: Started
03:42:49 M: 42098688 NOTICE: XBFileZilla: Started
03:44:09 M: 41881600 ERROR: Unable to connect to 66.102.7.99: 10060
03:44:09 M: 41877504 NOTICE: HDD: SMART is supported.
03:44:09 M: 41877504 NOTICE: HDD: SMART is enabled.
03:45:05 M: 42115072 NOTICE: 200 FTP SITE command called [command=HELP, args=]


The App actions before the crash were the following: Right after turning on xbox (before network init) it sent the command sendRawCommand("getcurrentlyplaying()") every second. It timed out every time (I have reduced timeout to 1000ms).

It seems to have crashed at the time the network was initialised.

p.s. I'm fully aware of my probs with the skin.
p.s.2 It tries to connect to google and some other address? Why?


- pulp_136 - 2007-09-26 16:41

Nad, a correction: The App didn't send the getcurrentlyplaying command every second, but only once when XBMC API was still not loaded (it timed out). The error came without request, it seems to be reading events. I can reproduce this every time. I switch the xbox on, send a getcurrentlyplaying command through the api (it times out) and wait till the api crashes.

pulp


Cover Art over HTTPAPI? - NeoMorph - 2007-10-01 23:11

Is is possible to have the cover art show over the HTTPAPI interface? It's the only thing missing as far as I can see...


- nad - 2007-10-05 19:07

NeoMorph: it depends on what you are trying to do. Look at the FileDownload and the FileDownloadFromInternet httpapi commands.

http://www.xboxmediacenter.com/wiki/index.php?title=WebServerHTTP-API

You can also have a look at the code for XBMCControl which is hosted on SourceForge's XBMC files page.

If you are trying to do this embedded within HTML then there is a detailed discussion of this in the thread you are currently reading.

Pulp: I sent you a PM

Nad


Can You Start Recording Via HTTPAPI? - NeoMorph - 2007-10-07 12:15

I'm getting on well with my interface to HTTPAPI and everything is starting to work how I want.

Now what I was looking for was a way to start recording when a radio source is active (and stop the recording of course). I know you can do it from the xbmc gui but can't find a way to do it over httpapi. Sad


- spiff - 2007-10-07 12:53

use the builtin command playercontrol