node-sonos-remote-control

A simple implementation of an IR remote to Sonos mapper for linux/lirc (raspberry pi)

OTHER License

Stars
13

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:

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