Help with installing on DietPi
Hi.
this is not an issue really, but I would be greatful for advise. I am trying to replicate the ability to have a bluetooth speaker as a Squeelite player in LMS as in PiCorePlayer and found you excellent instructions. I'm running DietPi on a RP3 and can connect to the bluetooth speaker, but it does not appear in the list of players in LMS.
I'm still quite a novice so would appreciate help. I believe everything installed correctly, the only observations I made were:
- when running:
I get these recommendations - do I need to install and of these dependancies?

- after running 'autoreconf --install' for bluez-alsa, I receive this message:
"aclocal: warning: couldn't open directory 'm4': No such file or directory"
- The bluetooth-monitor service is listed in DietPi as 'activiting' constantly, but I can't see anything in the logs to suggest there is an error....
I would be so greatful for some advise and thank you very much for the instructions
ok,
- the suggested packages are normaly not needed.
- this is a warning. did you recognize if the compile process ends successfuly?
Especially the following command ends without an error
make && sudo make install3,) can you please check whether the bluezalsa.service is also running without errors
if you found no errors we have to look into detail, if the running applications are have a problem with the parameters.
a) please recheck the pairing of your bluetooth device and if the device connects or disconnects if you enable/disable the bluetooth speaker in the bluetoothctl tool
b)
can you please change the following line
https://github.com/oweitman/squeezelite-bluetooth/blob/e001110155013af25f8aa89874e3727ee19eeffa/src/etc/pyserver/btspeaker-monitor.py#L16
to
dbg = True
and stop the service with
sudo systemctl stop btspeaker-monitor.service
and run the script on commandline with (i hope i remember this right)
sudo python /etc/pyserver/btspeaker-monitor.py
after that, the issued command should be printed on screen, if you enable or disable your speaker.
PS: i saw a little difference between the printed and the issued command with the hci parameter.
https://github.com/oweitman/squeezelite-bluetooth/blob/e001110155013af25f8aa89874e3727ee19eeffa/src/etc/pyserver/btspeaker-monitor.py#L33
https://github.com/oweitman/squeezelite-bluetooth/blob/e001110155013af25f8aa89874e3727ee19eeffa/src/etc/pyserver/btspeaker-monitor.py#L34
after you know the connected/disconnected command
you can try both versions and you can issue this command by yourself on the commandline and check if there are some errors.
Hi oweitman thanks for the reply.
Answers below:
"2: this is a warning. did you recognize if the compile process ends successfuly? Especially the following command ends without an error make && sudo make install"
No errors when running this command to my knowledge - If I reran the command would be the suitable to ascertain if indeed errors are presented?
3,) can you please check whether the bluezalsa.service is also running without errors
I'm not sure the best way/standard way to report service log errors, but in DietPi below are details related to the service, which is stated to be running. Please let me know if there is a standard log location you require. I ran 'sudo systemctl start bluezalsa.service' and still can't see bluezalsa, only 'bluetooth':


a) please recheck the pairing of your bluetooth device and if the device connects or disconnects if you enable/disable the bluetooth speaker in the bluetoothctl tool
connects fine:

disconnects fine too:

b) change dbg = True, restarted service and ran sudo python /etc/pyserver/btspeaker-monitor.py:

Apologies, but I'm not sure what you want me to try regarding lines 33 (debug) and 34 (player) as above
Still no luck getting this working with the steps described above
Thank you so much for your help! I look forward to hearing from you
ok we found the problem. one of the dependencies is deprecated. therefore there was possibly also a problem when compiling
i must try it by myself and i hope to find a solution.
Thank you. I'm glad you figured it out. I'm happy to continue myself with picoreplayer instead of dietpi so you may close this issue if you wish as I don't want you doing too much extra work just to get this working on my part. Thanks
this is not a problem with dietpi in particular. this will also happen with the other linux operating systems. dietpi is probably just a little newer
I understand thanks