Steve Agnew wrote: > I've just spent an afternoon setting up a KY-040 encoder to work with > squeezelite and was wondering if there was a simpler approach that would > be easier for normal folk. > > Would it be possible to support USB media controllers natively in > Squeezelite? I think they are supported if you install Jivelite but my > picoreplayer box sits inside an old radio and doesn't have a screen. > Something really simple like this: > > https://www.thingiverse.com/thing:2970774 > > would be awesome, or even something a bit more mainstream like the OSMC > RF media remote controller: > > https://osmc.tv/store/product/osmc-remote-control > > I'm sure there are lots of other remote controls that mimic keyboards. > Would this be a useful thing to have? > > Thanks, Steve.
Yes, it is possible to control squeezelite with a usb device that mimics a keyboard with /usr/local/sbin/inputlircd if you manually install the pcp-lirc extension. That being said, it's not an simple setup. I did this recently with the 'Justboom Smart USB Remote' (https://shop.justboom.co/products/justboom-smart-remote) and a 'mini usb keyboard' (https://www.ebay.ca/itm/Mini-Keyboard-I8-2-4g-Wireless-Receiver-Optical-Mouse-For-Android-Tv-Box-Pc/362509407539) while testing a squeezelite change to enable repeating keys support with inputlircd. We don't support inputlircd from the webgui lirc tweaks pages. If you enable lirc through tweaks, pcp will launch lircd at startup which conflicts with inputlircd. You need to install pcp-lircd from the extensions webgui and start it from the user commands, and you must add -i to squeezelite various options field. See 'the manpage' (https://manpages.debian.org/jessie/inputlirc/inputlircd.8.en.html) for option details. You will likely need to create a mapping file (-t) and you might need to add -m 0 and -r 300 in addition to the input device your usb device is sending key events on. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ------------------------------------------------------------------------ ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=111787 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
