Add browser USB firmware flashing

This commit is contained in:
MasterPhooey
2026-06-15 06:43:22 -05:00
parent ed120e91ab
commit 8a8f4a82d9
3 changed files with 409 additions and 23 deletions

View File

@@ -187,11 +187,12 @@ After those assets are prepared, later runs reuse the local copies unless the mo
The `Firmware` tab flashes prebuilt Tater firmware for supported ESPHome satellites.
- Downloads the latest prebuilt firmware manifest and OTA image from `TaterTotterson/microWakeWords`.
- Downloads the latest prebuilt firmware manifest plus OTA and USB factory images from `TaterTotterson/microWakeWords`.
- Verifies downloaded images by size and SHA before upload.
- Auto-detects ESPHome devices with mDNS when the container is running with host networking.
- Allows manual IP or hostname entry if discovery does not find the device.
- Saves the selected OTA target for each firmware family.
- Flashes the prebuilt factory image over Browser USB for first installs or recovery when opened in Chrome or Edge.
- Lists locally trained wake words from `/data/trained_wake_words/` for live model switching.
- Streams download, verification, and OTA upload progress in a colorized firmware console.