diff --git a/src/WebApi_sysstatus.cpp b/src/WebApi_sysstatus.cpp index 5e06d0bec..6d07f2fbc 100644 --- a/src/WebApi_sysstatus.cpp +++ b/src/WebApi_sysstatus.cpp @@ -48,6 +48,7 @@ void WebApiSysstatusClass::onSystemStatus(AsyncWebServerRequest* request) root["chiprevision"] = ESP.getChipRevision(); root["chipmodel"] = ESP.getChipModel(); root["chipcores"] = ESP.getChipCores(); + root["flashsize"] = ESP.getFlashChipSize(); String reason; reason = ResetReason::get_reset_reason_verbose(0); diff --git a/webapp/src/components/HardwareInfo.vue b/webapp/src/components/HardwareInfo.vue index 34672132c..c7f342fb8 100644 --- a/webapp/src/components/HardwareInfo.vue +++ b/webapp/src/components/HardwareInfo.vue @@ -19,6 +19,13 @@ {{ $t('hardwareinfo.CpuFrequency') }} {{ systemStatus.cpufreq }} {{ $t('hardwareinfo.Mhz') }} + + {{ $t('hardwareinfo.FlashSize') }} + + {{ systemStatus.flashsize }} {{ $t('hardwareinfo.Bytes') }} + ({{ systemStatus.flashsize / 1024 / 1024 }} {{ $t('hardwareinfo.MegaBytes') }}) + + diff --git a/webapp/src/locales/de.json b/webapp/src/locales/de.json index 591259e8c..615bbc840 100644 --- a/webapp/src/locales/de.json +++ b/webapp/src/locales/de.json @@ -250,7 +250,10 @@ "ChipRevision": "Chip-Revision", "ChipCores": "Chip-Kerne", "CpuFrequency": "CPU-Frequenz", - "Mhz": "MHz" + "Mhz": "MHz", + "FlashSize": "Flash-Speichergröße", + "Bytes": "Bytes", + "MegaBytes": "MB" }, "memoryinfo": { "MemoryInformation": "Speicherinformationen", diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index b81c6a6b8..bde25c127 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -251,7 +251,10 @@ "ChipRevision": "Chip Revision", "ChipCores": "Chip Cores", "CpuFrequency": "CPU Frequency", - "Mhz": "MHz" + "Mhz": "MHz", + "FlashSize": "Flash Memory Size", + "Bytes": "Bytes", + "MegaBytes": "MB" }, "memoryinfo": { "MemoryInformation": "Memory Information", diff --git a/webapp/src/locales/fr.json b/webapp/src/locales/fr.json index 6b702e4b7..5e4bbca1b 100644 --- a/webapp/src/locales/fr.json +++ b/webapp/src/locales/fr.json @@ -285,7 +285,10 @@ "ChipRevision": "Révision de la puce", "ChipCores": "Nombre de cœurs", "CpuFrequency": "Fréquence du CPU", - "Mhz": "MHz" + "Mhz": "MHz", + "FlashSize": "Taille de la mémoire flash", + "Bytes": "octets", + "MegaBytes": "Mo" }, "memoryinfo": { "MemoryInformation": "Informations sur la mémoire", diff --git a/webapp/src/types/SystemStatus.ts b/webapp/src/types/SystemStatus.ts index b1c594332..f9a5b70e0 100644 --- a/webapp/src/types/SystemStatus.ts +++ b/webapp/src/types/SystemStatus.ts @@ -4,6 +4,7 @@ export interface SystemStatus { chiprevision: number; chipcores: number; cpufreq: number; + flashsize: number; // FirmwareInfo hostname: string; sdkversion: string;