Raspberry Pi Plexamp Tidal Integration

I’ll try it on my Pi Zero when I get my Pimoroni Pirate Audio Hat. I might get it this week. Did you try the mopidy-plex?

No, I’ve got a Chromecast Audio that lets me run Plex and Spotify side by side with SPDIF output, so this solution isn’t essential for me, it’s just a nice to have as the Chromecasts are EOL.

Just putting it here.

I was able to make the Pi PlexAmp work on the RPi Zero with the Pirate Audio Hat.

There is no node 9 repo on RPi zero so you need to download it from here:

https://nodejs.org/download/release/v9.11.2/node-v9.11.2-linux-armv6l.tar.xz

After download, extract it

tar xvfp node-v9.11.2-linux-armv6l.tar.xz

Then copy the binaries to /usr/local

cd node-v9.11.2-linux-armv6l/
sudo cp -R * /usr/local/

You need to modify the plexamp.service file to point to the correct path of the node:

ExecStart=/usr/local/bin/node /home/pi/plexamp/server/server.prod.js

Thanks for the reply, clearly I’ve done something wrong as I’ve already got that version of node running :thinking:

Are you running it on raspbian?

This thread is funny, I’ve also been running a LMS server for forever because nothing (free) has ever matched it. And I’ve also been toying around with Mopidy+Snapcast+Plex but that has a lot of moving parts. So here I am quarantine bored I’m trying to get Plexamp running on a Pi Zero to try it out too!

I have installed the correct NodeJS 9.11.2 manually, and my audio DAC works if I run speaker-test. When I start Plexamp I get no errors, and it appears in the Plex Web UI as a castable source.

But if I try casting to it, Plex just hangs. The progress bar on the song just stops and no sound comes out.

Anyone got any ideas for troubleshooting? I can’t think of any reason this wouldn’t work on a Pi Zero but I guess I’ve got an extra Pi3 laying around.

yep. it’s raspbian.

Yeah this thread is kinda off from the original topic :smiley:

did you comment this line on the boot/config.txt

#dtparam=audio=on

I had the same issue as yours and there’s no sound from the line out of the pirate audio dac hat. I checked the logs and there is just one error on the /dev/ttyUSB0 which I think it’s OK to have that.

The plexamp was using the default audio of the rpi zero. After I commented the line above, I got it to play on the DAC.

I also discovered something on plexamp on raspberry pi:

Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Starting up.
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] Device 1: Default - enabled default - sample rates:
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] Device 2: snd_rpi_hifiberry_dac: HifiBerry DAC HiFi pcm5102a-hifi-0 - enabled - sample rates:
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Using plugin path '/home/pi/plexamp/server/node_modules/treble/build/Release/'.
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Reloading ourselves for symbol visibility.
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Version 2.4.13.8
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Mixer version 2.4.9.2
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Going to try to open device with sample rate of 44100.
Jun 14 21:57:17 raspberrypi node[449]: debug: [TREBLE] BASS: Device opened and sample rate is 44100, latency is 34ms (minimum buffer: 14ms).

It seems that the sampling rate is set to 44.1KHz. The DAC can sample up to 192KHz and it seems that the plexamp for RPi doesn’t seem to go beyond 44.1KHz.

So when the new Plexamp for desktops released I was very disappointed that I lost some functionality (can’t control the volume, WHAT!?!). But as of today I have been able to get that functionality back by integrating my Pi-Zeros into Home Assistant. I know get a volume control via Home Assistant. I can even queue up the same music to multiple zones… unfortunately they aren’t completely synced, not sure if that is achievable through HomeAssistant. Check out Home Assistant if you want extra control of your plexamps!

Unfortunately I have not been able to get my Tidal library working still as of yet.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.