cpd73 wrote: 
> I have a script I use on a Pi4 to connect BT speakers to LMS. I've just
> (today!) updated this to handle prev/next and play/pause buttons on the
> speakers - pressing the buttons sends the relevant JSONRPC command to
> LMS. I'd like to add this change to pCP's implementation, but I use the
> 'evdev' and 'requests' Python modules that appear not to be on pCP. Any
> idea on how these can be added?
> 
> If you are interested, my code is at
> https://github.com/CDrummond/lms-btspeaker/blob/master/btspeaker-monitor.py
> Relevant lines are 45 to 135. Basically, the speaker is listed as in
> input device on Linux, and my code checks for various keycode events
> associated with the hardware buttons.

cpd73, 
Python had to be added for a new pCP player, as detailed in this thread

https://audiophilestyle.com/forums/topic/62599-allo-boss2-player-question/comments?ct=1619175608

here are the commands to add python
piCorePlayer v7.0.0 onwards :
-----------------------------
Resize FS on webGUI

ssh login with user tc Password piCore

tce-load -wi python3.8-Pillow.tcz
tce-load -wi python3.8-smbus.tcz
tce-load -wi python3.8-rpi-gpio.tcz
tce-load -wi  iproute2.tcz

sudo su 

I don't know if the iproute2.tcz is needed but this should get you
python.



A camel is a racehorse designed by a committee.

Seen sprayed on the outside wall of the local library -
Three things I hate in life :
1. Vandalism
2. Irony
3. Lists
------------------------------------------------------------------------
Wirrunna's Profile: http://forums.slimdevices.com/member.php?userid=3225
View this thread: http://forums.slimdevices.com/showthread.php?t=114424

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to