diff --git a/tools/esp8266/defines.h b/tools/esp8266/defines.h index fa6ee3f4..1cbe3d88 100644 --- a/tools/esp8266/defines.h +++ b/tools/esp8266/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 5 -#define VERSION_PATCH 22 +#define VERSION_PATCH 23 //------------------------------------- diff --git a/tools/esp8266/html/api.js b/tools/esp8266/html/api.js index d628ad17..a959ed74 100644 --- a/tools/esp8266/html/api.js +++ b/tools/esp8266/html/api.js @@ -8,6 +8,15 @@ function toggle(id, hide) { elm.classList.remove('hide'); } + +function toggle(id) { + var e = document.getElementById(id); + if(!e.classList.contains("hide")) + e.classList.add("hide"); + else + e.classList.remove('hide'); +} + function getAjax(url, ptr, method="GET", json=null) { var xhr = new XMLHttpRequest(); if(xhr != null) { @@ -98,7 +107,8 @@ function link(dst, text, target=null) { var a = document.createElement('a'); var t = document.createTextNode(text); a.href = dst; - a.target = target; + if(null != target) + a.target = target; a.appendChild(t); return a; } diff --git a/tools/esp8266/html/index.html b/tools/esp8266/html/index.html index 01e21cd8..0576494c 100644 --- a/tools/esp8266/html/index.html +++ b/tools/esp8266/html/index.html @@ -7,9 +7,17 @@ -

AHOY

+
+ AhoyDTU + + + + + +
+
- - -

- Visualization
-
- Setup
-
- Webserial & Commands
-

+

Uptime:

ESP-Time:

@@ -62,10 +62,7 @@
-

Serial Console

+
+ AhoyDTU + + + + + +
+
+

Serial Console


@@ -54,13 +63,24 @@
-

Setup

+
ERASE SETTINGS (not WiFi) @@ -139,11 +147,9 @@
-

Update

+
Make sure that you have noted all your settings before starting an update. New versions may have changed their memory layout which can break your existing settings.
@@ -21,17 +29,36 @@
diff --git a/tools/esp8266/html/visualization.html b/tools/esp8266/html/visualization.html index 8779c42e..3d12e006 100644 --- a/tools/esp8266/html/visualization.html +++ b/tools/esp8266/html/visualization.html @@ -8,20 +8,42 @@ -

AHOY

+

Every seconds the values are updated