A new version of linamp-player has been released, it includes two big features I really wanted to finish:
1. UI Improvements:
- The volume and balance sliders now change color depending on their values, just like the original Winamp skin did:
- Redesigned the Sources menu, it is no longer a placeholder!
2. Spotify Source:
Linamp can now be used as a Spotify Connect speaker thanks to librespot! From the Spotify app in your smartphone, Linamp will appear as a playback device, selecting it will transfer playback from your phone to Linamp.
It supports showing the song metadata, progress and spectrum analyzer.
At this point it doesn't support controlling playback from Linamp.
Please note that in order for this to work you need to install librespot and customize several configurations, this is partially done on the Linamp OS included with my Linamp DIY Digital Pack, see the next section on detail on how to set it up.
How to upgrade
If you have the latest Linamp OS from my Linamp DIY Digital Pack, you can upgrade by connecting via SSH and running the following commands:
sudo apt-get update
sudo apt-get install --only-upgrade linamp
You will also need to update the librespot service configuration, you can do it with this script:
sudo bash -c "cat <<'EOF' > /etc/systemd/user/librespot.service
[Unit]
Description=Spotify connect client
After=wireplumber.service
StartLimitIntervalSec=0
[Service]
Type=simple
StandardOutput=journal
ExecStart=/usr/bin/librespot --disable-audio-cache --quiet --name Linamp --device-type speaker --bitrate 320 --backend pulseaudio --onevent=/usr/lib/python3/dist-packages/linamp/spotifyplayer/librespot-event-handler.sh
Restart=always
RestartSec=5
Slice=session.slice
[Install]
WantedBy=default.target
EOF"
Then, just restart the device:
sudo reboot
I you are not using Linamp OS, you can get the latest binaries here: https://github.com/Rodmg/linamp/releases/tag/v1.4.0
Please note: If you are not using Linamp OS, you will need to install librespot and configure it to run as the same user you use to run linamp-player, configure it to use pulseaudio and point the events script to /usr/lib/python3/dist-packages/linamp/spotifyplayer/librespot-event-handler.sh, how to do it will depend on how your OS is setup.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Works perfectly! Can't wait until we can (possibly?) control Spotify from the Linamp. Really enjoying this.
Are you sure? yes | no