Future of Plexamp on Raspberry Pi?

Nice!

Playing my plex playlists now through RPI 3B+ → topping D10S via USB.

So far it looks like sample rate matching is working.

Bitchen.

Thank you @elan !!

Yes, correct, I read his post too fast and thought he was using it for Plexmediaserver as well (as I am)

1 Like

If you both are replying to my comment, then yes. I would just be repurposing my un-used 3B+ to be my music player only.
I recently upgraded to a Pi 4 in a NAS case to run my plexmediaserver (for music only), but it’s a bit too far from my stereo setup.

How do I install node 12? I seem to only be able to find the latest (16).
Thanks in advance.

Shouldn’t matter, as far as I know, all the 3s are 64-bit .

Ah yep, that’s what I get for trying to set everything up at 1AM after not touching my Pi for a few years. I’m running a 32 bit image, so I’ll need to dig out my MicroSD collection and try a 64 bit one later.

Personally, I recommend using nvm and running nvm install 12. That way you can easily swap between Node versions for testing.

3 Likes

I needed to:
$ sudo systemctl enable plexamp, NOT sudo systemctl start plexamp

Now loading at boot.

And after installing pulseaudio-module-bluetooth, I can connect to my Soundcore Bluetooth speaker. Also connects at boot.

I can now stream directly from my Pi to the BT Speaker, and control with plexamp (via cast) my iphone (and it will continue to play even it I quit the iPhone App).
Volume is lower than castiing from the iPhone to the Speaker, but that’s ok, I just increase volume on the BT Speaker

:slight_smile: :slight_smile:

2 Likes

I needed to:
$ sudo systemctl enable plexamp, NOT sudo systemctl start plexamp

Now loading at boot.

2 Likes

I installed 12 with sudo apt-get install nodejs

Weirdness continues with loading at boot.
BT Speaker connects, but no sound,
If I delete the service and load in terminal, sound……weird….investigation continues!

Thanks for the help with the node. Installed with nm no problem.

I’m getting the following when I try and run Plex:
cp: cannot stat ‘plexamp.service’: No such file or directory
Failed to enable unit: Unit file plexamp.service does not exist.

I haven’t changed the username (it’s still pi) and I think I see the plexamp.service file in /home/pi/plexamp

Any thoughts? I feel like I’m so close.

Thanks.

did you do this part?: sudo cp plexamp.service /lib/systemd/system/

Yes, I copy/pasted so I had it right.
It says: cp: cannot stat ‘plexamp.service’: No such file or directory

On fresh install of raspberry PI OS 2022-04-04-raspios-bullseye-arm64 another way to change the user name is to use

sudo rename-user

Then a restart and the install wizard takes it from there.

Am I really the only one who has tried this with the headphone jack and not digital output? I just tried on a Pi4 and got the same results. The sound plays but it’s unrecognizable through the headphone jack… Is someone willing to try outputting the sound to a headphone jack and seeing what they get???

That error does not make sense “cannot stat

Working for me with a pi4 and allo digione HAT (spdif out to an external DAC) :slight_smile:

On a fresh 64 bit install of raspberry pi os lite …

Recommended/original plexamp.service didn’t start on reboot … noticed some errors related to node and groups?

Changed to a user service (~/.config/systemd/user/plexamp.service)
(note, I think this also might help prevent issues related to different user names)

Made some changes to the service file …


[Unit]
Description=Plexamp
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/node /home/pi/plexamp/js/index.js
Restart=always

[Install]
WantedBy=basic.target


Maybe on a lite install (no desktop environment, for headless-only use), the multi-user target is never reached due to no desktop environment, so then the original plexamp.service didn’t start either ? … switched to basic.target

systemctl --user enable plexamp.service
systemctl --user daemon-reload

reboot, check again …

systemctl --user

now plexamp.service is running :slight_smile:

Are you saying I need to change my user name to ‘pi’ ?
Sorry… I’m not a strong pi user, so many assumptions are missed by me.
Thanks.

This is so weird. I get the service running at boot:

pi@pi4:~ $ sudo service plexamp status
● plexamp.service - Plexamp
     Loaded: loaded (/lib/systemd/system/plexamp.service; enabled; vendor prese>
     Active: active (running) since Wed 2022-05-04 12:33:35 EDT; 2min 6s ago
   Main PID: 478 (node)
      Tasks: 29 (limit: 4164)
        CPU: 4.705s
     CGroup: /system.slice/plexamp.service
             └─478 /usr/bin/node /home/pi/plexamp/js/index.js

May 04 12:33:35 pi4 systemd[1]: Started Plexamp.
May 04 12:33:39 pi4 node[478]: Starting Plexamp.
May 04 12:33:39 pi4 node[478]: DEVICE: No provider for source cb857c65ea05..

But… no sound to the BT Speaker, but if I don’t use plexamp.service and run in Terminal: /usr/bin/node /home/pi/plexamp/js/index.js. It works

I thought the same. It’s a copy/paste from terminal.