ShiromMakkad / LedFxDocker

A Docker Container for LedFx.
56 stars 19 forks source link

Add squeezelite support #2

Closed Vanixxx closed 3 years ago

Vanixxx commented 3 years ago

Squeezelite is a client for the multiroom software Logitech Media Server. This pull request installs squeezelite in Docker with the environment variable SQUEEZE=1 and starts it automatically.

ShiromMakkad commented 3 years ago

All of the code looks good, but I'd like to test it. Do you have any testing instructions or examples?

I'd like to move this installation if possible to the Dockerfile: apt-get install -fy squeezelite The only reason the Snapcast installation happens outside the Dockerfile is because I had issues bringing it down and running it during the build process had issues.

Also, the SB_EXTRA_ARGS, SB_SERVER_IP, and SL_SOUNDCARD configurations can be moved into the docker-compose.yml and those comments can be moved into the Readme.

I can write the documentation and make these small changes. I just need some testing instructions.

Vanixxx commented 3 years ago

I am using a Docker container for the Logitech Media Server. The whole thing is already preconfigured in my Unraid server. The Docker container is from snoopy86/logitechmediaserver

The Logitech Media Server is then accessible on port 9000 via web and has to be configured. The clients can be operated via the web interface. After that you have to install a client. For Windows there is Squeezeplay. Linux: squeezelite or use a raspberry with max2play or picoreplayer Android: squeezeplayer or SB Player Normally the clients connect automatically to the server (without entering the IP address) When this is done, the clients should appear in the server interface on the top right and you can synchronize the clients. For example kitchen with LEDfx. Now you can select a radio stream on the left side and in the kitchen and LEDfx the sound should be played.

argument you need: SL_NAME SB_SERVER_IP SB_EXTRA_ARGS SL_SOUNDCARD (not necessary, because default: pulse audio)

LMS Overview

ShiromMakkad commented 3 years ago

Everything worked great on my local machine, but I wasn't able to get the media server on my computer to detect my pi. That's probably due to some network issues that I didn't work out, and I didn't see any errors caused by this PR, so I'll merge it once I'm done documenting it.