From 8e28011f13b5973bc38b0a0b9e22552a6b2c2c89 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Mon, 12 Feb 2018 10:57:59 -0600 Subject: [PATCH 1/3] fix some html bugs --- strings_en.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/strings_en.h b/strings_en.h index dcc13c9..002323a 100644 --- a/strings_en.h +++ b/strings_en.h @@ -42,7 +42,7 @@ const char HTTP_STYLE[] PROGMEM = ""; const char HTTP_HELP[] PROGMEM = @@ -95,8 +95,8 @@ const char HTTP_JS[] PROGMEM = const char HTTP_INFO_esphead[] PROGMEM = "

esp8266


"; const char HTTP_INFO_wifihead[] PROGMEM = "

WiFi


"; -const char HTTP_INFO_uptime[] PROGMEM = "
Uptime
{1} Mins {2} Secs
"; -const char HTTP_INFO_chipid[] PROGMEM = "
Chip ID
{1}
"; +const char HTTP_INFO_uptime[] PROGMEM = "
Uptime
{1} Mins {2} Secs
"; +const char HTTP_INFO_chipid[] PROGMEM = "
Chip ID
{1}
"; const char HTTP_INFO_fchipid[] PROGMEM = "
Flash Chip ID
{1}
"; const char HTTP_INFO_idesize[] PROGMEM = "
IDE Flash Size
{1} bytes
"; const char HTTP_INFO_flashsize[] PROGMEM = "
Actual Flash Size
{1} bytes
"; From 46929e0ee6e7df7ab1b5d6ff81eeee9399fb77df Mon Sep 17 00:00:00 2001 From: Shawn A Date: Mon, 12 Feb 2018 10:59:50 -0600 Subject: [PATCH 2/3] change uptime --- WiFiManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 3034a9d..4ee0e90 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -971,8 +971,8 @@ String WiFiManager::getInfoData(String id){ else if(id=="uptime"){ // subject to rollover! p = FPSTR(HTTP_INFO_uptime); - p.replace("{1}",(String)(system_get_time() / 1000000 / 60)); - p.replace("{2}",(String)((system_get_time() / 1000000)%60)); + p.replace("{1}",(String)(millis() / 1000 / 60)); + p.replace("{2}",(String)((millis() / 1000)%60)); } else if(id=="chipid"){ p = FPSTR(HTTP_INFO_chipid); From 4424e66222538bf8dc0847ef847010146820aa42 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Mon, 12 Feb 2018 12:31:16 -0600 Subject: [PATCH 3/3] infohelp align html --- extras/WiFiManager.template.html | 27 +++++++++++++++++++++++++++ strings_en.h | 1 + 2 files changed, 28 insertions(+) diff --git a/extras/WiFiManager.template.html b/extras/WiFiManager.template.html index 09ae94b..1609f5f 100644 --- a/extras/WiFiManager.template.html +++ b/extras/WiFiManager.template.html @@ -131,6 +131,9 @@ dd { margin: 0; padding: 0 0 0.5em 0; } +td { + vertical-align: top; +} @@ -203,11 +206,35 @@ dd {
Flash Chip ID
1234556
IDE Flash Size
4194304 bytes
Real Flash Size
4194304 bytes
+
Empty
Soft AP IP
192.168.4.1
Soft AP MAC
00:00:00:00:00:00
Station MAC
00:00:00:00:00:00
+ +

Available Pages


+ + + + + + + + + + + + + + + + + + +
PageFunction
/Menu page.
/wifiShow WiFi scan results and enter WiFi configuration.(/0wifi noscan)
/wifisaveSave WiFi configuration information and configure device. Needs variables supplied.
/closeClose the configuration server and configuration WiFi network.
/iInformation page
/exitExit Config Portal, configportal will close
/rReboot the device
/eraseErase WiFi configuration and reboot Device. Device will not reconnect to a network until new WiFi configuration data is entered.
+

More information about WiFiManager at https://github.com/tzapu/WiFiManager.; + diff --git a/strings_en.h b/strings_en.h index 002323a..3767942 100644 --- a/strings_en.h +++ b/strings_en.h @@ -43,6 +43,7 @@ const char HTTP_STYLE[] PROGMEM = ""; const char HTTP_HELP[] PROGMEM =