TobKra96 / music_led_strip_control

Audio visualization for LED strips in real-time with web interface on a raspberry pi.
https://tobkra96.github.io/music_led_strip_control/
MIT License
297 stars 64 forks source link

WIP dashboard serverside rendering #116

Closed weiserhei closed 3 years ago

weiserhei commented 3 years ago

Moving the Dashboard pill creation into the templates. Doing it serverside saves some AJAX Requests and glitches. Currently the device-tabs are built after pageload, while with this change only the last active device is marked after pageload.

I marked as WIP because every other Site doesnt even utilize the Device-class or builds their own device tabs in different places. So this is only working on Home for now (dashboard.html).

weiserhei commented 3 years ago

The relevant bits: