What remote control API is in place on Linux XBMC
#1
I have just built a HTPC which will be using XBMC and probably mythtv when I get round to it.

I will want to remote control xbmc sometimes. With my xbox setup I just used the web interface. I know this is not yet implemented on Linux and presume the HTTP API therefore is not available.

I believe the python support is a bit flaky at the moment. Could it be used in conjunction with apache to allow some remote control?

Is any other mechanism in place to control XBMC (command line, dbus, etc)?

Great work devs and if I can contribute to the remote control bit I will.
Reply
#2
there's the event clients in tools/eventclients
the http api works fine in linux afaik. yes, python is a bit flaky.
Reply
#3
Thanks for the tips. I am poking around eventclient in the source and can probably work it out from the code. Is there any documentation for the eventclient? Can it just be used to send key presses or is it more general?

Will have to check the http api (I assumed it was not working as the web interface was not). It obviously cannot be on port 80 as XBMC is run as a user and I already have apache on that port. Do you know what the default port is?
Reply
#4
stuartmarsden Wrote:Thanks for the tips. I am poking around eventclient in the source and can probably work it out from the code. Is there any documentation for the eventclient? Can it just be used to send key presses or is it more general?

Will have to check the http api (I assumed it was not working as the web interface was not). It obviously cannot be on port 80 as XBMC is run as a user and I already have apache on that port. Do you know what the default port is?

Webinterface works for me but you cannot have it at port 80 as it is priveledged port (only admins may use it). Try changing it to 8080 instead.

The EventClient is more or less "fire and forget" packages which tells XBMC that "press keyboardbutton a" for example. or "move mouse too x, y".
This is quite new but it's kindof documented in tools/EventClients/Readme.txt. Also you can checkout /tools/EventClients/Examples for usage in C++ and python.
And you can checkout the ready made clients which are PS3 sixaxis, PS3 blue ray remote, WiiRemote and a Java Phone Application
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#5
Thanks. I had just tried changing the port to 8001. And had discovered that the http api was working (at least the few things I had tried). This is exactly what I need. It should be quite straight forward to implement the web interface in apache and change all http api calls to point to the right port.

The xbox web interface was asp which I do not think is well supported in apache but should be easy to create with php or python.

If I make any progress I will report back.
Reply

Logout Mark Read Team Forum Stats Members Help
What remote control API is in place on Linux XBMC0