aboutsummaryrefslogtreecommitdiff
path: root/views/index.hbs
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-03-31 19:56:55 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-03-31 19:56:55 +0100
commitf53f1d433b5d458ff0b8a5893e8127a8be3630f7 (patch)
treea7145c7947a9ab6a77e49077c1aeb777fd81288e /views/index.hbs
parentf5e0f6bd1b12e347387ff4cefcfc54d9d7dcc348 (diff)
downloadtplink-energy-monitor-f53f1d433b5d458ff0b8a5893e8127a8be3630f7.tar.xz
tplink-energy-monitor-f53f1d433b5d458ff0b8a5893e8127a8be3630f7.zip
Add daily kWH usage total for last 30 days
Diffstat (limited to 'views/index.hbs')
-rw-r--r--views/index.hbs20
1 files changed, 19 insertions, 1 deletions
diff --git a/views/index.hbs b/views/index.hbs
index 33d5549..ae7dac9 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -63,7 +63,7 @@
<div class="x_content">
<div class="row">
<h1 class="text-center">
- <strong id="rtu-power">- kW</strong>
+ <strong id="rtu-power">- W</strong>
</h1>
</div>
<div class="row text-center">
@@ -103,6 +103,24 @@
</div>
+ <div class="row">
+ <div class="col-md-6 col-sm-6 col-xs-12">
+ <div class="x_panel tile">
+ <div class="x_title">
+ <h2>
+ <strong>Last 30 days (kWH)</strong>
+ </h2>
+ <div class="clearfix"></div>
+ </div>
+ <div class="x_content">
+ <canvas id="du-chart" height="270"></canvas>
+ </div>
+ </div>
+ </div>
+
+
+ </div>
+
</div>
</div>
</div>