From d448fb6707a64ae60ff9d9ca6bc561f31539f05e Mon Sep 17 00:00:00 2001 From: Toni Arte Date: Tue, 7 Feb 2017 11:07:40 +0200 Subject: [PATCH 1/4] Add Domoticz 'current' sensor capability to Sonoff POW --- code/espurna/data/index.html.gz | Bin 4000 -> 4019 bytes code/espurna/data/password.html.gz | Bin 791 -> 791 bytes code/espurna/data/script.js.gz | Bin 37897 -> 37897 bytes code/espurna/data/style.css.gz | Bin 5947 -> 5947 bytes code/espurna/pow.ino | 2 ++ code/espurna/web.ino | 1 + code/html/index.html | 6 ++++++ 7 files changed, 9 insertions(+) diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 2ed0b47a12f2cfa3b0b0c4492444aea4789aa453..911915fa9cff08ccca632edfc6a40e2217c75651 100644 GIT binary patch literal 4019 zcmV;k4@~eMiwFP!000003*B6MZ{s!+|0+Bc*Cs%0=doD?ZDJruvR&hLlU(9-ul?sh zOSH{K5>=6k<2~FLyFc%f-OP}ZCE1SSSGqVXHr9*7d2#rgA*Iv5T;5!Cf4#k8LlcGV zQ}rCnG)(t>=clHcUnT%VI&X+%^O$eYy~r3$#=aFxdb)M>cMKuh=C^X|hv3DgSZ z20IvtSfo7k+CN`iU)`O5+Cmpv_*p8=7^Jwmc)06yf89bSBiWZ;`%C9TXA8umKMYv) z^WVGO#l%^pf-Ds7rxEyHm+mf5kunk+Ufz7Z>2@xDTe{msjh5~f+KAL^-`;$=x|?*^ z%EHR1iMWg#z04RDhJQy<=R6` z#J2ELv^#BqEY-gy;ar5P#R=4o4Ly}X$ta4Qd4bdk#H$~Bq4FQAO)-F=PEUsi#Sn(W z)8S$JB1==~3WI824ziRRsbaW$ID@SO!Zi@-t2C;}OBafx1`p*R76CpfMHqnC)A4SA z(TVp&HFjl<1Lh8N)HrCo^B7P>W5-#a`vz`-6rW3H;2cP$eJbMwW|#TIj*yt0c8qw2 z8Nkje70NJ8@Ib}k_{__Xyjf~kUI05s!9b$lb(wb5w#TkNl!*ibU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 +
+
Set to 0 to disable notifications.
+
+
From 62311440e856cf6538914f3d7115cabc170d6f81 Mon Sep 17 00:00:00 2001 From: Toni Arte Date: Tue, 7 Feb 2017 12:42:59 +0200 Subject: [PATCH 2/4] Add Domoticz 'Voltage' and 'Current' support for EMON --- code/espurna/emon.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/espurna/emon.ino b/code/espurna/emon.ino index 7b9eabf0..62d1abf0 100644 --- a/code/espurna/emon.ino +++ b/code/espurna/emon.ino @@ -171,6 +171,10 @@ void powerMonitorLoop() { char buffer[20]; snprintf(buffer, 20, "%s;%s", power, e); 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 From bdd041432f249d39e4d89239b83ad86c73bbc63d Mon Sep 17 00:00:00 2001 From: Toni Arte Date: Tue, 7 Feb 2017 12:43:36 +0200 Subject: [PATCH 3/4] Revert binary files --- code/espurna/data/index.html.gz | Bin 4019 -> 4000 bytes code/espurna/data/password.html.gz | Bin 791 -> 791 bytes code/espurna/data/script.js.gz | Bin 37897 -> 37897 bytes code/espurna/data/style.css.gz | Bin 5947 -> 5947 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 911915fa9cff08ccca632edfc6a40e2217c75651..2ed0b47a12f2cfa3b0b0c4492444aea4789aa453 100644 GIT binary patch literal 4000 zcmV;R4`1*fiwFP!000001I=7}Z`(K$|0+B!ZZ`p9JCCLab`t|Zl5UM_9+$Y=+x_Q2 zOSH|4Bx*$}j(fN-c7NU{yO|*+OR^ouue2x{>%}4G!I|F-DV_f1^7f+p``r~Anka0a zy1#-4?NcL7DB4#KcUc;9w%>$*r!9N&G!lk0f5=lU%$b*&e&fVzpN2AiWT^^$c=$<*Q36Cf2Dgofp_`Em z% zK3185yWF+-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ad}h=Wn=h@Gi0jFF^6WF5t)?5Ivy67CQReXYxS9Xop5`8OMmw@Ay^({p4&N2K zXjaf-fS*P|CtcOGkihENJ89Ctt$G}SoJ)ltgJIYB+K}Cz0RrQ!ix}xemt32#sb`m* zQUVdyXOxntR&aa;Bz)<^F*9C-+ype3LSnQtzw(JH>g%79_CnIfsOsNcSRLP$d&ob* zP_I7CsTFNQ_@X#RN}$r*v^vU)*kr+umHV9(?nss8BPJMua Zblm)%>Us7A4(Ka${{!Cy{fv7~002Wh%xnMv diff --git a/code/espurna/data/password.html.gz b/code/espurna/data/password.html.gz index c093f04029c052ad3cd522d1742dad456be63cc8..8f9b50ba71850496862d580f0477cac86b434004 100644 GIT binary patch delta 19 XcmbQvHl2-2zMF#q445}^@iGGdBH#kW delta 19 XcmbQvHl2-2zMF#q47fLP@iGGdBM1V` diff --git a/code/espurna/data/script.js.gz b/code/espurna/data/script.js.gz index 24aa3fe05e46eeed6b10037b46fcd3b277e69920..30e476c910efa22ae6f2d5d103046f05a80baaf6 100644 GIT binary patch delta 21 ZcmeBN!PL2eiA%nlg8>YfH*)=-3;;a41#Y Date: Tue, 7 Feb 2017 12:45:54 +0200 Subject: [PATCH 4/4] Add Domoticz 'Voltage' and 'Current' support for EMON #2 --- code/espurna/web.ino | 2 ++ code/html/index.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/espurna/web.ino b/code/espurna/web.ino index 1a319955..1f647524 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -350,6 +350,8 @@ void _wsStart(uint32_t client_id) { #if ENABLE_EMON root["dczPowIdx"] = getSetting("dczPowIdx").toInt(); + root["dczVoltIdx"] = getSetting("dczVoltIdx").toInt(); + root["dczCurrentIdx"] = getSetting("dczCurrentIdx").toInt(); #endif #if ENABLE_POW diff --git a/code/html/index.html b/code/html/index.html index 42686c7f..b0206acb 100644 --- a/code/html/index.html +++ b/code/html/index.html @@ -409,13 +409,13 @@
Set to 0 to disable notifications.
-
+
Set to 0 to disable notifications.
-
+
Set to 0 to disable notifications.