Author Topic: Control XBMC via HTTPAPI ?  (Read 6677 times)

stormshaker

  • Guest
Control XBMC via HTTPAPI ?
« on: September 11, 2007, 07:03:05 am »
How about controlling Xbox Media Center (XBMC) via it's HTTPAPI?

It seems fairly simple and should be a pretty robust solution:

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

Cheers,
James

darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: Control XBMC via HTTPAPI ?
« Reply #1 on: September 11, 2007, 01:15:41 pm »
James,

Great idea, didn't realise that it had this API. Should be possible.
Probably could even just be done with a Ruby device rather than a C++ one.
Got a few things at a higher priority at the moment - but someone else(you?) might be willing to give it a try.

Regards
Darren

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Control XBMC via HTTPAPI ?
« Reply #2 on: September 12, 2007, 02:01:32 pm »
It seems it should be done similar way as for Dreambox. It can be controlled via Infrared and via Ethernet as well.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Control XBMC via HTTPAPI ?
« Reply #3 on: November 07, 2007, 01:26:49 am »
I've taken a brief look into this as I have XBMC installed here, seems to me there are 2 (minor) issues. 

1. XBMC mangles filenames with a colon ':' in them, these are by default used in links to NAS storage for example.  No big deal as these can be renamed in the web admin.

2. The only way I could find to set the position of the playing file is in percentages, which I suspect will be way to crude for the "follow me" functionality.

Simple wgets could even be used to control it, for example getting and setting the volume:
Code: [Select]
# wget -q -O - 'http://xbox/xbmcCmds/xbmcHttp?command=GetVolume'
<html>
<li>100</html>
# wget -q -O - 'http://xbox/xbmcCmds/xbmcHttp?command=SetVolume&parameter=50'
<html>
<li>OK</html>

Just in case you're wondering: yes, I have added an entry for "xbox" in my /etc/hosts file. ;)  I think this would make a very nice orbiter-less media director.
"Change is inevitable. Progress is optional."
-- Anonymous