lirc_web icon indicating copy to clipboard operation
lirc_web copied to clipboard

No buttons except macros

Open maxpshaw opened this issue 7 years ago • 3 comments

Hello,

I copied the "config.json" in example_configs but there was only one button for "Xbox360" when I opened the browser. Not sure what went wrong. Can you shed some light? thank you.

maxpshaw avatar Apr 10 '17 17:04 maxpshaw

I have the same issue too. After upgrading from Jessie to Stretch all by buttons are missing expect the Macros...

JameZUK avatar Nov 08 '17 12:11 JameZUK

I had the same issue, managed to fix today. You need to change 4 lines of code in the lirc_NODE.js file. Lirc_web is the interface, but it's lirc_node that fetches the remotes/data. This file here: https://github.com/alexbain/lirc_node/blob/master/lib/lirc_node.js

On my pi it's located here: /usr/lib/node_modules/lirc_web/node_modules/lirc_node/lib/lirc_node.js

change line 32 and 53 stderr.split('\n'); to stdout.split('\n');

and change lines 37 and 56 from element.match(/\s(.*)$/); to element.match(/\b(.*)$/);

start lirc_web, it'll work :)

DropbearNinja avatar Nov 16 '17 11:11 DropbearNinja

Thanks @DropbearNinja - this worked for me - however as a note to anyone else attempting to correct this, line 56 actually needs to be modified to element.match(/\b.*\s(.*)$/);. Line 37 can be corrected as described.

ionothanus avatar Dec 12 '17 03:12 ionothanus