pumped up my pi and installed the new headless plexamp and already happy about it.
Still one thing I might have missed, I can control plexamp from another plexamp instance and through the web interface.
But is there also a (REST) API which I can trigger to play certain songs/albums/playlists on this particular plexamp client?
Thankful for every hint or documentation into that direction.
I could be looking in the wrong place but I haven’t seen anything listed in any of the published api or api wrappers (Tautulli, python plex). From what I can tell you can only have the ability to get information and stop a current stream. Nothing about starting or pausing or anything like that.
The only place has anything working similar to what you’re asking is the home assistant plex integration. If you have the time and the background knowledge you could probably look through the source code of the integration to see how they are able to send control commands and then use it to write something that fits your needs.
The python plex api you mentioned (Python-PlexAPI — Python PlexAPI documentation) is actually capable of playing a certain object (e.g. Playlist) on a given client or even a Sonos speaker.
Haven’t tested yet but looks very promising. Waiting for the next rainy day to try that out.
Plex “companion” connections require all participants to be in the same local network. If your server is remote (or isolated via virtualization/containerization) this won’t work.
The Plex server is running natively on my Synology server on the local network. Strangely, it can see all of my PlexAmp clients, the clients can see each other and the headless box, but the server can’t see the headless box.
I have the latest version of the Plex server available, so that shouldn’t be a problem.
Do they all broadcast on a known port that I can sniff on the network?