mirror of https://github.com/arendst/Tasmota.git
Merge remote-tracking branch 'Tasmota/development' into development
This commit is contained in:
commit
381ceec38e
|
@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
|
|||
- In tasmota-sensors.bin enabled support for VL53L0X and disabled TSL2561 (#11711)
|
||||
- Add HLW8012/BL0937 average pulse calculation by Alex Lovett (#11722)
|
||||
- Redesigned initial GUI wifi configuration by Adrian Scillato (#11693)
|
||||
- Redesigned GUI by moving non-configuration buttons from ``Configuration`` to new submenu ``Consoles``
|
||||
|
||||
### Fixed
|
||||
- Telegram chat id incorrect size (#11660)
|
||||
|
|
|
@ -120,6 +120,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
|
|||
- ADC range result from int to float using command ``FreqRes`` for decimal resolution selection [#11545](https://github.com/arendst/Tasmota/issues/11545)
|
||||
- Removed overtemp detection on external energy monitoring devices [#11628](https://github.com/arendst/Tasmota/issues/11628)
|
||||
- Redesigned initial GUI wifi configuration by Adrian Scillato [#11693](https://github.com/arendst/Tasmota/issues/11693)
|
||||
- Redesigned GUI by moving non-configuration buttons from ``Configuration`` to new submenu ``Consoles``
|
||||
- In tasmota-sensors.bin enabled support for VL53L0X and disabled TSL2561 [#11711](https://github.com/arendst/Tasmota/issues/11711)
|
||||
- Add HLW8012/BL0937 average pulse calculation by Alex Lovett [#11722](https://github.com/arendst/Tasmota/issues/11722)
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
# Name, Type, SubType, Offset, Size, Flags
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x1D0000,
|
||||
app1, app, ota_1, 0x1E0000, 0x1D0000,
|
||||
spiffs, data, spiffs, 0x3B0000,0x50000,
|
|
|
@ -0,0 +1,6 @@
|
|||
# Name, Type, SubType, Offset, Size, Flags
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x2F0000,
|
||||
app1, app, ota_1, 0x300000, 0x2F0000,
|
||||
spiffs, data, spiffs, 0x5F0000,0xA10000,
|
|
|
@ -10,7 +10,7 @@ board = esp32dev
|
|||
board_build.filesystem = ${common.board_build.filesystem}
|
||||
custom_unpack_dir = ${common.custom_unpack_dir}
|
||||
board_build.ldscript = esp32_out.ld
|
||||
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
||||
board_build.partitions = esp32_partition_app1856k_spiffs320k.csv
|
||||
board_build.flash_mode = ${common.board_build.flash_mode}
|
||||
board_build.f_flash = ${common.board_build.f_flash}
|
||||
board_build.f_cpu = ${common.board_build.f_cpu}
|
||||
|
|
|
@ -50,7 +50,7 @@ board_build.f_cpu = 240000000L
|
|||
board_build.flash_mode = qio
|
||||
board_build.f_flash = 80000000L
|
||||
upload_speed = 2000000
|
||||
board_build.partitions = esp32_partition_app1984k_spiffs12M.csv
|
||||
board_build.partitions = esp32_partition_app2944k_spiffs10M.csv
|
||||
build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -lc-psram-workaround -lm-psram-workaround -DFIRMWARE_ODROID_GO
|
||||
lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display
|
||||
|
||||
|
@ -61,7 +61,7 @@ board_build.f_cpu = 240000000L
|
|||
board_build.flash_mode = qio
|
||||
board_build.f_flash = 80000000L
|
||||
upload_speed = 2000000
|
||||
board_build.partitions = esp32_partition_app1984k_spiffs12M.csv
|
||||
board_build.partitions = esp32_partition_app2944k_spiffs10M.csv
|
||||
build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -lc-psram-workaround -lm-psram-workaround -DFIRMWARE_M5STACK_CORE2
|
||||
lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display, lib/lib_audio
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Konfigurasie"
|
||||
#define D_INFORMATION "Inligting"
|
||||
#define D_FIRMWARE_UPGRADE "Firmware-opgradering"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konsole"
|
||||
#define D_CONFIRM_RESTART "Bevestig weer te begin"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Конфигурация"
|
||||
#define D_INFORMATION "Информация"
|
||||
#define D_FIRMWARE_UPGRADE "Обновяване на фърмуера"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Конзола"
|
||||
#define D_CONFIRM_RESTART "Потвърдете рестартирането"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Nastavení"
|
||||
#define D_INFORMATION "Informace"
|
||||
#define D_FIRMWARE_UPGRADE "Aktualizace firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konzole"
|
||||
#define D_CONFIRM_RESTART "Potvrzení restartu"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Einstellungen"
|
||||
#define D_INFORMATION "Informationen"
|
||||
#define D_FIRMWARE_UPGRADE "Firmware Update"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konsole"
|
||||
#define D_CONFIRM_RESTART "Wirklich neustarten?"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Ρυθμίσεις"
|
||||
#define D_INFORMATION "Πληροφορίες"
|
||||
#define D_FIRMWARE_UPGRADE "Αναβάθμιση"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Κονσόλα"
|
||||
#define D_CONFIRM_RESTART "Επιβεβαίωση επανεκκίνησης"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configuration"
|
||||
#define D_INFORMATION "Information"
|
||||
#define D_FIRMWARE_UPGRADE "Firmware Upgrade"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Console"
|
||||
#define D_CONFIRM_RESTART "Confirm Restart"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configuración"
|
||||
#define D_INFORMATION "Información"
|
||||
#define D_FIRMWARE_UPGRADE "Actualizar Firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Consola"
|
||||
#define D_CONFIRM_RESTART "Confirmar Reinicio"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configuration"
|
||||
#define D_INFORMATION "Informations"
|
||||
#define D_FIRMWARE_UPGRADE "Mise à jour du Firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Console"
|
||||
#define D_CONFIRM_RESTART "Confirmer redémarrage"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Konfiguraasje"
|
||||
#define D_INFORMATION "Ynformaasje"
|
||||
#define D_FIRMWARE_UPGRADE "Opwurdearje"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konsole"
|
||||
#define D_CONFIRM_RESTART "Befestigje opnij starte"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "הגדרות"
|
||||
#define D_INFORMATION "מידע"
|
||||
#define D_FIRMWARE_UPGRADE "שדרוג קושחה"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "קונסול"
|
||||
#define D_CONFIRM_RESTART "אישור הפעלה מחדש"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Beállítások"
|
||||
#define D_INFORMATION "Információ"
|
||||
#define D_FIRMWARE_UPGRADE "Firmware frissítés"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konzol"
|
||||
#define D_CONFIRM_RESTART "Biztosan újraindítsam a modult?"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Impostazioni"
|
||||
#define D_INFORMATION "Informazioni"
|
||||
#define D_FIRMWARE_UPGRADE "Aggiorna firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Console"
|
||||
#define D_CONFIRM_RESTART "Conferma riavvio"
|
||||
|
||||
|
@ -267,8 +268,8 @@
|
|||
#define D_CONFIGURE_OTHER "Altre impostazioni"
|
||||
#define D_CONFIRM_RESET_CONFIGURATION "Conferma ripristino impostazioni"
|
||||
#define D_RESET_CONFIGURATION "Impostazioni predefinite"
|
||||
#define D_BACKUP_CONFIGURATION "Salva impostazioni"
|
||||
#define D_RESTORE_CONFIGURATION "Carica impostazioni"
|
||||
#define D_BACKUP_CONFIGURATION "Backup impostazioni"
|
||||
#define D_RESTORE_CONFIGURATION "Ripristino impostazioni"
|
||||
#define D_MAIN_MENU "Menu principale"
|
||||
|
||||
#define D_MODULE_PARAMETERS "Parametri modulo"
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "설정 메뉴"
|
||||
#define D_INFORMATION "정보"
|
||||
#define D_FIRMWARE_UPGRADE "펌웨어 업그레이드"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "콘솔"
|
||||
#define D_CONFIRM_RESTART "재시작"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configuratie"
|
||||
#define D_INFORMATION "Informatie"
|
||||
#define D_FIRMWARE_UPGRADE "Opwaarderen"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Console"
|
||||
#define D_CONFIRM_RESTART "Bevestig herstart"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Konfiguracja"
|
||||
#define D_INFORMATION "Informacje"
|
||||
#define D_FIRMWARE_UPGRADE "Aktualizacja oprogramowania"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konsola"
|
||||
#define D_CONFIRM_RESTART "Potwierdź restart"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configuração"
|
||||
#define D_INFORMATION "Informação"
|
||||
#define D_FIRMWARE_UPGRADE "Atualização de firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Console"
|
||||
#define D_CONFIRM_RESTART "Confirmar o reinicio"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configuração"
|
||||
#define D_INFORMATION "Informação"
|
||||
#define D_FIRMWARE_UPGRADE "Atualização de Firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Consola"
|
||||
#define D_CONFIRM_RESTART "Confirmar o reinício"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Configurație"
|
||||
#define D_INFORMATION "Informație"
|
||||
#define D_FIRMWARE_UPGRADE "Actualizare Firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Consolă"
|
||||
#define D_CONFIRM_RESTART "Confirmare Restart"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Конфигурация"
|
||||
#define D_INFORMATION "Информация"
|
||||
#define D_FIRMWARE_UPGRADE "Обновление прошивки"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Консоль"
|
||||
#define D_CONFIRM_RESTART "Подтвердить перезагрузку"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Nastavenia"
|
||||
#define D_INFORMATION "Informácie"
|
||||
#define D_FIRMWARE_UPGRADE "Aktualizácia firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konzola"
|
||||
#define D_CONFIRM_RESTART "Potvrdenie reštartu"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Konfigurering"
|
||||
#define D_INFORMATION "Information"
|
||||
#define D_FIRMWARE_UPGRADE "Uppgradera firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konsol"
|
||||
#define D_CONFIRM_RESTART "Bekräfta omstart"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Konfigürasyon"
|
||||
#define D_INFORMATION "Bilgi"
|
||||
#define D_FIRMWARE_UPGRADE "Cihaz yazılımını Güncelle"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Konsol"
|
||||
#define D_CONFIRM_RESTART "Yeniden Başlatmayı Onayla"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Конфігурація"
|
||||
#define D_INFORMATION "Інформація"
|
||||
#define D_FIRMWARE_UPGRADE "Оновлення прошивки"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Консоль"
|
||||
#define D_CONFIRM_RESTART "Підтвердити перезавантаження"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "Cấu hình"
|
||||
#define D_INFORMATION "Thông tin"
|
||||
#define D_FIRMWARE_UPGRADE "Nâng cấp Firmware"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "Dòng Lệnh"
|
||||
#define D_CONFIRM_RESTART "Xác nhận khởi động lại"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "设置"
|
||||
#define D_INFORMATION "信息"
|
||||
#define D_FIRMWARE_UPGRADE "固件升级"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "控制台"
|
||||
#define D_CONFIRM_RESTART "确认重启"
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
#define D_CONFIGURATION "設定"
|
||||
#define D_INFORMATION "資訊"
|
||||
#define D_FIRMWARE_UPGRADE "韌體升級"
|
||||
#define D_MANAGEMENT "Consoles"
|
||||
#define D_CONSOLE "控制台"
|
||||
#define D_CONFIRM_RESTART "確認重新啟動"
|
||||
|
||||
|
|
|
@ -310,7 +310,7 @@ enum XsnsFunctions {FUNC_SETTINGS_OVERRIDE, FUNC_PIN_STATE, FUNC_MODULE_INIT, FU
|
|||
FUNC_SET_POWER, FUNC_SET_DEVICE_POWER, FUNC_SHOW_SENSOR, FUNC_ANY_KEY,
|
||||
FUNC_ENERGY_EVERY_SECOND, FUNC_ENERGY_RESET,
|
||||
FUNC_RULES_PROCESS, FUNC_SERIAL, FUNC_FREE_MEM, FUNC_BUTTON_PRESSED,
|
||||
FUNC_WEB_ADD_BUTTON, FUNC_WEB_ADD_MANAGEMENT_BUTTON, FUNC_WEB_ADD_MAIN_BUTTON,
|
||||
FUNC_WEB_ADD_BUTTON, FUNC_WEB_ADD_CONSOLE_BUTTON, FUNC_WEB_ADD_MANAGEMENT_BUTTON, FUNC_WEB_ADD_MAIN_BUTTON,
|
||||
FUNC_WEB_ADD_HANDLER, FUNC_SET_CHANNELS, FUNC_SET_SCHEME, FUNC_HOTPLUG_SCAN,
|
||||
FUNC_DEVICE_GROUP_ITEM };
|
||||
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
#define USE_SCRIPT_GLOBVARS
|
||||
#define USE_SCRIPT_SUB_COMMAND
|
||||
#define USE_ANGLE_FUNC
|
||||
#define USE_SCRIPT_WEB_DISPLAY
|
||||
#define SCRIPT_FULL_WEBPAGE
|
||||
#define SCRIPT_GET_HTTPS_JP
|
||||
#define USE_GOOGLE_CHARTS
|
||||
|
|
|
@ -361,16 +361,19 @@ const char HTTP_DEVICE_STATE[] PROGMEM = "<td style='width:%d%%;text-align:cente
|
|||
|
||||
enum ButtonTitle {
|
||||
BUTTON_RESTART, BUTTON_RESET_CONFIGURATION,
|
||||
BUTTON_MAIN, BUTTON_CONFIGURATION, BUTTON_INFORMATION, BUTTON_FIRMWARE_UPGRADE, BUTTON_CONSOLE,
|
||||
BUTTON_MODULE, BUTTON_WIFI, BUTTON_LOGGING, BUTTON_OTHER, BUTTON_TEMPLATE, BUTTON_BACKUP, BUTTON_RESTORE };
|
||||
BUTTON_MAIN, BUTTON_CONFIGURATION, BUTTON_INFORMATION, BUTTON_FIRMWARE_UPGRADE, BUTTON_MANAGEMENT,
|
||||
BUTTON_MODULE, BUTTON_WIFI, BUTTON_LOGGING, BUTTON_OTHER, BUTTON_TEMPLATE, BUTTON_BACKUP, BUTTON_RESTORE,
|
||||
BUTTON_CONSOLE };
|
||||
const char kButtonTitle[] PROGMEM =
|
||||
D_RESTART "|" D_RESET_CONFIGURATION "|"
|
||||
D_MAIN_MENU "|" D_CONFIGURATION "|" D_INFORMATION "|" D_FIRMWARE_UPGRADE "|" D_CONSOLE "|"
|
||||
D_CONFIGURE_MODULE "|" D_CONFIGURE_WIFI"|" D_CONFIGURE_LOGGING "|" D_CONFIGURE_OTHER "|" D_CONFIGURE_TEMPLATE "|" D_BACKUP_CONFIGURATION "|" D_RESTORE_CONFIGURATION;
|
||||
D_MAIN_MENU "|" D_CONFIGURATION "|" D_INFORMATION "|" D_FIRMWARE_UPGRADE "|" D_MANAGEMENT "|"
|
||||
D_CONFIGURE_MODULE "|" D_CONFIGURE_WIFI"|" D_CONFIGURE_LOGGING "|" D_CONFIGURE_OTHER "|" D_CONFIGURE_TEMPLATE "|" D_BACKUP_CONFIGURATION "|" D_RESTORE_CONFIGURATION "|"
|
||||
D_CONSOLE;
|
||||
const char kButtonAction[] PROGMEM =
|
||||
".|rt|"
|
||||
".|cn|in|up|cs|"
|
||||
"md|wi|lg|co|tp|dl|rs";
|
||||
".|cn|in|up|mn|"
|
||||
"md|wi|lg|co|tp|dl|rs|"
|
||||
"cs";
|
||||
const char kButtonConfirm[] PROGMEM = D_CONFIRM_RESTART "|" D_CONFIRM_RESET_CONFIGURATION;
|
||||
|
||||
enum CTypes { CT_HTML, CT_PLAIN, CT_XML, CT_STREAM, CT_APP_JSON, CT_APP_STREAM };
|
||||
|
@ -452,6 +455,7 @@ const WebServerDispatch_t WebServerDispatch[] PROGMEM = {
|
|||
{ "u1", HTTP_ANY, HandleUpgradeFirmwareStart }, // OTA
|
||||
{ "u2", HTTP_OPTIONS, HandlePreflightRequest },
|
||||
{ "u3", HTTP_ANY, HandleUploadDone },
|
||||
{ "mn", HTTP_GET, HandleManagement },
|
||||
{ "cs", HTTP_GET, HandleConsole },
|
||||
{ "cs", HTTP_OPTIONS, HandlePreflightRequest },
|
||||
{ "cm", HTTP_ANY, HandleHttpCommand },
|
||||
|
@ -952,6 +956,19 @@ void HandleWifiLogin(void)
|
|||
WSContentStop();
|
||||
}
|
||||
|
||||
uint32_t WebUseManagementSubmenu(void) {
|
||||
static uint32_t management_count = 0;
|
||||
|
||||
if (!management_count) {
|
||||
XdrvMailbox.index = 1;
|
||||
XdrvCall(FUNC_WEB_ADD_CONSOLE_BUTTON);
|
||||
XsnsCall(FUNC_WEB_ADD_CONSOLE_BUTTON);
|
||||
XdrvCall(FUNC_WEB_ADD_MANAGEMENT_BUTTON);
|
||||
management_count = XdrvMailbox.index;
|
||||
}
|
||||
return management_count -1;
|
||||
}
|
||||
|
||||
uint32_t WebDeviceColumns(void) {
|
||||
const uint32_t max_columns = 8;
|
||||
|
||||
|
@ -1185,12 +1202,17 @@ void HandleRoot(void)
|
|||
if (HTTP_ADMIN == Web.state) {
|
||||
#ifdef FIRMWARE_MINIMAL
|
||||
WSContentSpaceButton(BUTTON_FIRMWARE_UPGRADE);
|
||||
WSContentButton(BUTTON_CONSOLE);
|
||||
#else
|
||||
WSContentSpaceButton(BUTTON_CONFIGURATION);
|
||||
WSContentButton(BUTTON_INFORMATION);
|
||||
WSContentButton(BUTTON_FIRMWARE_UPGRADE);
|
||||
if (!WebUseManagementSubmenu()) {
|
||||
WSContentButton(BUTTON_CONSOLE);
|
||||
} else {
|
||||
WSContentButton(BUTTON_MANAGEMENT);
|
||||
}
|
||||
#endif // Not FIRMWARE_MINIMAL
|
||||
WSContentButton(BUTTON_CONSOLE);
|
||||
WSContentButton(BUTTON_RESTART);
|
||||
}
|
||||
WSContentStop();
|
||||
|
@ -1412,9 +1434,6 @@ void HandleConfiguration(void)
|
|||
WSContentButton(BUTTON_BACKUP);
|
||||
WSContentButton(BUTTON_RESTORE);
|
||||
|
||||
WSContentSend_P(PSTR("<div></div>")); // 5px padding
|
||||
XdrvCall(FUNC_WEB_ADD_MANAGEMENT_BUTTON);
|
||||
|
||||
WSContentSpaceButton(BUTTON_MAIN);
|
||||
WSContentStop();
|
||||
}
|
||||
|
@ -2888,6 +2907,28 @@ void HandleHttpCommand(void)
|
|||
|
||||
/*-------------------------------------------------------------------------------------------*/
|
||||
|
||||
void HandleManagement(void)
|
||||
{
|
||||
if (!HttpCheckPriviledgedAccess()) { return; }
|
||||
|
||||
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP D_MANAGEMENT));
|
||||
|
||||
WSContentStart_P(PSTR(D_MANAGEMENT));
|
||||
WSContentSendStyle();
|
||||
|
||||
WSContentButton(BUTTON_CONSOLE);
|
||||
|
||||
XdrvMailbox.index = 0;
|
||||
XdrvCall(FUNC_WEB_ADD_CONSOLE_BUTTON);
|
||||
XsnsCall(FUNC_WEB_ADD_CONSOLE_BUTTON);
|
||||
|
||||
WSContentSend_P(PSTR("<div></div>")); // 5px padding
|
||||
XdrvCall(FUNC_WEB_ADD_MANAGEMENT_BUTTON);
|
||||
|
||||
WSContentSpaceButton(BUTTON_MAIN);
|
||||
WSContentStop();
|
||||
}
|
||||
|
||||
void HandleConsole(void)
|
||||
{
|
||||
if (!HttpCheckPriviledgedAccess()) { return; }
|
||||
|
@ -2903,7 +2944,7 @@ void HandleConsole(void)
|
|||
WSContentSend_P(HTTP_SCRIPT_CONSOL, Settings.web_refresh);
|
||||
WSContentSendStyle();
|
||||
WSContentSend_P(HTTP_FORM_CMND);
|
||||
WSContentSpaceButton(BUTTON_MAIN);
|
||||
WSContentSpaceButton((WebUseManagementSubmenu()) ? BUTTON_MANAGEMENT : BUTTON_MAIN);
|
||||
WSContentStop();
|
||||
}
|
||||
|
||||
|
|
|
@ -5249,7 +5249,7 @@ void HandleScriptConfiguration(void) {
|
|||
#endif //USE_SCRIPT_FATFS
|
||||
|
||||
WSContentSend_P(HTTP_SCRIPT_FORM_END);
|
||||
WSContentSpaceButton(BUTTON_CONFIGURATION);
|
||||
WSContentSpaceButton(BUTTON_MANAGEMENT);
|
||||
WSContentStop();
|
||||
}
|
||||
|
||||
|
@ -7897,8 +7897,12 @@ bool Xdrv10(uint8_t function)
|
|||
}
|
||||
break;
|
||||
#ifdef USE_WEBSERVER
|
||||
case FUNC_WEB_ADD_BUTTON:
|
||||
WSContentSend_P(HTTP_BTN_MENU_RULES);
|
||||
case FUNC_WEB_ADD_CONSOLE_BUTTON:
|
||||
if (XdrvMailbox.index) {
|
||||
XdrvMailbox.index++;
|
||||
} else {
|
||||
WSContentSend_P(HTTP_BTN_MENU_RULES);
|
||||
}
|
||||
break;
|
||||
#ifdef USE_SCRIPT_WEB_DISPLAY
|
||||
case FUNC_WEB_ADD_MAIN_BUTTON:
|
||||
|
|
|
@ -661,7 +661,7 @@ void UfsDirectory(void) {
|
|||
}
|
||||
WSContentSend_P(UFS_FORM_SDC_DIRc);
|
||||
WSContentSend_P(UFS_FORM_FILE_UPGb);
|
||||
WSContentSpaceButton(BUTTON_CONFIGURATION);
|
||||
WSContentSpaceButton(BUTTON_MANAGEMENT);
|
||||
WSContentStop();
|
||||
|
||||
Web.upload_file_type = UPL_UFSFILE;
|
||||
|
@ -1045,7 +1045,11 @@ bool Xdrv50(uint8_t function) {
|
|||
#ifdef USE_WEBSERVER
|
||||
case FUNC_WEB_ADD_MANAGEMENT_BUTTON:
|
||||
if (ufs_type) {
|
||||
WSContentSend_PD(UFS_WEB_DIR, PSTR(D_MANAGE_FILE_SYSTEM));
|
||||
if (XdrvMailbox.index) {
|
||||
XdrvMailbox.index++;
|
||||
} else {
|
||||
WSContentSend_PD(UFS_WEB_DIR, PSTR(D_MANAGE_FILE_SYSTEM));
|
||||
}
|
||||
}
|
||||
break;
|
||||
case FUNC_WEB_ADD_HANDLER:
|
||||
|
|
|
@ -636,7 +636,7 @@ void HandleBerryConsole(void)
|
|||
WSContentFlush();
|
||||
_WSContentSend(HTTP_BERRY_STYLE_CMND);
|
||||
_WSContentSend(HTTP_BERRY_FORM_CMND);
|
||||
WSContentSpaceButton(BUTTON_MAIN);
|
||||
WSContentSpaceButton(BUTTON_MANAGEMENT);
|
||||
WSContentStop();
|
||||
}
|
||||
|
||||
|
@ -721,9 +721,13 @@ bool Xdrv52(uint8_t function)
|
|||
// case FUNC_SET_POWER:
|
||||
// break;
|
||||
#ifdef USE_WEBSERVER
|
||||
case FUNC_WEB_ADD_BUTTON:
|
||||
WSContentSend_P(HTTP_BTN_BERRY_CONSOLE);
|
||||
callBerryEventDispatcher(PSTR("web_add_button"), nullptr, 0, nullptr);
|
||||
case FUNC_WEB_ADD_CONSOLE_BUTTON:
|
||||
if (XdrvMailbox.index) {
|
||||
XdrvMailbox.index++;
|
||||
} else {
|
||||
WSContentSend_P(HTTP_BTN_BERRY_CONSOLE);
|
||||
callBerryEventDispatcher(PSTR("web_add_button"), nullptr, 0, nullptr);
|
||||
}
|
||||
break;
|
||||
case FUNC_WEB_ADD_MAIN_BUTTON:
|
||||
callBerryEventDispatcher(PSTR("web_add_main_button"), nullptr, 0, nullptr);
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
esptool.py --chip esp32 --baud 2000000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader_qio_80m.bin 0x8000 partitions_spiffs_10M.bin 0xe000 boot_app0.bin 0x10000 tasmota32-core2.bin
|
|
@ -0,0 +1 @@
|
|||
esptool.py --chip esp32 --baud 2000000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader_qio_80m.bin 0x8000 partitions_spiffs_10M.bin 0xe000 boot_app0.bin 0x10000 tasmota32-odroid.bin
|
Binary file not shown.
Loading…
Reference in New Issue