diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 2ed0b47a..911915fa 100644 Binary files a/code/espurna/data/index.html.gz and b/code/espurna/data/index.html.gz differ diff --git a/code/espurna/data/password.html.gz b/code/espurna/data/password.html.gz index 8f9b50ba..c093f040 100644 Binary files a/code/espurna/data/password.html.gz and b/code/espurna/data/password.html.gz differ diff --git a/code/espurna/data/script.js.gz b/code/espurna/data/script.js.gz index 30e476c9..24aa3fe0 100644 Binary files a/code/espurna/data/script.js.gz and b/code/espurna/data/script.js.gz differ diff --git a/code/espurna/data/style.css.gz b/code/espurna/data/style.css.gz index c6e249dc..a88cfa4c 100644 Binary files a/code/espurna/data/style.css.gz and b/code/espurna/data/style.css.gz differ diff --git a/code/espurna/pow.ino b/code/espurna/pow.ino index 955352d8..08dfba31 100644 --- a/code/espurna/pow.ino +++ b/code/espurna/pow.ino @@ -239,6 +239,8 @@ void powLoop() { domoticzSend("dczPowIdx", 0, buffer); snprintf(buffer, 20, "%d", voltage); domoticzSend("dczVoltIdx", 0, buffer); + snprintf(buffer, 20, "%s", String(current).c_str()); + domoticzSend("dczCurrentIdx", 0, buffer); } #endif diff --git a/code/espurna/web.ino b/code/espurna/web.ino index 398da69b..1a319955 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -355,6 +355,7 @@ void _wsStart(uint32_t client_id) { #if ENABLE_POW root["dczPowIdx"] = getSetting("dczPowIdx").toInt(); root["dczVoltIdx"] = getSetting("dczVoltIdx").toInt(); + root["dczCurrentIdx"] = getSetting("dczCurrentIdx").toInt(); #endif #endif diff --git a/code/html/index.html b/code/html/index.html index 116a6df7..42686c7f 100644 --- a/code/html/index.html +++ b/code/html/index.html @@ -415,6 +415,12 @@
Set to 0 to disable notifications.
+
+ +
+
Set to 0 to disable notifications.
+
+