alexbain / lirc_web

Control LIRC from the web using NodeJS and lirc_node
125 stars 60 forks source link

No buttons except macros #57

Open maxpshaw opened 7 years ago

maxpshaw commented 7 years ago

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.

JameZUK commented 7 years ago

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

DropbearNinja commented 6 years ago

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 :)

ionothanus commented 6 years ago

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.