diff options
author | Martin Ashby <martin@ashbysoft.com> | 2024-12-21 22:18:18 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2024-12-21 22:18:18 +0000 |
commit | 82e7ac75954c973a5c59a02684788c0fb26e14dd (patch) | |
tree | a1b09939f30bc4c232e69f980c2a47e48625ee1d /content/posts/2022-12-26-spotifyd.smd | |
parent | ff323f79e03174e4cdf2a709c095ff83e7ea3669 (diff) | |
download | mfashby.net-82e7ac75954c973a5c59a02684788c0fb26e14dd.tar.gz mfashby.net-82e7ac75954c973a5c59a02684788c0fb26e14dd.tar.bz2 mfashby.net-82e7ac75954c973a5c59a02684788c0fb26e14dd.tar.xz mfashby.net-82e7ac75954c973a5c59a02684788c0fb26e14dd.zip |
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!)
Diffstat (limited to 'content/posts/2022-12-26-spotifyd.smd')
-rw-r--r-- | content/posts/2022-12-26-spotifyd.smd | 23 |
1 files changed, 23 insertions, 0 deletions
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 <number>` either via command line or in the configuration file, and allow connections with `sudo ufw allow <number>` + +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. + |