Quantcast
Channel: Squeezebox : Community : Forums - DIY
Viewing all articles
Browse latest Browse all 123

IR Programming

$
0
0
I'm hoping someone can summarise how to make an infrared remote control perform a specified function on a Squeezebox player.

My scenario:
I've just bought a 'oneforall' 4-in-1 remote control. The TV and satellite receiver setup were easy, using the standard codes for the brands. My amplifier (a home-build using a Hypex DLCP) was easily set up on the 'AMP' button using the remote's learning function, as was my RPi (running pCP and LIRC) on the 'DVD' button. But there are some functions that I'd like to programme that are not present on either of my Squeezebox remotes, so my oneforall can't 'learn' them.

As an example, I'd like to programme the mute key to set the playback volume to zero. I've done this previously using a button press on one of the RPi's GPIO pins, so I know that the ["mixer","volume","0"] command does what I need.

So I think there are two steps:
1) Find out what code is transmitted by the mute key when my remote is set to 'DVD'. I can vary this somewhat by selecting different DVD brands, but I can't assign a specific code to the mute key, so I believe the correct approach is to first detect the code that's transmitted, then
2) tell LMS to set ["mixer","volume","0"] in response to that code.

I'm pretty sure there's info on step 2 available in this forum, so I'll dig that out, but is there an easy way to get LMS to tell me what code it detected when I pressed the mute key?

Viewing all articles
Browse latest Browse all 123

Trending Articles