2010-04-07, 20:56
Hi,
I'm trying to set up my XBMC install to control my A/V Amp which I've just hidden away in a cupboard. I've managed to configure the USB-UIRT so that it sends the commands that I want to use and is able to control the amp using a command in the following syntax:
What I'm having issues with is how to get XBMC to call this command because I use more than one device to control XBMC (I have a harmony remote and also use the XBMC iPhone app). So far as I can see I have the following options:
so, does anyone have any suggestions on the best way to achieve what I'm trying to do?
Cheers,
~Dan
Update:
Apologies if anyone is replying to this as I write but I've just had a moment to think (always a good reason not to rush your post). There is also a 4th option (or an alternative option 2). I'd assumed that LIRC.send would have execute the irsend command. It's also possible that it sends a remote command to LIRC which can then process it as if a remote command has been recieved. If that were the case, then I could use a combination of this and the .lircrc option to have all instances of the keypress (or API event) trigger the .lircrc event which runs an irsend?
Course, i could be barking totally up the wrong tree and I still don't know the syntax of the LIRC.send command :-)
I'm trying to set up my XBMC install to control my A/V Amp which I've just hidden away in a cupboard. I've managed to configure the USB-UIRT so that it sends the commands that I want to use and is able to control the amp using a command in the following syntax:
Code:
irsend SEND_ONCE RM-U306A_VOL MUTING
What I'm having issues with is how to get XBMC to call this command because I use more than one device to control XBMC (I have a harmony remote and also use the XBMC iPhone app). So far as I can see I have the following options:
- I can use the System.Exec command to call a batch script and use the keymap.xml to fire this when the right event is triggered.
- I can use the LIRC.send command (actually, can I. I can't find any description of what this command does or it's syntax, though it seems logical to assume that it's the irsend ... doesn't it?
- I can use the .lircrc and irexec, as described in this post, to detect the remote keypress and forward this on. Unfortunately this won't help me when I'm using the iphone app as I can't see a way to trigger this event.
so, does anyone have any suggestions on the best way to achieve what I'm trying to do?
Cheers,
~Dan
Update:
Apologies if anyone is replying to this as I write but I've just had a moment to think (always a good reason not to rush your post). There is also a 4th option (or an alternative option 2). I'd assumed that LIRC.send would have execute the irsend command. It's also possible that it sends a remote command to LIRC which can then process it as if a remote command has been recieved. If that were the case, then I could use a combination of this and the .lircrc option to have all instances of the keypress (or API event) trigger the .lircrc event which runs an irsend?
Course, i could be barking totally up the wrong tree and I still don't know the syntax of the LIRC.send command :-)