Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.46 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.46 KB

SONOS REMOTE CONTROL

Simple proof of concept for controlling a Sonos system using a standard IR remote. This will work on any linux system that has lirc support. I will not get into detail on how to setup lirc, there are plenty of guides for that on the internet.

My setup includes:

HOW IT WORKS

If you have a working lirc installation, the lircd daemon will create a socket file (by default, /var/run/lirc/lircd). This socket will output something like this upon key press:

0000000020df9867 00 9 LG_AKB72915207
0000000020dfa857 00 5 LG_AKB72915207
0000000020df00ff 00 ch_up LG_AKB72915207
0000000020df807f 00 ch_down LG_AKB72915207

the third column is the actual key pressed. The code you receive might differ for different mapping files (some use lower case, some juse upper case, some prefix every code with KEY_, etc)

The node script will read those and map the actual key code to different actions on the Sonos system, which are sent across the network.

Enjoy!

To watch it in action (early version): http://www.youtube.com/watch?v=sUISofdYYjg