Update webhook to send colours used by Plexamp

I’m loving plexamp, it’s one of the best music players I have used and it’s performance is perfect. I recently had an idea where I want to sync my room’s smart bulb colours to match the song’s album art colours, and I attempted to write an application that extracts the dominate colours from the image, but for some reason they never really match the gradient that plexamp does.

My suggestion is to have plexamp (or the plex server if possible) send the colours used by plexamp for the background for the current song that is playing.

I understand this is an unusual request, but it would be awesome to have.

Plexamp uses BlurHash for the colours.

You can query the server for the BlurHash value for the colours.

http://IP-ADDRESS:32400/library/metadata/<ratingKey>?includeFields=thumbBlurHash,artBlurHash&X-Plex-Token=<YOUR_TOKEN>

Which will return something like

thumbBlurHash="TLCOIA=xs+}ts,S1EMI;Ne10I@j]"
artBlurHash="LmH]n4^MoIb0}pxWSNR+sRWXWrWV"

Then you decode it into the colours using the BlurHash library.

2 Likes

I take it SwiftPanda16’s response covers what you’ve been asking for?

2022 clean-up: considered implemented (while not part of the webhooks payload, the information can be derived via API lookups).