aboutsummaryrefslogtreecommitdiff
path: root/views/index.hbs
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-04-01 23:18:28 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-04-01 23:18:28 +0100
commit5fac63cf5fa974d9723617bc2bfa8f4e668fe342 (patch)
treec8d887f2bfa140ca1b7e00bb02a692ed62fe83ef /views/index.hbs
parent567bea38fd7524e5e41fc5d09036cf86ad3932cd (diff)
downloadtplink-energy-monitor-5fac63cf5fa974d9723617bc2bfa8f4e668fe342.tar.xz
tplink-energy-monitor-5fac63cf5fa974d9723617bc2bfa8f4e668fe342.zip
Show total and average usage for current day and month
Diffstat (limited to 'views/index.hbs')
-rw-r--r--views/index.hbs12
1 files changed, 5 insertions, 7 deletions
diff --git a/views/index.hbs b/views/index.hbs
index 3f023e6..7b2806d 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -40,7 +40,7 @@
</div>
<div class="col-sm-4">
<h2 class="pull-right">
- <input id="toggle-polling" class="form-control" type="checkbox" checked data-toggle="toggle" data-on="Auto refresh on" data-off="Auto refresh off" data-offstyle="danger">
+ <input id="toggle-polling" class="form-control" type="checkbox" checked data-toggle="toggle" data-on="Auto refresh on" data-off="Auto refresh off" data-onstyle="success" data-offstyle="danger">
</h2>
</div>
</div>
@@ -99,8 +99,6 @@
</div>
-
-
<div class="row">
<div class="col-md-2 col-sm-2 col-xs-12">
@@ -142,7 +140,7 @@
<div class="clearfix"></div>
</div>
<div class="x_content small">
- <h1>- <small>kWH</small></h1>
+ <h1><span id="total-day">-</span> <small>kWH</small></h1>
</div>
</div>
</div>
@@ -156,7 +154,7 @@
<div class="clearfix"></div>
</div>
<div class="x_content small">
- <h1>- <small>kWH</small></h1>
+ <h1><span id="total-month">-</span> <small>kWH</small></h1>
</div>
</div>
</div>
@@ -170,7 +168,7 @@
<div class="clearfix"></div>
</div>
<div class="x_content small">
- <h1>- <small>kWH</small></h1>
+ <h1><span id="avg-day">-</span> <small>kWH</small></h1>
</div>
</div>
</div>
@@ -184,7 +182,7 @@
<div class="clearfix"></div>
</div>
<div class="x_content small">
- <h1>- <small>kWH</small></h1>
+ <h1><span id="avg-month">-</span> <small>kWH</small></h1>
</div>
</div>
</div>