Open vderaa opened 1 year ago
I took a look at the script and I believe this something that is doable. Since HuePlex is already pulling a webhook packet from the Plex server and I believe that packet contains the URL to the poster art, obtaining the poster shouldn't be a problem. It also looks like that script is using a library called Color Thief, which is what is used to grab the color pallet from the poster art. I just checked and there is a version of that library for Javascript/Node, so duplicating what they did probably wouldn't be that tough.
For the web interface, I'm currently strictly using Hue scenes as the selections for the play/pause/start/stop actions, but I could add a selection called Poster. I would also need to add an additional parameter when Poster is selected to adjust the brightness of the lights since that is usually taken care of in the Hue scenes.
I can add this to my feature task list and see if I can fit it in to the next feature update.
Hi!
Great to hear back from you so soon. Thanks for looking and this and considering its implementation, looking forward to it!
Kind Regards,
Kevin Reed
From: Chad @.> Sent: 02 August 2023 18:04 To: chadwpalm/HuePlex @.> Cc: vderaa @.>; Author @.> Subject: Re: [chadwpalm/HuePlex] Feature Request: Colour based on Poster Art (Issue #15)
I took a look at the script and I believe this something that is doable. Since HuePlex is already pulling a webhook packet from the Plex server and I believe that packet contains the URL to the poster art, obtaining the poster shouldn't be a problem. It also looks like that script is using a library called Color Thief, which is what is used to grab the color pallet from the poster art. I just checked and there is a version of that library for Javascript/Node, so duplicating what they did probably wouldn't be that tough.
For the web interface, I'm currently strictly using Hue scenes as the selections for the play/pause/start/stop actions, but I could add a selection called Poster. I would also need to add an additional parameter when Poster is selected to adjust the brightness of the lights since that is usually taken care of in the Hue scenes.
I can add this to my feature task list and see if I can fit it in to the next feature update.
— Reply to this email directly, view it on GitHubhttps://github.com/chadwpalm/HuePlex/issues/15#issuecomment-1662610783, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQDESDXTGTJUBRSK66IESQDXTKCDJANCNFSM6AAAAAA27RYHDI. You are receiving this because you authored the thread.Message ID: @.***>
Hey!
Looking to switch from LIFX to Hue now they've ceased trading in the UK.
For my LIFX lights, I use a script found here which can set the lights to a colour based on the average/dominant colour on the poster for the movie/show I'm watching.
I would love to see this included in your offering; would this be possible?
Many Thanks!