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.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
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