mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
rename setting to "max buffer size", show used buffer in info
This commit is contained in:
@@ -3,7 +3,6 @@ import type { Translation } from '../i18n-types';
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
const de: Translation = {
|
const de: Translation = {
|
||||||
// ...en as Translation,
|
|
||||||
LANGUAGE: 'Sprache',
|
LANGUAGE: 'Sprache',
|
||||||
RETRY: 'Neuer Versuch',
|
RETRY: 'Neuer Versuch',
|
||||||
LOADING: 'Laden',
|
LOADING: 'Laden',
|
||||||
@@ -205,7 +204,7 @@ const de: Translation = {
|
|||||||
FLASH: 'Flash Speicher (Größe / Geschwindigkeit)',
|
FLASH: 'Flash Speicher (Größe / Geschwindigkeit)',
|
||||||
APPSIZE: 'Programm (Genutzt / Frei)',
|
APPSIZE: 'Programm (Genutzt / Frei)',
|
||||||
FILESYSTEM: 'Dateisystem (Genutzt / Frei)',
|
FILESYSTEM: 'Dateisystem (Genutzt / Frei)',
|
||||||
BUFFER_SIZE: 'Puffergröße',
|
BUFFER_SIZE: 'max. Puffergröße',
|
||||||
COMPACT: 'Kompakte Darstellung',
|
COMPACT: 'Kompakte Darstellung',
|
||||||
ENABLE_OTA: 'OTA Updates verwenden',
|
ENABLE_OTA: 'OTA Updates verwenden',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Herunterladen der individuellen Entitätsanpassungen',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Herunterladen der individuellen Entitätsanpassungen',
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const en: Translation = {
|
|||||||
FLASH: 'Flash Chip (Size / Speed)',
|
FLASH: 'Flash Chip (Size / Speed)',
|
||||||
APPSIZE: 'Application (Used / Free)',
|
APPSIZE: 'Application (Used / Free)',
|
||||||
FILESYSTEM: 'File System (Used / Free)',
|
FILESYSTEM: 'File System (Used / Free)',
|
||||||
BUFFER_SIZE: 'Buffer Size',
|
BUFFER_SIZE: 'Max Buffer Size',
|
||||||
COMPACT: 'Compact',
|
COMPACT: 'Compact',
|
||||||
ENABLE_OTA: 'Enable OTA Updates',
|
ENABLE_OTA: 'Enable OTA Updates',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Download the entity customizations',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Download the entity customizations',
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const fr: Translation = {
|
|||||||
FLASH: 'Flash Chip (Taille / Vitesse)',
|
FLASH: 'Flash Chip (Taille / Vitesse)',
|
||||||
APPSIZE: 'Application (Utilisée / Libre)',
|
APPSIZE: 'Application (Utilisée / Libre)',
|
||||||
FILESYSTEM: 'File System (Utilisée / Libre)',
|
FILESYSTEM: 'File System (Utilisée / Libre)',
|
||||||
BUFFER_SIZE: 'Taille du buffer',
|
BUFFER_SIZE: 'Max taille du buffer',
|
||||||
COMPACT: 'Compact',
|
COMPACT: 'Compact',
|
||||||
ENABLE_OTA: 'Activer les updates OTA',
|
ENABLE_OTA: 'Activer les updates OTA',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Télécharger les personnalisations d\'entités',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Télécharger les personnalisations d\'entités',
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const nl: Translation = {
|
|||||||
FLASH: 'Flash Chip (Size / Speed)',
|
FLASH: 'Flash Chip (Size / Speed)',
|
||||||
APPSIZE: 'Application (Used / Free)',
|
APPSIZE: 'Application (Used / Free)',
|
||||||
FILESYSTEM: 'File System (Used / Free)',
|
FILESYSTEM: 'File System (Used / Free)',
|
||||||
BUFFER_SIZE: 'Buffer Size',
|
BUFFER_SIZE: 'Max Buffer Size',
|
||||||
COMPACT: 'Compact',
|
COMPACT: 'Compact',
|
||||||
ENABLE_OTA: 'Acitveer OTA Updates',
|
ENABLE_OTA: 'Acitveer OTA Updates',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Download alle custom instellingen',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Download alle custom instellingen',
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const no: Translation = {
|
|||||||
FLASH: 'Flash Chip (Størrelse / Hastighet)',
|
FLASH: 'Flash Chip (Størrelse / Hastighet)',
|
||||||
APPSIZE: 'Applikasjon (Brukt / Ledig)',
|
APPSIZE: 'Applikasjon (Brukt / Ledig)',
|
||||||
FILESYSTEM: 'File System (Brukt / Ledig)',
|
FILESYSTEM: 'File System (Brukt / Ledig)',
|
||||||
BUFFER_SIZE: 'Buffer Størrelse',
|
BUFFER_SIZE: 'Max Buffer Størrelse',
|
||||||
COMPACT: 'Komprimere',
|
COMPACT: 'Komprimere',
|
||||||
ENABLE_OTA: 'Aktiviser OTA oppdateringer',
|
ENABLE_OTA: 'Aktiviser OTA oppdateringer',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Last ned objektstilpasninger',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Last ned objektstilpasninger',
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const pl: BaseTranslation = {
|
|||||||
FLASH: 'Flash (rozmiar / taktowanie)',
|
FLASH: 'Flash (rozmiar / taktowanie)',
|
||||||
APPSIZE: 'Aplikacja (wykorzystane / wolne)',
|
APPSIZE: 'Aplikacja (wykorzystane / wolne)',
|
||||||
FILESYSTEM: 'System plików (wykorzystane / wolne)',
|
FILESYSTEM: 'System plików (wykorzystane / wolne)',
|
||||||
BUFFER_SIZE: 'Rozmiar bufora',
|
BUFFER_SIZE: 'maksymalny rozmiar bufora',
|
||||||
COMPACT: 'Kompaktowy',
|
COMPACT: 'Kompaktowy',
|
||||||
ENABLE_OTA: 'Aktywuj aktualizacje OTA',
|
ENABLE_OTA: 'Aktywuj aktualizacje OTA',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Pobierz personalizacje',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Pobierz personalizacje',
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ const se: Translation = {
|
|||||||
FLASH: 'Flashminne (Storlek / Hastighet)',
|
FLASH: 'Flashminne (Storlek / Hastighet)',
|
||||||
APPSIZE: 'Applikationer (Använt / Ledigt)',
|
APPSIZE: 'Applikationer (Använt / Ledigt)',
|
||||||
FILESYSTEM: 'Filsystem (Använt / Ledigt)',
|
FILESYSTEM: 'Filsystem (Använt / Ledigt)',
|
||||||
BUFFER_SIZE: 'Bufferstorlek',
|
BUFFER_SIZE: 'Max Bufferstorlek',
|
||||||
COMPACT: 'Komprimera',
|
COMPACT: 'Komprimera',
|
||||||
ENABLE_OTA: 'Aktivera OTA-uppdateringar',
|
ENABLE_OTA: 'Aktivera OTA-uppdateringar',
|
||||||
DOWNLOAD_CUSTOMIZATION_TEXT: 'Ladda ner entitetsanpassningar',
|
DOWNLOAD_CUSTOMIZATION_TEXT: 'Ladda ner entitetsanpassningar',
|
||||||
|
|||||||
@@ -1265,7 +1265,8 @@ bool System::command_info(const char * value, const int8_t id, JsonObject & outp
|
|||||||
node["enum format"] = settings.enum_format;
|
node["enum format"] = settings.enum_format;
|
||||||
node["analog enabled"] = settings.analog_enabled;
|
node["analog enabled"] = settings.analog_enabled;
|
||||||
node["telnet enabled"] = settings.telnet_enabled;
|
node["telnet enabled"] = settings.telnet_enabled;
|
||||||
node["web log buffer"] = settings.weblog_buffer;
|
node["max web log buffer"] = settings.weblog_buffer;
|
||||||
|
node["web log buffered"] = EMSESP::webLogService.num_log_messages();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Devices - show EMS devices if we have any
|
// Devices - show EMS devices if we have any
|
||||||
|
|||||||
@@ -74,6 +74,10 @@ void WebLogService::log_level(uuid::log::Level level) {
|
|||||||
uuid::log::Logger::register_handler(this, level);
|
uuid::log::Logger::register_handler(this, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t WebLogService::num_log_messages() const {
|
||||||
|
return log_messages_.size();
|
||||||
|
}
|
||||||
|
|
||||||
size_t WebLogService::maximum_log_messages() const {
|
size_t WebLogService::maximum_log_messages() const {
|
||||||
return maximum_log_messages_;
|
return maximum_log_messages_;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ class WebLogService : public uuid::log::Handler {
|
|||||||
uuid::log::Level log_level() const;
|
uuid::log::Level log_level() const;
|
||||||
void log_level(uuid::log::Level level);
|
void log_level(uuid::log::Level level);
|
||||||
size_t maximum_log_messages() const;
|
size_t maximum_log_messages() const;
|
||||||
|
size_t num_log_messages() const;
|
||||||
void maximum_log_messages(size_t count);
|
void maximum_log_messages(size_t count);
|
||||||
bool compact() const;
|
bool compact() const;
|
||||||
void compact(bool compact);
|
void compact(bool compact);
|
||||||
|
|||||||
Reference in New Issue
Block a user