Add filesystem size to esp8266 GUI

This commit is contained in:
Theo Arends 2023-05-07 17:25:18 +02:00
parent 519ea557c7
commit da5396a080
29 changed files with 41 additions and 2 deletions

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Terugval onderwerp"
#define D_FALSE "Onwaar"
#define D_FILE "Lêer"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Vloeitempo"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Резервна тема"
#define D_FALSE "Невярно"
#define D_FILE "Файл"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Дебит"
#define D_FRAGMENTATION "фраг." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Кадъра в секунда"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Tema de recuperació"
#define D_FALSE "Fals"
#define D_FILE "Arxiu"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Cabal"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Záložní topic"
#define D_FALSE "Nepravda"
#define D_FILE "Soubor"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback-Topic"
#define D_FALSE "falsch"
#define D_FILE "Datei"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Durchflussmenge"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Topic"
#define D_FALSE "Ψευδές"
#define D_FILE "Αρχείο"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Topic"
#define D_FALSE "False"
#define D_FILE "File"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "FallbackTopic"
#define D_FALSE "Falso"
#define D_FILE "Archivo"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Caudal"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Topic de secours"
#define D_FALSE "Faux"
#define D_FILE "Fichier"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Débit"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Fréq. image"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Underwerp"
#define D_FALSE "Falsk"
#define D_FILE "Bestân"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Stromingssnelheid"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "נושא לחזרה"
#define D_FALSE "שגוי"
#define D_FILE "קובץ"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "fallback topik"
#define D_FALSE "Hamis"
#define D_FILE "Fájl"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Átfolyás ráta"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Topic Riserva"
#define D_FALSE "Falso"
#define D_FILE "File"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flusso dati"
#define D_FRAGMENTATION "framm." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frequenza fotogrammi"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Topic"
#define D_FALSE "거짓"
#define D_FILE "파일"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Topic"
#define D_FALSE "Onwaar"
#define D_FILE "Bestand"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Debiet"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Temat zastępczy"
#define D_FALSE "Fałsz"
#define D_FILE "Plik"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Przepływ"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Tópico para retornar"
#define D_FALSE "Falso"
#define D_FILE "Arquivo"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Quociente de vazão"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Tópico de contingência"
#define D_FALSE "Falso"
#define D_FILE "Ficheiro"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Taxa de Fluxo"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Listă de rezervă"
#define D_FALSE "Fals"
#define D_FILE "Fișier"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Debit"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Топик обратной связи"
#define D_FALSE "Ложно"
#define D_FILE "Файл"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -80,6 +80,7 @@
#define D_CURRENT "Prúd" // As in Voltage and Current
#define D_CURRENT_NEUTRAL "Current Neutral"
#define D_DATA "Dáta"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_DARKLIGHT "Tmavý"
#define D_DEBUG "Debug"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Reservämne"
#define D_FALSE "Falskt"
#define D_FILE "Fil"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Geri İletim Topiği"
#define D_FALSE "False"
#define D_FILE "Dosya"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Запасний топік"
#define D_FALSE "Ні"
#define D_FILE "Файл"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Потік"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Topic"
#define D_FALSE "Sai"
#define D_FILE "Tệp"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Tốc độ dòng"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "回退主题"
#define D_FALSE "False"
#define D_FILE "文件:"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "Flow rate"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -104,6 +104,7 @@
#define D_FALLBACK_TOPIC "Fallback Topic"
#define D_FALSE "假"
#define D_FILE "檔案:"
#define D_FILE_SYSTEM_SIZE "File System Size"
#define D_FLOW_RATE "流量"
#define D_FRAGMENTATION "frag." // Lower case abbreviated version of fragmentation used in "memory fragmentation"
#define D_FRAME_RATE "Frame rate"

View File

@ -2508,9 +2508,13 @@ void HandleInformation(void)
}
}
esp_partition_iterator_release(it);
#else // ESP32
#else // not ESP32
WSContentSend_PD(PSTR("}1" D_FREE_MEMORY "}2%1_f KB"), &freemem);
#endif // ESP32
#ifdef USE_UFILESYS
WSContentSend_P(PSTR("}1}2 ")); // Empty line
WSContentSend_P(PSTR("}1" D_FILE_SYSTEM_SIZE "}2%d KB"), UfsSize());
#endif // USE_UFILESYS
#endif // ESP32
WSContentSend_P(PSTR("</td></tr></table>"));
WSContentSend_P(HTTP_SCRIPT_INFO_END);

View File

@ -267,6 +267,14 @@ uint32_t UfsInfo(uint32_t sel, uint32_t type) {
return result / 1024;
}
uint32_t UfsSize(void) {
return UfsInfo(0, ufs_dir == 2 ? 1:0);
}
uint32_t UfsFree(void) {
return UfsInfo(1, ufs_dir == 2 ? 1:0);
}
#if USE_LONG_FILE_NAMES>0
#undef REJCMPL
#define REJCMPL 6