davidkrantz / Colorfy

Finds a suitable background color to the artwork of the current Spotify playback and sets it to a LED-strip using a Raspberry Pi
MIT License
135 stars 13 forks source link

Adding support for WLED devices #15

Closed pawKer closed 1 year ago

pawKer commented 2 years ago

Hi @davidkrantz 👋 I have not really used this project for a while but with the occasion of Hacktoberfest I thought I might as well raise this PR since I already had the code on my fork.

I've not been using it because I disconnected the LED strip that was directly wired to my Raspberry Pi and I am now runny a couple of WLED devices using ESP32s. With this setup you can easily control the LED strips with the WLED app and also via the API. I do recommend it if you're still into leds!

For this code change I've followed the pattern of the previous contribution I made and it is quite simple since it only requires a GET request to set the color and one to get the color. WLED already handles the smooth transitions.

Let me know if this looks good 😃 also, would be great if you could add the hacktoberfest-accepted label to this PR

davidkrantz commented 1 year ago

Hi! Sorry for not seeing this earlier... I can't test the code myself, but it looks good. Thanks for the contribution! 😃