joeyy-watts / SpotifyWLED

A script to listen to the currently playing track on your Spotify account and forward it to a WLED (https://github.com/Aircoookie/WLED) LED matrix with support for animations.
2 stars 0 forks source link

Implement stopping service from endpoint #17

Closed joeyy-watts closed 10 months ago

joeyy-watts commented 10 months ago

Currently it's possible to stop the main ArtNetLoop in main_http_handler. However, it doesn't handle canceling the AnimateCover tasks that are still running.

Might have to implement some context manager for managing dependent asyncio tasks..

Also have to ensure the pyArtNet class terminates properly, otherwise the WLED matrix will glitch out and intermittently show the last shown frame.

joeyy-watts commented 10 months ago

added in d3552d2e163a73aa31c157d3d053821b02c17e7e