Handling IR remote control commands

For anyone who wants to handle IR remote control commands I advise you to install the lirc_node module for Node.js. Once installed you can use the code below to handle incoming IR commands from your remote control and use Malos to do something useful on the Matrix Creator:

lirc_node = require(‘lirc_node’);
lirc_node.init();

// Listening for commands
var listenerId = lirc_node.addListener(function(data) {
console.log(“Received IR keypress '” + data.key + “’ from remote '” + data.remote +"’");
// blink some leds!
// …
});