geerlingguy / beast-challenge

A control system for MrBeast's 1-100 challenge
GNU General Public License v3.0
26 stars 1 forks source link

Add Room Light Control page and tie into system #4

Closed geerlingguy closed 1 year ago

geerlingguy commented 1 year ago

We should have a page where it show the current light for every room (in a 10x10 grid with each room having a number in the middle, with the current color as the table cell background. When you tap on any given room, a popover shows current room color and any other details, and has a popup selector to change color.

At the bottom of the page also have a dropdown to choose RGB or W and 'set all'.

This will just save the value of the color to the room (or all rooms) in the database table.

There will be an API endpoint like /room which will allow each room SBC to retrieve it's state (room_color, led_1, led_2, led_3) something like that, and it will then make the room match the state in the database.

geerlingguy commented 1 year ago

Work so far, display side only really:

room-lights-example
geerlingguy commented 1 year ago

Got it much more functional now:

room-lights-example Screen Shot 2023-03-05 at 5 08 48 PM

Going to move the form functionality into a separate issue.