From 82e7ac75954c973a5c59a02684788c0fb26e14dd Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 21 Dec 2024 22:18:18 +0000 Subject: Bump zine 0.3.0 -> 0.8.0 Fix a lot of associated breakage Fix broken rss.xml file as highlighted to me by Matthijs van der Wild (thanks!) --- content/posts/2022-12-26-spotifyd.smd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 content/posts/2022-12-26-spotifyd.smd (limited to 'content/posts/2022-12-26-spotifyd.smd') diff --git a/content/posts/2022-12-26-spotifyd.smd b/content/posts/2022-12-26-spotifyd.smd new file mode 100644 index 0000000..ded36f7 --- /dev/null +++ b/content/posts/2022-12-26-spotifyd.smd @@ -0,0 +1,23 @@ +--- +.title = "Spotifyd", +.author = "Martin Ashby", +.date = @date("2022-12-26T23:08:03Z"), +.layout = "single.shtml", +.custom = {"comments": true}, +--- + +I recently discovered [spotifyd](https://spotifyd.github.io/), an open source alternative to the deprecated libspotify. I happened to also have a [pi-zero W](https://www.raspberrypi.com/news/raspberry-pi-zero-w-joins-family/) from a while back, and a [pHAT DAC](https://learn.pimoroni.com/article/raspberry-pi-phat-dac-install) amplifier. + +It was a relatively trivial job to set up the pi zero w headless, get audio output to the pHAT DAC, install spotifyd and use it as a spotify connect device connected to my old [Cambridge Audio A1](http://www.hi-fi-insight.com/cambridge-audio-a1-integrated-amplifier.html). + +Install guides: +- [raspberry pi headless](https://www.raspberrypi.com/documentation/configuration/wireless/headless.md), since I last used this, userconf.txt was added which allows setting up a proper user with a unique password! Bonus security points. +- [spotifyd](https://spotifyd.github.io/spotifyd/installation/Raspberry-Pi.html), zero-w requires the arm-v6 variant, luckily they build releases for this architecture! Building on the pi-zero could take a while. +- [phat-dac](https://learn.pimoroni.com/article/raspberry-pi-phat-dac-install) +- [tailscale](https://tailscale.com/kb/1025/install-rpi/), not strictly necessary, but nice to have +- and [ufw](https://help.ubuntu.com/community/UFW) and [unattended-upgrade](https://manpages.ubuntu.com/manpages/bionic/man8/unattended-upgrade.8.html), just for the additional security and sanity. Note that you must set spotifyd to listen on a fixed port for disovery to work, and allow that port in the firewall! Specifically set `--zeroconf-port ` either via command line or in the configuration file, and allow connections with `sudo ufw allow ` + +I tried a similar project a few years ago, using [MPD](https://www.musicpd.org/) and spotify plugin, but at the time it was too unreliable. Thanks to the folks who spent the time creating spotifyd! + +I should get a case for the pi some time, at the moment it's just freely sitting on the shelf next to the speakers. + -- cgit v1.2.3-ZIG