PLEASE READ BEFORE POSTING:

If you are willing to offer some compensation for a new feature or bug fix, you can use the Help Wanted forum. Start a new topic for each new feature idea, and when someone someone decides to do it, please edit the Roadmap Wiki which lists active work.
LinuxMCE Forums
July 30, 2010, 10:19:49 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New Forum Administrators!
 bulek, colinjones, dlewis and Zaerc are now administrators.
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Control XBMC via HTTPAPI ?  (Read 1235 times)
stormshaker
Newbie
*
Posts: 1


View Profile
« on: September 11, 2007, 06: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
Logged
darrenmason
Guru
****
Posts: 443


View Profile
« Reply #1 on: September 11, 2007, 12: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
Logged
nite_man
wants to work for LinuxMCE
**
Posts: 976


Want to work with LinuxMCE


View Profile WWW
« Reply #2 on: September 12, 2007, 01: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.
Logged

Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru
Zaerc
Administrator
LinuxMCE God
*****
Posts: 2216


Department of Redundancy Department.


View Profile
« 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:
# 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. Wink  I think this would make a very nice orbiter-less media director.
Logged

"Change is inevitable. Progress is optional."
-- Anonymous

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!