Show real time production

This commit is contained in:
Gunnar Skjold
2022-08-10 10:53:16 +02:00
parent 5d2e320b07
commit 3a4fc707b0
13 changed files with 137 additions and 33 deletions

View File

@@ -790,6 +790,12 @@ var fetch = function() {
if(currency) {
$('.sp').show();
}
if(om > 0) {
$('.se').removeClass('d-none');
$('#eache').html(json.ea.h.p.toFixed(2));
$('#eacde').html(json.ea.d.p.toFixed(1));
$('#eacme').html(json.ea.m.p.toFixed(0));
}
}
if(json.me) {

View File

@@ -38,15 +38,18 @@
"t" : %d,
"h" : {
"u" : %.2f,
"c" : %.2f
"c" : %.2f,
"p" : %.2f
},
"d" : {
"u" : %.2f,
"c" : %.2f
"c" : %.2f,
"p" : %.2f
},
"m" : {
"u" : %.2f,
"c" : %.2f
"c" : %.2f,
"p" : %.2f
}
},
"c" : %lu

View File

@@ -113,7 +113,7 @@
<div class="col-xl-12 mb-3">
<div class="bg-white rounded shadow pt-3 pb-3" style="font-size: 14px;">
<strong class="mr-3 ml-3">Real time calculation</strong><br/>
<strong class="mr-3 ml-3">Real time consumption</strong><br/>
<div class="row">
<div class="col-lg-3 col-sm-6">
<div class="mr-3 ml-3 d-flex">
@@ -151,6 +151,35 @@
</div>
</div>
</div>
<strong class="mr-3 ml-3 se d-none">Real time production</strong><br/>
<div class="row se d-none">
<div class="col-lg-3 col-sm-6">
<div class="mr-3 ml-3 d-flex">
<div>Hour</div>
<div class="flex-fill text-right">
<span id="eache"></span> kWh
</div>
</div>
</div>
<div class="col-lg-3 col-sm-6">
<div class="mr-3 ml-3 d-flex">
<div>Day</div>
<div class="flex-fill text-right">
<span id="eacde"></span> kWh
</div>
</div>
</div>
<div class="col-lg-3 col-sm-6">
<div class="mr-3 ml-3 d-flex">
<div>Month</div>
<div class="flex-fill text-right">
<span id="eacme"></span> kWh
</div>
</div>
</div>
<div class="col-lg-3 col-sm-6"></div>
</div>
</div>
</div>

View File

@@ -13,6 +13,8 @@
"h" : %.2f,
"d" : %.1f,
"t" : %d,
"x" : %.2f
"x" : %.2f,
"he" : %.2f,
"de" : %.1f
}
}

View File

@@ -25,6 +25,8 @@
"h" : %.2f,
"d" : %.1f,
"t" : %d,
"x" : %.2f
"x" : %.2f,
"he" : %.2f,
"de" : %.1f
}
}

View File

@@ -30,6 +30,8 @@
"h" : %.2f,
"d" : %.1f,
"t" : %d,
"x" : %.2f
"x" : %.2f,
"he" : %.2f,
"de" : %.1f
}
}

View File

@@ -34,6 +34,8 @@
"h" : %.2f,
"d" : %.1f,
"t" : %d,
"x" : %.2f
"x" : %.2f,
"he" : %.2f,
"de" : %.1f
}
}