Color overview gauges by active filament and show finish times.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -123,6 +123,13 @@ int main() {
|
||||
data.connected = false;
|
||||
assert(data.overview_task() == "Waiting for Home Assistant");
|
||||
assert(data.overview_meta() == "--");
|
||||
data.trays = {{"A1", "PLA", "#FF8800FF", "off"}, {"A2", "PETG", "00FF00", "on"}};
|
||||
assert(data.active_filament_color() == GREEN);
|
||||
data.trays[1].active = "off";
|
||||
data.trays[0].active = "on";
|
||||
assert(data.active_filament_color() == 0xFF8800);
|
||||
data.trays.clear();
|
||||
assert(data.active_filament_color() == GREEN);
|
||||
|
||||
FleetCounts counts;
|
||||
data.connected = true;
|
||||
|
||||
Reference in New Issue
Block a user