diff --git a/src/WebApi_sysstatus.cpp b/src/WebApi_sysstatus.cpp index 9b317f9..782e1f2 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 3467213..c7f342f 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 83f640e..f32afae 100644 --- a/webapp/src/locales/de.json +++ b/webapp/src/locales/de.json @@ -202,7 +202,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 4179227..dec2012 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -202,7 +202,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 c60a552..9995fd6 100644 --- a/webapp/src/locales/fr.json +++ b/webapp/src/locales/fr.json @@ -202,7 +202,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 8bacf69..0a35ec0 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;