Channel 11 defaults, ESP-NOW driver config and rig/desktop updates

Moves the controller, bridge and led-driver default ESP-NOW channel to 11 and
updates the led-driver and led-tool submodule pointers. Includes the rest of the
working tree: web UI, desktop and sim-controller changes, API and bridge code,
graphify output, and the .gitea and fixture-driver folders.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-21 01:19:02 +13:00
1 parent 35207a868a
commit edf35e9c71
280 files changed
+24043 -1756

No files matched your search

+32 -21
View File
@@ -1235,7 +1235,7 @@ document.addEventListener('DOMContentLoaded', () => {
deleteButton.className = 'btn btn-danger btn-small';
deleteButton.textContent = 'Delete';
deleteButton.addEventListener('click', async () => {
const confirmed = confirm(`Delete preset "${label.textContent}"?`);
const confirmed = await uiConfirm(`Delete preset "${label.textContent}"?`);
if (!confirmed) {
return;
}
@@ -1339,32 +1339,43 @@ document.addEventListener('DOMContentLoaded', () => {
openEditor();
});
}
const presetSyncButton = document.getElementById('preset-sync-btn');
if (presetSyncButton) {
presetSyncButton.addEventListener('click', async () => {
presetSyncButton.disabled = true;
try {
const res = await fetch('/presets/sync', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: '{}',
});
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new Error(data.error || `HTTP ${res.status}`);
alert(`Synced ${data.presets_sent} preset(s) to all drivers.`);
} catch (err) {
alert(`Preset sync failed: ${err.message}`);
} finally {
presetSyncButton.disabled = false;
}
});
}
if (presetClearDeviceButton) {
presetClearDeviceButton.addEventListener('click', async () => {
const section = document.querySelector('.presets-section[data-zone-id]');
const deviceNames = tabDeviceNamesFromSection(section);
if (!deviceNames.length) {
alert('No devices found in the current zone.');
return;
}
if (!window.confirm('Clear all presets on current zone devices?')) {
if (!await uiConfirm('Clear the stored presets on every device? Sync to Devices sends them again.')) {
return;
}
try {
const zoneId = section && section.dataset.zoneId;
let groupIds = [];
if (zoneId) {
const zr = await fetch(`/zones/${zoneId}`, { headers: { Accept: 'application/json' } });
if (zr.ok) {
groupIds = zoneGroupIdsFromTabData(await zr.json());
}
}
const clearMsg = { v: '1', clear_presets: true, save: true };
if (groupIds.length) clearMsg.groups = groupIds;
await postDriverSequence([clearMsg], [], 0.05, { groupIds });
const res = await fetch('/presets/clear', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: '{}',
});
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new Error(data.error || `HTTP ${res.status}`);
alert('Cleared presets on all devices.');
} catch (error) {
console.error('Clear device presets failed:', error);
alert('Failed to clear presets on devices.');
alert(`Clear devices failed: ${error.message}`);
}
});
}
@@ -1816,7 +1827,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (presetRemoveFromTabButton) {
presetRemoveFromTabButton.addEventListener('click', async () => {
if (!currentEditTabId || !currentEditId) return;
if (!window.confirm('Remove this preset from this zone?')) return;
if (!await uiConfirm('Remove this preset from this zone?')) return;
await removePresetFromTab(currentEditTabId, currentEditId);
clearForm();
closeEditor();