Manueller Modus: einzelne Pixel per API setzen (/api/pixels)

- PUT /api/pixels: alle 125 Pixel, Index x + 5*y + 25*z
- PATCH /api/pixels: optional fill, dann einzelne Pixel mit x, y, z
- GET /api/pixels: aktuelles Bild
- Schreiben schaltet den manuellen Modus ein: Farben unverändert (nur die
  Strombegrenzung dimmt), kein Autowechsel, keine Klatsch-Blitze; ein
  Effektstart oder {"manual": false} in /api/state beendet ihn
- Nicht im Flash gespeichert, damit Skripte viele Bilder schicken können
- App zeigt den manuellen Modus in der Statuszeile

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mikeandClaude Opus 5.5 committed 2026-11-17 13:56:23 +01:00
1 parent ff1fdeaf4f
commit ffac7d6ff2
8 files changed
+193 -8

No files matched your search

+2
View File
@@ -9,6 +9,8 @@ struct CubeState: Codable, Equatable {
var allCategories: Bool?
/// automatisch nur durch die Favoriten
var playFavorites: Bool?
/// manueller Modus: Pixel kommen per API (/api/pixels), kein Effekt läuft
var manual: Bool?
var brightness: Int
/// Effekt-ids, höchstens 12
var favorites: [String]?