Skip to content

Commit

Permalink
added debug info
Browse files Browse the repository at this point in the history
(cherry picked from commit f93f22c81f88339566b8ec7f6f049353bcc19572)
  • Loading branch information
mathieucarbou committed Jul 12, 2024
1 parent 2bca681 commit 697a7d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions include/YaSolRWebsite.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ namespace YaSolR {
Card _configRestore = Card(&dashboard, FILE_UPLOAD_CARD, YASOLR_LBL_080, ".txt");
Card _otaLink = Card(&dashboard, LINK_CARD, YASOLR_LBL_081);
Card _restart = Card(&dashboard, PUSH_BUTTON_CARD, YASOLR_LBL_082);
Card _debugMode = Card(&dashboard, BUTTON_CARD, YASOLR_LBL_083);
Card _consoleLink = Card(&dashboard, LINK_CARD, YASOLR_LBL_084);
Card _energyReset = Card(&dashboard, PUSH_BUTTON_CARD, YASOLR_LBL_085);
Card _reset = Card(&dashboard, PUSH_BUTTON_CARD, YASOLR_LBL_086);
Card _debugMode = Card(&dashboard, BUTTON_CARD, YASOLR_LBL_083);
Card _consoleLink = Card(&dashboard, LINK_CARD, YASOLR_LBL_084);
Card _debugInfo = Card(&dashboard, LINK_CARD, YASOLR_LBL_178);

Tab _networkConfigTab = Tab(&dashboard, "\u2728 " YASOLR_LBL_087);
Card _adminPwd = Card(&dashboard, PASSWORD_CARD, YASOLR_LBL_088);
Expand Down
2 changes: 1 addition & 1 deletion include/i18n/en.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
#define YASOLR_LBL_175 "I Term (W)"
#define YASOLR_LBL_176 "D Term (W)"
#define YASOLR_LBL_177 "Chart Reset"
#define YASOLR_LBL_178
#define YASOLR_LBL_178 "Debug Information"
#define YASOLR_LBL_179
#define YASOLR_LBL_180
#define YASOLR_LBL_181
Expand Down
2 changes: 1 addition & 1 deletion include/i18n/fr.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
#define YASOLR_LBL_175 "Terme I (W)"
#define YASOLR_LBL_176 "Terme D (W)"
#define YASOLR_LBL_177 "Réinitialisation graphique"
#define YASOLR_LBL_178
#define YASOLR_LBL_178 "Informations de debug"
#define YASOLR_LBL_179
#define YASOLR_LBL_180
#define YASOLR_LBL_181
Expand Down
2 changes: 2 additions & 0 deletions src/Website.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ void YaSolR::WebsiteClass::initLayout() {
_configBackup.setTab(&_managementTab);
_configRestore.setTab(&_managementTab);
_consoleLink.setTab(&_managementTab);
_debugInfo.setTab(&_managementTab);
_debugMode.setTab(&_managementTab);
_otaLink.setTab(&_managementTab);
_reset.setTab(&_managementTab);
Expand Down Expand Up @@ -483,6 +484,7 @@ void YaSolR::WebsiteClass::initCards() {
_configBackup.update("/api/config/backup");
_configRestore.update("/api/config/restore");
_consoleLink.update("/console");
_debugInfo.update("/api/debug");
_debugMode.update(config.getBool(KEY_ENABLE_DEBUG));
_otaLink.update("/update");
_energyReset.setDisplay(config.getBool(KEY_ENABLE_JSY) || config.getBool(KEY_ENABLE_OUTPUT1_PZEM) || config.getBool(KEY_ENABLE_OUTPUT2_PZEM));
Expand Down

0 comments on commit 697a7d7

Please sign in to comment.