Reset all app settings, dashboard starts empty

The reset disconnects all DSPs first and sends them nothing, asks for two random
letters (and the PIN on the web), keeps a copy of the old config and reloads
a fresh app. Refused during an audio test or mute all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 21:14:08 +01:00
1 parent 6d53069380
commit 29a89af562
8 files changed
+117 -7

No files matched your search

+2
View File
@@ -64,6 +64,8 @@ pi_writer.py → pi_image.py (cloud-init SD card, installs server.py as a system
Its settings sit in the access section; in the apps it needs remote access, since the app itself only listens on 127.0.0.1.
* **Preset looks** – `Device.looks` keeps `colors`/`linknames` per preset name; `sync_look` swaps them whenever a read of the DSP
shows another name (the DSP has no preset IDs: same name = same look). Preset files carry them as `look`.
* **Reset** (`App.reset_config`, `POST /api/reset`) – stops all devices before anything else and sends them nothing, then defaults from
a fresh `App`. Refused during an audio test or mute all, because the DSP would stay changed. Keeps `config.before-reset.json`.
* **Network search** – `App.scan_network` probes the local /24 networks on TCP 9761 (handshake + device info),
skipping DSPs this app is connected to.
* **Copy settings / mute all** – `App.copy_settings` (`POST /api/copy`, groups level/filters/eq/dynamics/routing) and