Rename /version endpoint to /firmware_info; add heap memory statistics to firmware data and UI.

This commit is contained in:
Kai Börnert
2026-04-27 15:46:29 +02:00
parent f0c9ed4e7f
commit c04109a76c
7 changed files with 64 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ export class Controller {
async version(): Promise<void> {
controller.progressview.addIndeterminate("version", "Getting buildVersion")
const response = await fetch(PUBLIC_URL + "/version");
const response = await fetch(PUBLIC_URL + "/firmware_info");
const json = await response.json();
const versionInfo = json as VersionInfo;
controller.progressview.removeProgress("version");
@@ -499,7 +499,7 @@ export class Controller {
waitForReboot() {
console.log("Check if controller online again")
fetch(PUBLIC_URL + "/version", {
fetch(PUBLIC_URL + "/firmware_info", {
method: "GET",
signal: AbortSignal.timeout(5000)
}).then(response => {