no message
This commit is contained in:
@@ -152,6 +152,7 @@ function render(data){
|
|||||||
<span class="kv"><b>Produktion:</b> ${v.Produktion?.toFixed(2) || 0} kWh</span>
|
<span class="kv"><b>Produktion:</b> ${v.Produktion?.toFixed(2) || 0} kWh</span>
|
||||||
<span class="kv"><b>Verbrauch:</b> ${v.Hausverbrauch?.toFixed(2) || 0} kWh</span>
|
<span class="kv"><b>Verbrauch:</b> ${v.Hausverbrauch?.toFixed(2) || 0} kWh</span>
|
||||||
<span class="kv"><b>Netzbezug:</b> ${v.Netz?.toFixed(2) || 0} kWh</span>
|
<span class="kv"><b>Netzbezug:</b> ${v.Netz?.toFixed(2) || 0} kWh</span>
|
||||||
|
<span class="kv"><b>Einspeisung:</b> ${feed.toFixed(2)} kWh</span>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const donut = (t, p, c) => {
|
const donut = (t, p, c) => {
|
||||||
@@ -193,6 +194,7 @@ function render(data){
|
|||||||
const prod = v.Produktion || 0;
|
const prod = v.Produktion || 0;
|
||||||
const cons = v.Hausverbrauch || 0;
|
const cons = v.Hausverbrauch || 0;
|
||||||
const grid = v.Netz || 0;
|
const grid = v.Netz || 0;
|
||||||
|
const feed = v.Einspeisung || 0;
|
||||||
const eigen = Math.max(cons - grid, 0);
|
const eigen = Math.max(cons - grid, 0);
|
||||||
|
|
||||||
elGrid.innerHTML =
|
elGrid.innerHTML =
|
||||||
|
|||||||
Reference in New Issue
Block a user