Plexamp on Raspberry Pi - Hooks

Hi,
while playing some great music on Plexamp I thought it would be nice to be able to control other devices from our beloved music player. I have an amplifier equipped with a serial port (RS232 from the good old times) so it should be possible technically to switch it on when the Play command is issued. Any smart way to do that in roadmap?

Have a lot of fun
Gaetano

I’ve put some work into looking into this. As of right now, there’s no published way of getting event triggers out of the plexamp service on the raspberry pi.

A workaround for this is to use a docker application called tautulli. It has a notification system that can trigger on events such as start playback, stop playback, play, pause, etc.

It would take a bit of work and require some programming skill but if you’re interested you could set up a service on your raspberry pi that listens for webhook requests and then send out the proper RS232 package over a USB port.

I did something along these lines when the early versions of plexamp didn’t release the audio device when nothing was playing. https://forums.plex.tv/t/rpi-plexamp-release-audio-device-when-no-file-is-playing/791578/18

Hi @TimCecil ,
thank you! I actually followed your work about the audio device release, I will look at it again to get some information. I already have experienced a bit on RS232 communication with my Cambridge Audio amplifier and it works like a charm, now I have to make a linux service out of it.

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

There’s an undocumented way to get events.

$ ❯ curl http://audio-office:32500/:/eventsource/notifications
event: state
data: {"player":"local","title":"One Love Karma","parentTitle":"Dive Deep","grandparentTitle":"Morcheeba" ... }
3 Likes