diff --git a/README.md b/README.md index 9055a09..1c506c2 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Images: [DockerHub](https://hub.docker.com/r/giof71/squeezelite) ## Why -I prepared this Dockerfile Because I wanted to be able to install squeezelite easily on any machine (provided the architecture is amd64 or arm). Also I wanted to be able to configure and govern the parameters easily, with particular reference to the configuration of the ALSA output. Configuring the container is easy through a webapp like [Portainer](https://www.portainer.io/). +I prepared this Dockerfile Because I wanted to be able to install squeezelite easily on any machine (provided the architecture is amd64 or arm). Also I wanted to be able to configure and govern the parameters easily, with particular reference to the configuration of the ALSA output. PulseAudio is also supported since 2022-09-15. Configuring the container is easy through a webapp like [Portainer](https://www.portainer.io/). ## Prerequisites @@ -82,7 +82,7 @@ Variable|SqueezeLite corresponding option|Default|Notes :---|:---:|:---:|:--- SQUEEZELITE_MODE||ALSA|Set to PULSE for [PulseAudio](#pulseaudio) mode PUID||1000|User ID for PulseAudio Mode -PGID||1000|Gser ID for PulseAudio Mode +PGID||1000|Group ID for PulseAudio Mode PRESET|||You can now choose to set variables using predefined presets. Presets can currently tune the values of `SQUEEZELITE_AUDIO_DEVICE`, `SQUEEZELITE_RATES`, `SQUEEZELITE_UPSAMPLING`, `SQUEEZELITE_CODECS` and `SQUEEZELITE_EXCLUDE_CODECS` for you. See the [Available presets](#available-presets) table for reference. Presets can be combined (the separator must be a comma `,`), but keep in mind that the first preset setting a variable has the priority: one set by a preset, a variable cannot be overwritten by subsequent presets. SQUEEZELITE_AUDIO_DEVICE|-o||The audio device. Common examples: `hw:CARD=x20,DEV=0` or `hw:CARD=DAC,DEV=0` for usb dac based on XMOS. If left empty, the default alsa device is used. SQUEEZELITE_PARAMS|-a||Please refer to the squeezelite's man page for `-a`. diff --git a/RELEASE.md b/RELEASE.md index 619ba76..7e8c827 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -2,6 +2,15 @@ ## Releases +### 2022-09-17 + +Feature|Description +:---|:--- +Documentation|Fixed typo on PGID notes +Documentation|Mentioned PulseAudio early in Why section +PulseAudio/SystemD|Removed my custom player name from unit, now the player name reflects the hostname +PulseAudio/SystemD|Service now should wait for the network + ### 2022-09-16 Feature|Description diff --git a/pulse/squeezelite-docker-pulse.service b/pulse/squeezelite-docker-pulse.service index 0161034..168c401 100644 --- a/pulse/squeezelite-docker-pulse.service +++ b/pulse/squeezelite-docker-pulse.service @@ -1,6 +1,7 @@ [Unit] Description=Squeezelite Docker Pulse -After=network.target sound.target +After=network.target network-online.target sound.target +Wants=network-online.target [Service] Type=simple @@ -9,15 +10,15 @@ ExecStartPre=-/usr/bin/docker rm squeezelite-pulse ExecStartPre=-/usr/bin/docker network create squeezelite-pulse ExecStart=/usr/bin/docker run -i \ --network=squeezelite-pulse \ - -e PUID=%U \ + -e PUID=%U \ -e PGID=%G \ - -e SQUEEZELITE_MODE=PULSE \ - -e SQUEEZELITE_NAME=xeon10-pulse-exp \ - -e SQUEEZELITE_SERVER_PORT=lms.homelab.com \ + -e SQUEEZELITE_MODE=PULSE \ + -e SQUEEZELITE_NAME="%H-pulse" \ + -e SQUEEZELITE_SERVER_PORT=lms.homelab.com \ -v /run/user/%U/pulse:/run/user/%U/pulse \ - --name squeezelite-pulse \ - --label com.centurylinklabs.watchtower.enable=false \ - giof71/squeezelite:stable + --name squeezelite-pulse \ + --label com.centurylinklabs.watchtower.enable=false \ + giof71/squeezelite:stable ExecStop=-/usr/bin/docker stop squeezelite-pulse ExecStop=-/usr/bin/docker rm squeezelite-pulse