PDA

View Full Version : XBMC Events for RS232 control


UglyBob
2009-08-11, 09:50
Hi!

I'm completely new to XBMC scripting and feel I could use some pointers of where I should start with an idea I have. Basically, I want to capture certain events in XBMC (such as volume up/down, standby/power down, play/stop etc..) and set up my A/V receiver and projector accordingly to the events. For instance, I want the volume events to control the events of the receiver and also I want certain events to power on/off my equipment. As I'm using the iPhone XBMC remote, I was thinking about writing a HTTP proxy that captures this events before they get to XBMC, but if possible, I feel a plugin would be a nicer solution.

First of all, is is possible? Is there events like this that you could listen to? And secondly, where can I find information on it?

shbatm
2009-08-16, 23:27
I was just getting all set up to start to do the same development. Just got my fancy new LG tv and after briefly trying LinuxMCE which has RS232 built-in I decided to stick with XBMC. Anyone else working on this or know how to access these events?

I'm pretty new to python so any help would be appreciated.

UglyBob
2009-08-17, 09:47
I still haven't found that much information about how to catch the events in XBMC, but if you haven't found it yourself, I just wanted to tip you about the Python Serial lib for the second half of the project:

http://pyserial.sourceforge.net/

Still grateful for any information about event catching in XBMC!

dj_gerbil
2009-08-18, 21:04
Possibly not quite what you had in mind, but have you have a look at EventGhost? You might find it a bit easier to trap events and send them elsewhere.

UglyBob
2009-09-08, 21:44
I have now implemented a simple python script that acts as a proxy between my remote and xbmc. It captures some of the commands (volume up/down, shutdown) and uses them to control my receiver using RS232. I'm still thinking about implementing it inside XBMC however, but I still can't find any information about if it is even possible. So please, could someone answer my question:

Is it possible to capture the http requests inside xbmc using a script or an addon and if so, how could I do it?

Livin
2009-09-09, 01:49
An "Event Passthrough" plugin would be pretty cool....

Something that could send RS-232 (serial) commands or even HTTP commands... for triggering other home automation systems (like lighting).

If you don't get an answer here on the even capture, I suggest making a feature request in TRAC (and post it in the Feature Request forum)