iobroker.nexowatt-ui 0.7.31 → 0.7.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/io-package.json +2 -2
- package/package.json +1 -1
- package/www/app.js +132 -4
- package/www/index.html +103 -11
- package/www/styles.css +599 -0
- package/www/sw.js +1 -1
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "nexowatt-ui",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.32",
|
|
5
5
|
"news": {
|
|
6
6
|
"0.7.31": {
|
|
7
7
|
"en": "Added advisory AI energy optimizer: a new App-Center “AI Optimization” app, advisor-only EMS module, aiAdvisor.* runtime states, configurable categories/thresholds, and a LIVE dashboard recommendation card. The UI adapter only produces optimization suggestions; no automatic switching decisions are executed.",
|
|
@@ -1967,7 +1967,7 @@
|
|
|
1967
1967
|
}
|
|
1968
1968
|
},
|
|
1969
1969
|
"instanceObjects": [],
|
|
1970
|
-
"version": "0.7.
|
|
1970
|
+
"version": "0.7.32",
|
|
1971
1971
|
"news": {
|
|
1972
1972
|
"0.7.28": {
|
|
1973
1973
|
"en": "Peak-Shaving App-Center tab added: installers can now configure standard, atypical HLZF, hybrid or monitoring modes directly in the UI.",
|
package/package.json
CHANGED
package/www/app.js
CHANGED
|
@@ -1012,6 +1012,100 @@ function setText(id, text) {
|
|
|
1012
1012
|
el.textContent = text;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
|
+
|
|
1016
|
+
function nwSetDisplay(id, visible, displayValue) {
|
|
1017
|
+
const el = document.getElementById(id);
|
|
1018
|
+
if (!el) return;
|
|
1019
|
+
el.style.display = visible ? (displayValue || '') : 'none';
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
function nwFormatDashboardTimestamp(ts) {
|
|
1023
|
+
const n = Number(ts);
|
|
1024
|
+
if (!Number.isFinite(n) || n <= 0) return '--';
|
|
1025
|
+
const d = new Date(n);
|
|
1026
|
+
const dd = String(d.getDate()).padStart(2, '0');
|
|
1027
|
+
const mm = String(d.getMonth() + 1).padStart(2, '0');
|
|
1028
|
+
const yyyy = d.getFullYear();
|
|
1029
|
+
const hh = String(d.getHours()).padStart(2, '0');
|
|
1030
|
+
const mi = String(d.getMinutes()).padStart(2, '0');
|
|
1031
|
+
const ss = String(d.getSeconds()).padStart(2, '0');
|
|
1032
|
+
return `${dd}.${mm}.${yyyy} ${hh}:${mi}:${ss}`;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
function nwLatestStateTimestamp(keys) {
|
|
1036
|
+
const st = window.latestState || state || {};
|
|
1037
|
+
let best = 0;
|
|
1038
|
+
const scanKey = (k) => {
|
|
1039
|
+
const rec = st && st[k];
|
|
1040
|
+
const ts = rec && Number(rec.ts);
|
|
1041
|
+
if (Number.isFinite(ts) && ts > best) best = ts;
|
|
1042
|
+
};
|
|
1043
|
+
if (Array.isArray(keys)) keys.forEach(scanKey);
|
|
1044
|
+
if (!best) {
|
|
1045
|
+
try {
|
|
1046
|
+
Object.keys(st || {}).forEach((k) => {
|
|
1047
|
+
const ts = Number(st[k] && st[k].ts);
|
|
1048
|
+
if (Number.isFinite(ts) && ts > best) best = ts;
|
|
1049
|
+
});
|
|
1050
|
+
} catch (_e) {}
|
|
1051
|
+
}
|
|
1052
|
+
return best || Date.now();
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
function nwSetLiveOnline(isOnline) {
|
|
1056
|
+
const online = !!isOnline;
|
|
1057
|
+
setText('sideConnection', online ? 'Online' : 'Offline');
|
|
1058
|
+
setText('sideStatusText', online ? 'Alle Systeme normal' : 'Verbindung wird aufgebaut');
|
|
1059
|
+
const dot = document.getElementById('sideLiveDot');
|
|
1060
|
+
if (dot) dot.classList.toggle('is-offline', !online);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
function updateDashboardShellUi(data) {
|
|
1064
|
+
const snap = data || {};
|
|
1065
|
+
const d = typeof snap.d === 'function' ? snap.d : ((k) => (window.latestState || state || {})[k]?.value);
|
|
1066
|
+
|
|
1067
|
+
const liveDot = document.getElementById('liveDot');
|
|
1068
|
+
nwSetLiveOnline(!liveDot || liveDot.classList.contains('live'));
|
|
1069
|
+
|
|
1070
|
+
const pv = Number(snap.pv ?? d('pvPower') ?? d('productionTotal') ?? 0) || 0;
|
|
1071
|
+
const buy = Number(snap.buy ?? 0) || 0;
|
|
1072
|
+
const sell = Number(snap.sell ?? 0) || 0;
|
|
1073
|
+
const load = Number(snap.load ?? d('consumptionTotal') ?? 0) || 0;
|
|
1074
|
+
const charge = Math.max(0, Number(snap.charge ?? 0) || 0);
|
|
1075
|
+
const discharge = Math.max(0, Number(snap.discharge ?? 0) || 0);
|
|
1076
|
+
const batterySigned = discharge - charge;
|
|
1077
|
+
const evcsPower = Number(snap.evcsPower ?? d('consumptionEvcs') ?? d('evcsPower') ?? 0) || 0;
|
|
1078
|
+
|
|
1079
|
+
const soc = (snap.socN !== undefined && snap.socN !== null) ? Number(snap.socN) : coerceNumber(d('storageSoc'));
|
|
1080
|
+
const autarky = (snap.autarkyN !== undefined && snap.autarkyN !== null) ? Number(snap.autarkyN) : coerceNumber(d('autarky'));
|
|
1081
|
+
const selfc = (snap.selfcN !== undefined && snap.selfcN !== null) ? Number(snap.selfcN) : coerceNumber(d('selfConsumption'));
|
|
1082
|
+
|
|
1083
|
+
setText('sideStorage', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
|
|
1084
|
+
setText('sideBatterySoc', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
|
|
1085
|
+
setText('sideEms', 'Aktiv');
|
|
1086
|
+
const p14 = !!d('ems.core.para14aActive');
|
|
1087
|
+
const peak = String(d('peakShaving.control.status') || '').trim();
|
|
1088
|
+
setText('sideGridStatus', p14 ? '§14a aktiv' : (peak === 'active' ? 'Peak aktiv' : 'Stabil'));
|
|
1089
|
+
|
|
1090
|
+
setText('sideConsumptionTotal', formatFlowPower(Math.max(0, load)));
|
|
1091
|
+
setText('sideSelfConsumption', Number.isFinite(selfc) ? `${Math.round(selfc)} %` : '-- %');
|
|
1092
|
+
setText('sideAutarky', Number.isFinite(autarky) ? `${Math.round(autarky)} %` : '-- %');
|
|
1093
|
+
setText('sideCo2Savings', snap.co2Text || '--');
|
|
1094
|
+
|
|
1095
|
+
setText('sidePvPower', formatFlowPower(Math.abs(pv)));
|
|
1096
|
+
setText('sideBuildingPower', formatFlowPower(Math.max(0, load)));
|
|
1097
|
+
setText('sideGridBuyPower', formatFlowPower(Math.max(0, buy)));
|
|
1098
|
+
setText('sideGridSellPower', formatFlowPower(Math.max(0, sell)));
|
|
1099
|
+
setText('sideBatteryPower', (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
|
|
1100
|
+
setText('sideEvcsPower', formatFlowPower(Math.abs(evcsPower)));
|
|
1101
|
+
|
|
1102
|
+
const ts = nwLatestStateTimestamp([
|
|
1103
|
+
'pvPower', 'productionTotal', 'consumptionTotal', 'gridPower', 'gridBuyPower',
|
|
1104
|
+
'gridSellPower', 'storageSoc', 'storagePower', 'consumptionEvcs'
|
|
1105
|
+
]);
|
|
1106
|
+
setText('sideTimestamp', nwFormatDashboardTimestamp(ts));
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1015
1109
|
// ------------------------------
|
|
1016
1110
|
// Energiefluss: dynamische Extra-Kreise (Verbraucher/Erzeuger)
|
|
1017
1111
|
// ------------------------------
|
|
@@ -2026,6 +2120,7 @@ function render() {
|
|
|
2026
2120
|
const pvLineEl = document.getElementById('pvForecastLine');
|
|
2027
2121
|
|
|
2028
2122
|
if (!weatherEnabled) {
|
|
2123
|
+
nwSetDisplay('sideWeatherCard', false);
|
|
2029
2124
|
// Weather-App ist aus -> komplette Kachel ausblenden, keine UI-Hinweise
|
|
2030
2125
|
setText('weatherTomorrow', '');
|
|
2031
2126
|
setText('weatherUpdated', '—');
|
|
@@ -2060,6 +2155,14 @@ function render() {
|
|
|
2060
2155
|
setText('weatherWind', _fmtKmh(wWind));
|
|
2061
2156
|
setText('weatherCloud', _fmtPct(wCloud));
|
|
2062
2157
|
|
|
2158
|
+
nwSetDisplay('sideWeatherCard', true);
|
|
2159
|
+
setText('sideWeatherIcon', _pickWeatherIcon(wCode, wText));
|
|
2160
|
+
setText('sideWeatherTemp', _fmtTempC(wTemp));
|
|
2161
|
+
setText('sideWeatherCondition', cond);
|
|
2162
|
+
setText('sideWeatherFeels', _fmtTempC(wTemp));
|
|
2163
|
+
setText('sideWeatherCloud', _fmtPct(wCloud));
|
|
2164
|
+
setText('sideWeatherWind', _fmtKmh(wWind));
|
|
2165
|
+
|
|
2063
2166
|
// Tomorrow line
|
|
2064
2167
|
let tomorrowLine = '';
|
|
2065
2168
|
if (wTMin != null && wTMax != null) {
|
|
@@ -2111,6 +2214,26 @@ function render() {
|
|
|
2111
2214
|
}
|
|
2112
2215
|
} catch (_e) {}
|
|
2113
2216
|
|
|
2217
|
+
try {
|
|
2218
|
+
const co2TextDash = (co2Dp != null)
|
|
2219
|
+
? (isNaN(Number(co2Dp)) ? String(co2Dp) : Number(co2Dp).toFixed(1) + ' t')
|
|
2220
|
+
: (co2FromPvT != null ? co2FromPvT.toFixed(1) + ' t' : '--');
|
|
2221
|
+
updateDashboardShellUi({
|
|
2222
|
+
d,
|
|
2223
|
+
pv,
|
|
2224
|
+
buy,
|
|
2225
|
+
sell,
|
|
2226
|
+
load,
|
|
2227
|
+
charge,
|
|
2228
|
+
discharge,
|
|
2229
|
+
socN,
|
|
2230
|
+
autarkyN,
|
|
2231
|
+
selfcN,
|
|
2232
|
+
evcsPower: d('consumptionEvcs') ?? 0,
|
|
2233
|
+
co2Text: co2TextDash
|
|
2234
|
+
});
|
|
2235
|
+
} catch (_e) {}
|
|
2236
|
+
|
|
2114
2237
|
// Settings: RFID learning UI state (if present)
|
|
2115
2238
|
try {
|
|
2116
2239
|
if (typeof window.__nwApplyRfidLearningUi === 'function') window.__nwApplyRfidLearningUi();
|
|
@@ -2289,8 +2412,8 @@ const refreshConfig = async () => {
|
|
|
2289
2412
|
const es = new EventSource('/events');
|
|
2290
2413
|
const dot = document.getElementById('liveDot');
|
|
2291
2414
|
if (dot) dot.classList.remove('live');
|
|
2292
|
-
es.onopen = () => { if (dot) dot.classList.add('live'); };
|
|
2293
|
-
es.onerror = () => { if (dot) dot.classList.remove('live'); try{ es.close(); }catch(_){ } setTimeout(startEvents, 3000); };
|
|
2415
|
+
es.onopen = () => { if (dot) dot.classList.add('live'); try{ nwSetLiveOnline(true); }catch(_e){} };
|
|
2416
|
+
es.onerror = () => { if (dot) dot.classList.remove('live'); try{ nwSetLiveOnline(false); }catch(_e){} try{ es.close(); }catch(_){ } setTimeout(startEvents, 3000); };
|
|
2294
2417
|
es.onmessage = (ev) => {
|
|
2295
2418
|
try {
|
|
2296
2419
|
const msg = JSON.parse(ev.data);
|
|
@@ -2826,6 +2949,7 @@ window.addEventListener('DOMContentLoaded', ()=> {
|
|
|
2826
2949
|
hideAllPanels();
|
|
2827
2950
|
applyInitialTabFromUrl();
|
|
2828
2951
|
try { initTariffForecastTooltip(); } catch(_e) {}
|
|
2952
|
+
try { initEmsControlModal(); } catch(_e) {}
|
|
2829
2953
|
|
|
2830
2954
|
// If opened directly as standalone Settings page, show settings panel by default
|
|
2831
2955
|
try {
|
|
@@ -2844,7 +2968,7 @@ window.addEventListener('DOMContentLoaded', ()=> {
|
|
|
2844
2968
|
|
|
2845
2969
|
// --- Settings & Installer logic ---
|
|
2846
2970
|
|
|
2847
|
-
function hideAllPanels(){ document.querySelectorAll('[data-tab-content]').forEach(el=> el.classList.add('hidden')); document.querySelector('.content').style.display='
|
|
2971
|
+
function hideAllPanels(){ document.querySelectorAll('[data-tab-content]').forEach(el=> el.classList.add('hidden')); const c=document.querySelector('.content'); if(c) c.style.display='grid'; }
|
|
2848
2972
|
let SERVER_CFG = { adminUrl: null, installerLocked: false };
|
|
2849
2973
|
|
|
2850
2974
|
async function loadConfig() {
|
|
@@ -4216,6 +4340,8 @@ function initEmsControlModal() {
|
|
|
4216
4340
|
|
|
4217
4341
|
const openBtn = document.getElementById('tariffEmsBtn') || card;
|
|
4218
4342
|
openBtn.addEventListener('click', (e)=>{ try{ if (e){ e.preventDefault(); e.stopPropagation(); } }catch(_e){} open(e); });
|
|
4343
|
+
const energyDetailsBtn = document.getElementById('energyTariffDetailsBtn');
|
|
4344
|
+
if (energyDetailsBtn) energyDetailsBtn.addEventListener('click', (e)=>{ try{ if (e){ e.preventDefault(); e.stopPropagation(); } }catch(_e){} open(e); });
|
|
4219
4345
|
|
|
4220
4346
|
if (closeBtn) closeBtn.addEventListener('click', close);
|
|
4221
4347
|
modal.addEventListener('click', (e) => { if (e && e.target === modal) close(); });
|
|
@@ -5901,6 +6027,8 @@ function updateEnergyWeb() {
|
|
|
5901
6027
|
}
|
|
5902
6028
|
statusEl.textContent = msg;
|
|
5903
6029
|
statusEl.classList.toggle('hidden', !msg);
|
|
6030
|
+
const statusWrap = document.getElementById('emsStatusWrap');
|
|
6031
|
+
if (statusWrap) statusWrap.classList.toggle('hidden', !msg);
|
|
5904
6032
|
}
|
|
5905
6033
|
|
|
5906
6034
|
}
|
|
@@ -6048,7 +6176,7 @@ function updateAiAdvisorLiveUi() {
|
|
|
6048
6176
|
const l = document.getElementById('aiAdvisorLiveList');
|
|
6049
6177
|
if (!l) return;
|
|
6050
6178
|
const open = l.classList.toggle('hidden') === false;
|
|
6051
|
-
toggleBtn.textContent = open ? 'Weniger' : 'Details';
|
|
6179
|
+
toggleBtn.textContent = open ? 'Weniger anzeigen' : 'Details ansehen ›';
|
|
6052
6180
|
});
|
|
6053
6181
|
}
|
|
6054
6182
|
} catch (_e) {}
|
package/www/index.html
CHANGED
|
@@ -57,13 +57,70 @@
|
|
|
57
57
|
<button id="tabStorageFarm" class="tab hidden" data-tab="storagefarm">SPEICHERFARM</button>
|
|
58
58
|
</nav>
|
|
59
59
|
<div class="status-dot" id="liveDot" title="Live Verbindung"></div>
|
|
60
|
+
<a class="topbar-gear" href="settings.html" aria-label="Einstellungen" title="Einstellungen">⚙️</a>
|
|
60
61
|
<div class="menu hidden" id="menuDropdown"><a class="menu-item" href="./">Live</a><a class="menu-item" href="history.html">History</a>
|
|
61
62
|
<a class="menu-item hidden" id="menuEvcsLink" href="evcs.html">EVCS</a><a class="menu-item hidden" id="menuSmartHomeLink" href="smarthome.html">SmartHome</a><a class="menu-item hidden" id="menuStorageFarmLink" href="#" onclick="document.querySelector('#tabStorageFarm')?.click();return false;">Speicherfarm</a><a class="menu-item" href="settings.html">Einstellungen</a></div></header>
|
|
62
|
-
<main class="content">
|
|
63
|
+
<main class="content nw-dashboard">
|
|
64
|
+
<aside class="nw-dashboard-rail nw-dashboard-left" aria-label="System- und Liveübersicht">
|
|
65
|
+
<section class="card nw-panel nw-panel-status">
|
|
66
|
+
<div class="nw-panel-title">
|
|
67
|
+
<span class="nw-panel-icon">🛡️</span>
|
|
68
|
+
<span>Systemstatus</span>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="nw-system-ok" id="sideStatusText">Alle Systeme normal</div>
|
|
71
|
+
<div class="nw-status-list">
|
|
72
|
+
<div class="nw-status-row">
|
|
73
|
+
<span class="nw-status-icon">📶</span>
|
|
74
|
+
<span><b>Verbindung</b><small id="sideConnection">Verbinde…</small></span>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="nw-status-row">
|
|
77
|
+
<span class="nw-status-icon">⚙️</span>
|
|
78
|
+
<span><b>EMS</b><small id="sideEms">Aktiv</small></span>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="nw-status-row">
|
|
81
|
+
<span class="nw-status-icon">🔋</span>
|
|
82
|
+
<span><b>Speicher</b><small id="sideStorage">-- %</small></span>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="nw-status-row">
|
|
85
|
+
<span class="nw-status-icon">🗼</span>
|
|
86
|
+
<span><b>Netzstatus</b><small id="sideGridStatus">Stabil</small></span>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</section>
|
|
90
|
+
|
|
91
|
+
<section class="card nw-panel nw-panel-overview">
|
|
92
|
+
<div class="nw-panel-title">Live Übersicht</div>
|
|
93
|
+
<div class="nw-overview-list">
|
|
94
|
+
<div class="nw-overview-row">
|
|
95
|
+
<span class="nw-overview-icon">↻</span>
|
|
96
|
+
<span><small>Gesamtverbrauch</small><b id="sideConsumptionTotal">--</b></span>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="nw-overview-row">
|
|
99
|
+
<span class="nw-overview-icon">☀️</span>
|
|
100
|
+
<span><small>Eigenverbrauch</small><b id="sideSelfConsumption">-- %</b></span>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="nw-overview-row">
|
|
103
|
+
<span class="nw-overview-icon nw-overview-icon--warn">🔋</span>
|
|
104
|
+
<span><small>Autarkie</small><b id="sideAutarky">-- %</b></span>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="nw-overview-row">
|
|
107
|
+
<span class="nw-overview-icon">♻️</span>
|
|
108
|
+
<span><small>CO₂ Einsparung</small><b id="sideCo2Savings">--</b></span>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="nw-live-stand">
|
|
112
|
+
<span>Stand: <b id="sideTimestamp">--</b></span>
|
|
113
|
+
<span class="nw-live-dot" id="sideLiveDot"></span>
|
|
114
|
+
</div>
|
|
115
|
+
</section>
|
|
116
|
+
</aside>
|
|
117
|
+
|
|
118
|
+
<div class="nw-dashboard-main">
|
|
119
|
+
|
|
63
120
|
<section class="card energy-web">
|
|
64
121
|
<div class="card-header">
|
|
65
122
|
<div class="legend-color"></div>
|
|
66
|
-
<span>Energiefluss</span>
|
|
123
|
+
<span>Energiefluss – Live</span>
|
|
67
124
|
</div>
|
|
68
125
|
<div class="web-wrap">
|
|
69
126
|
<svg id="energyWebSvg" class="web" preserveAspectRatio="xMidYMid meet" viewBox="-80 40 760 520">
|
|
@@ -175,7 +232,10 @@
|
|
|
175
232
|
<g id="flowExtraNodes"></g>
|
|
176
233
|
</svg>
|
|
177
234
|
|
|
178
|
-
<div class="ems-status hidden" id="
|
|
235
|
+
<div class="ems-status-wrap hidden" id="emsStatusWrap">
|
|
236
|
+
<div class="ems-status hidden" id="emsStatusText"></div>
|
|
237
|
+
<button class="btn small ems-status-btn" id="energyTariffDetailsBtn" type="button">🏷️ Tarifdetails</button>
|
|
238
|
+
</div>
|
|
179
239
|
</div>
|
|
180
240
|
</section>
|
|
181
241
|
<section class="card nw-ai-advisor-card hidden" id="aiAdvisorLiveCard">
|
|
@@ -193,7 +253,7 @@
|
|
|
193
253
|
<div class="nw-ai-advisor-message" id="aiAdvisorLiveMessage">Der KI‑Energieberater wartet auf aktuelle EMS‑Daten.</div>
|
|
194
254
|
<div class="nw-ai-advisor-action" id="aiAdvisorLiveAction"></div>
|
|
195
255
|
</div>
|
|
196
|
-
<button class="btn small nw-ai-advisor-toggle" id="aiAdvisorToggleDetails" type="button">Details
|
|
256
|
+
<button class="btn small nw-ai-advisor-toggle" id="aiAdvisorToggleDetails" type="button">Details ansehen ›</button>
|
|
197
257
|
</div>
|
|
198
258
|
<div class="nw-ai-advisor-list hidden" id="aiAdvisorLiveList"></div>
|
|
199
259
|
</section>
|
|
@@ -201,7 +261,7 @@
|
|
|
201
261
|
<section class="card">
|
|
202
262
|
<div class="card-header">
|
|
203
263
|
<div class="legend-color"></div>
|
|
204
|
-
<span>Status</span>
|
|
264
|
+
<span>Status & KPIs</span>
|
|
205
265
|
</div>
|
|
206
266
|
|
|
207
267
|
<div class="nw-tiles-grid" id="liveStatusTiles" style="padding:12px;">
|
|
@@ -379,11 +439,43 @@
|
|
|
379
439
|
</div>
|
|
380
440
|
</section>
|
|
381
441
|
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
<aside class="nw-dashboard-rail nw-dashboard-right" aria-label="Aktuelle Werte und Schnellzugriff">
|
|
445
|
+
<section class="card nw-panel nw-values-card">
|
|
446
|
+
<div class="nw-panel-title">Aktuelle Werte</div>
|
|
447
|
+
<div class="nw-value-list">
|
|
448
|
+
<div class="nw-value-row nw-value-row--pv"><span>☀️ PV Erzeugung</span><b id="sidePvPower">--</b></div>
|
|
449
|
+
<div class="nw-value-row nw-value-row--load"><span>🏠 Gebäudeverbrauch</span><b id="sideBuildingPower">--</b></div>
|
|
450
|
+
<div class="nw-value-row nw-value-row--grid"><span>🗼 Netzbezug</span><b id="sideGridBuyPower">--</b></div>
|
|
451
|
+
<div class="nw-value-row nw-value-row--grid"><span>🗼 Netzeinspeisung</span><b id="sideGridSellPower">--</b></div>
|
|
452
|
+
<div class="nw-value-row nw-value-row--battery"><span>🔋 Batterie Leistung</span><b id="sideBatteryPower">--</b></div>
|
|
453
|
+
<div class="nw-value-row nw-value-row--battery"><span>🔋 Batterie SoC</span><b id="sideBatterySoc">-- %</b></div>
|
|
454
|
+
<div class="nw-value-row nw-value-row--ev"><span>🔌 Ladestation Leistung</span><b id="sideEvcsPower">--</b></div>
|
|
455
|
+
</div>
|
|
456
|
+
</section>
|
|
457
|
+
|
|
458
|
+
<section class="card nw-panel nw-weather-side-card" id="sideWeatherCard" style="display:none;">
|
|
459
|
+
<div class="nw-panel-title">Wetter heute</div>
|
|
460
|
+
<div class="nw-weather-side-main">
|
|
461
|
+
<div class="nw-weather-side-icon" id="sideWeatherIcon">🌤️</div>
|
|
462
|
+
<div>
|
|
463
|
+
<b id="sideWeatherTemp">-- °C</b>
|
|
464
|
+
<small id="sideWeatherCondition">—</small>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
<div class="nw-weather-side-meta">
|
|
468
|
+
<span>🌡️ <small>Gefühlt</small><b id="sideWeatherFeels">-- °C</b></span>
|
|
469
|
+
<span>☁️ <small>Wolken</small><b id="sideWeatherCloud">-- %</b></span>
|
|
470
|
+
<span>💨 <small>Wind</small><b id="sideWeatherWind">-- km/h</b></span>
|
|
471
|
+
</div>
|
|
472
|
+
</section>
|
|
473
|
+
|
|
382
474
|
<!-- Schnellsteuerung (Live) – im gleichen Design wie die EVCS-Kacheln -->
|
|
383
|
-
<section class="card">
|
|
475
|
+
<section class="card nw-quick-card">
|
|
384
476
|
<div class="card-header">
|
|
385
477
|
<div class="legend-color"></div>
|
|
386
|
-
<span>
|
|
478
|
+
<span>Schnellzugriff</span>
|
|
387
479
|
</div>
|
|
388
480
|
|
|
389
481
|
<div class="nw-tiles-grid" id="liveQuickTiles" style="padding:12px;">
|
|
@@ -392,8 +484,8 @@
|
|
|
392
484
|
<div class="nw-tile__top">
|
|
393
485
|
<div class="nw-tile__icon-circle">⚙</div>
|
|
394
486
|
<div style="flex:1; margin-left:8px; min-width:0;">
|
|
395
|
-
<div class="nw-tile__alias">
|
|
396
|
-
<div class="nw-tile__room">
|
|
487
|
+
<div class="nw-tile__alias">Tarif & Kosten</div>
|
|
488
|
+
<div class="nw-tile__room">Optimierung & Schutz</div>
|
|
397
489
|
</div>
|
|
398
490
|
<button class="nw-tile__badge nw-tile__badge--accent nw-tile__badge--btn" id="tariffEmsBtn" type="button" aria-label="EMS Steuerung öffnen">EMS</button>
|
|
399
491
|
<button class="nw-tile__tip-btn" id="tariffForecastBtn" type="button" aria-label="Preisverlauf (heute) anzeigen">📈</button>
|
|
@@ -431,7 +523,7 @@
|
|
|
431
523
|
<div class="nw-tile__top">
|
|
432
524
|
<div class="nw-tile__icon-circle">⇵</div>
|
|
433
525
|
<div style="flex:1; margin-left:8px; min-width:0;">
|
|
434
|
-
<div class="nw-tile__alias">
|
|
526
|
+
<div class="nw-tile__alias">Lastmanagement</div>
|
|
435
527
|
<div class="nw-tile__room">Automatik-Regeln</div>
|
|
436
528
|
</div>
|
|
437
529
|
<div class="nw-tile__badge">APP</div>
|
|
@@ -505,6 +597,7 @@
|
|
|
505
597
|
</div>
|
|
506
598
|
</div> </div>
|
|
507
599
|
</section>
|
|
600
|
+
</aside>
|
|
508
601
|
|
|
509
602
|
<div id="thresholdModal" class="modal hidden">
|
|
510
603
|
<div class="dialog">
|
|
@@ -835,7 +928,6 @@
|
|
|
835
928
|
</div>
|
|
836
929
|
</div>
|
|
837
930
|
|
|
838
|
-
</section>
|
|
839
931
|
</main>
|
|
840
932
|
<script src="/static/app.js"></script>
|
|
841
933
|
|
package/www/styles.css
CHANGED
|
@@ -6655,3 +6655,602 @@ body{ padding-top: var(--topbar-h); }
|
|
|
6655
6655
|
.nw-ai-advisor-main{ grid-template-columns:auto minmax(0,1fr); }
|
|
6656
6656
|
.nw-ai-advisor-toggle{ grid-column:1 / -1; justify-self:start; }
|
|
6657
6657
|
}
|
|
6658
|
+
|
|
6659
|
+
/* =====================================================================
|
|
6660
|
+
NexoWatt EMS Cockpit Redesign – Desktop / Tablet / Smartphone
|
|
6661
|
+
===================================================================== */
|
|
6662
|
+
:root{
|
|
6663
|
+
--topbar-h: 72px;
|
|
6664
|
+
--nx-bg-0:#020914;
|
|
6665
|
+
--nx-bg-1:#041322;
|
|
6666
|
+
--nx-card:rgba(5, 18, 32, 0.78);
|
|
6667
|
+
--nx-card-strong:rgba(7, 22, 38, 0.92);
|
|
6668
|
+
--nx-line:rgba(95, 144, 190, 0.24);
|
|
6669
|
+
--nx-line-soft:rgba(95, 144, 190, 0.14);
|
|
6670
|
+
--nx-glow-green:rgba(0, 230, 118, 0.34);
|
|
6671
|
+
--nx-green:#00e676;
|
|
6672
|
+
--nx-blue:#31b7ff;
|
|
6673
|
+
--nx-yellow:#ffd31a;
|
|
6674
|
+
--nx-red:#ff4438;
|
|
6675
|
+
--nx-text:#f1f6fb;
|
|
6676
|
+
--nx-muted:#9db0c3;
|
|
6677
|
+
}
|
|
6678
|
+
|
|
6679
|
+
html{ min-height:100%; }
|
|
6680
|
+
body{
|
|
6681
|
+
min-height:100%;
|
|
6682
|
+
padding-top:var(--topbar-h) !important;
|
|
6683
|
+
background:
|
|
6684
|
+
radial-gradient(circle at 18% -4%, rgba(0, 230, 118, .14), transparent 30%),
|
|
6685
|
+
radial-gradient(circle at 82% 18%, rgba(49, 183, 255, .12), transparent 34%),
|
|
6686
|
+
linear-gradient(180deg, #010914 0%, #03101e 45%, #010711 100%) !important;
|
|
6687
|
+
color:var(--nx-text);
|
|
6688
|
+
overflow-x:hidden;
|
|
6689
|
+
}
|
|
6690
|
+
body::before{
|
|
6691
|
+
content:'';
|
|
6692
|
+
position:fixed;
|
|
6693
|
+
inset:var(--topbar-h) 0 0 0;
|
|
6694
|
+
pointer-events:none;
|
|
6695
|
+
opacity:.24;
|
|
6696
|
+
background:
|
|
6697
|
+
radial-gradient(ellipse at 70% 12%, rgba(0,230,118,.16), transparent 36%),
|
|
6698
|
+
repeating-linear-gradient(166deg, rgba(0,230,118,.09) 0 1px, transparent 1px 14px);
|
|
6699
|
+
mask-image:linear-gradient(180deg, rgba(0,0,0,.95), transparent 78%);
|
|
6700
|
+
z-index:-1;
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
.topbar{
|
|
6704
|
+
position:fixed !important;
|
|
6705
|
+
inset:0 0 auto 0;
|
|
6706
|
+
height:var(--topbar-h) !important;
|
|
6707
|
+
display:flex !important;
|
|
6708
|
+
align-items:center;
|
|
6709
|
+
gap:18px;
|
|
6710
|
+
padding:0 24px !important;
|
|
6711
|
+
border:1px solid rgba(75, 122, 170, .22) !important;
|
|
6712
|
+
border-left:0 !important;
|
|
6713
|
+
border-right:0 !important;
|
|
6714
|
+
background:rgba(2, 10, 19, .86) !important;
|
|
6715
|
+
backdrop-filter:blur(18px);
|
|
6716
|
+
box-shadow:0 18px 44px rgba(0,0,0,.34), inset 0 -1px 0 rgba(255,255,255,.03);
|
|
6717
|
+
z-index:1200 !important;
|
|
6718
|
+
}
|
|
6719
|
+
.topbar .brand{
|
|
6720
|
+
width:46px;
|
|
6721
|
+
height:46px;
|
|
6722
|
+
display:grid !important;
|
|
6723
|
+
place-items:center;
|
|
6724
|
+
flex:0 0 auto;
|
|
6725
|
+
}
|
|
6726
|
+
.topbar .brand img{
|
|
6727
|
+
width:46px !important;
|
|
6728
|
+
height:46px !important;
|
|
6729
|
+
object-fit:contain;
|
|
6730
|
+
filter:drop-shadow(0 0 14px rgba(0,230,118,.36));
|
|
6731
|
+
}
|
|
6732
|
+
#menuBtn{
|
|
6733
|
+
width:42px;
|
|
6734
|
+
height:42px;
|
|
6735
|
+
display:grid;
|
|
6736
|
+
place-items:center;
|
|
6737
|
+
margin:0 !important;
|
|
6738
|
+
padding:0 !important;
|
|
6739
|
+
color:#e9f4ff !important;
|
|
6740
|
+
border:1px solid transparent !important;
|
|
6741
|
+
border-radius:13px !important;
|
|
6742
|
+
background:transparent !important;
|
|
6743
|
+
font-size:24px !important;
|
|
6744
|
+
}
|
|
6745
|
+
#menuBtn:hover{
|
|
6746
|
+
border-color:rgba(255,255,255,.12) !important;
|
|
6747
|
+
background:rgba(255,255,255,.05) !important;
|
|
6748
|
+
}
|
|
6749
|
+
.topbar h1{
|
|
6750
|
+
margin:0;
|
|
6751
|
+
font-size:20px !important;
|
|
6752
|
+
font-weight:850;
|
|
6753
|
+
letter-spacing:.1px;
|
|
6754
|
+
white-space:nowrap;
|
|
6755
|
+
color:var(--nx-text);
|
|
6756
|
+
}
|
|
6757
|
+
.topbar .tabs{
|
|
6758
|
+
margin-left:auto !important;
|
|
6759
|
+
display:flex;
|
|
6760
|
+
align-items:center;
|
|
6761
|
+
gap:22px;
|
|
6762
|
+
max-width:none !important;
|
|
6763
|
+
overflow:visible !important;
|
|
6764
|
+
}
|
|
6765
|
+
.topbar .tabs .tab{
|
|
6766
|
+
position:relative;
|
|
6767
|
+
min-height:40px;
|
|
6768
|
+
padding:0 10px !important;
|
|
6769
|
+
border:1px solid transparent !important;
|
|
6770
|
+
border-radius:12px !important;
|
|
6771
|
+
background:transparent !important;
|
|
6772
|
+
color:rgba(255,255,255,.88) !important;
|
|
6773
|
+
font-size:13px;
|
|
6774
|
+
font-weight:850;
|
|
6775
|
+
letter-spacing:.28px;
|
|
6776
|
+
text-transform:uppercase;
|
|
6777
|
+
}
|
|
6778
|
+
.topbar .tabs .tab:not(.active):hover{
|
|
6779
|
+
background:rgba(255,255,255,.045) !important;
|
|
6780
|
+
border-color:rgba(255,255,255,.08) !important;
|
|
6781
|
+
}
|
|
6782
|
+
.topbar .tabs .tab.active{
|
|
6783
|
+
padding:0 16px !important;
|
|
6784
|
+
border-color:rgba(0,230,118,.70) !important;
|
|
6785
|
+
background:rgba(2, 23, 20, .82) !important;
|
|
6786
|
+
box-shadow:0 0 18px rgba(0,230,118,.26), inset 0 0 0 1px rgba(0,230,118,.12);
|
|
6787
|
+
}
|
|
6788
|
+
.topbar .tabs .tab.active::before{
|
|
6789
|
+
content:'';
|
|
6790
|
+
display:inline-block;
|
|
6791
|
+
width:7px;
|
|
6792
|
+
height:7px;
|
|
6793
|
+
margin-right:8px;
|
|
6794
|
+
border-radius:999px;
|
|
6795
|
+
background:var(--nx-green);
|
|
6796
|
+
box-shadow:0 0 12px var(--nx-green);
|
|
6797
|
+
vertical-align:1px;
|
|
6798
|
+
}
|
|
6799
|
+
.topbar > .status-dot{ display:none !important; }
|
|
6800
|
+
.topbar-gear{
|
|
6801
|
+
width:42px;
|
|
6802
|
+
height:42px;
|
|
6803
|
+
display:grid;
|
|
6804
|
+
place-items:center;
|
|
6805
|
+
border-radius:14px;
|
|
6806
|
+
text-decoration:none;
|
|
6807
|
+
background:rgba(0,230,118,.08);
|
|
6808
|
+
border:1px solid rgba(0,230,118,.16);
|
|
6809
|
+
color:var(--nx-green);
|
|
6810
|
+
box-shadow:0 0 16px rgba(0,230,118,.12);
|
|
6811
|
+
}
|
|
6812
|
+
.topbar-gear:hover{
|
|
6813
|
+
border-color:rgba(0,230,118,.48);
|
|
6814
|
+
background:rgba(0,230,118,.13);
|
|
6815
|
+
}
|
|
6816
|
+
.menu{
|
|
6817
|
+
top:calc(100% + 10px) !important;
|
|
6818
|
+
left:24px !important;
|
|
6819
|
+
background:rgba(5, 18, 32, .96) !important;
|
|
6820
|
+
border-color:rgba(102, 149, 194, .24) !important;
|
|
6821
|
+
box-shadow:0 24px 54px rgba(0,0,0,.48) !important;
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
.card{
|
|
6825
|
+
background:linear-gradient(180deg, rgba(7,22,38,.86), rgba(2,12,22,.82)) !important;
|
|
6826
|
+
border:1px solid var(--nx-line) !important;
|
|
6827
|
+
border-radius:16px !important;
|
|
6828
|
+
box-shadow:0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035) !important;
|
|
6829
|
+
}
|
|
6830
|
+
.card-header{
|
|
6831
|
+
margin-bottom:12px !important;
|
|
6832
|
+
color:rgba(241,246,251,.94) !important;
|
|
6833
|
+
font-weight:850;
|
|
6834
|
+
letter-spacing:.1px;
|
|
6835
|
+
}
|
|
6836
|
+
.card-header .legend-color{
|
|
6837
|
+
width:10px !important;
|
|
6838
|
+
height:10px !important;
|
|
6839
|
+
border-radius:999px !important;
|
|
6840
|
+
background:var(--nx-green) !important;
|
|
6841
|
+
box-shadow:0 0 15px var(--nx-green);
|
|
6842
|
+
}
|
|
6843
|
+
|
|
6844
|
+
.content.nw-dashboard{
|
|
6845
|
+
width:100%;
|
|
6846
|
+
max-width:1920px !important;
|
|
6847
|
+
margin:0 auto !important;
|
|
6848
|
+
padding:14px 16px 20px !important;
|
|
6849
|
+
display:grid !important;
|
|
6850
|
+
grid-template-columns:minmax(270px, 320px) minmax(0, 1fr) minmax(288px, 330px);
|
|
6851
|
+
gap:16px;
|
|
6852
|
+
align-items:start;
|
|
6853
|
+
}
|
|
6854
|
+
.nw-dashboard-main{
|
|
6855
|
+
min-width:0;
|
|
6856
|
+
display:grid;
|
|
6857
|
+
gap:14px;
|
|
6858
|
+
}
|
|
6859
|
+
.nw-dashboard-rail{
|
|
6860
|
+
min-width:0;
|
|
6861
|
+
display:grid;
|
|
6862
|
+
gap:14px;
|
|
6863
|
+
align-self:start;
|
|
6864
|
+
position:sticky;
|
|
6865
|
+
top:calc(var(--topbar-h) + 14px);
|
|
6866
|
+
}
|
|
6867
|
+
.nw-panel{
|
|
6868
|
+
padding:16px !important;
|
|
6869
|
+
}
|
|
6870
|
+
.nw-panel-title{
|
|
6871
|
+
display:flex;
|
|
6872
|
+
align-items:center;
|
|
6873
|
+
gap:10px;
|
|
6874
|
+
margin:2px 0 14px;
|
|
6875
|
+
font-size:15px;
|
|
6876
|
+
font-weight:850;
|
|
6877
|
+
color:rgba(255,255,255,.94);
|
|
6878
|
+
}
|
|
6879
|
+
.nw-panel-icon{ color:var(--nx-green); filter:drop-shadow(0 0 10px rgba(0,230,118,.35)); }
|
|
6880
|
+
.nw-system-ok{
|
|
6881
|
+
margin:-3px 0 16px;
|
|
6882
|
+
padding-left:36px;
|
|
6883
|
+
color:var(--nx-green);
|
|
6884
|
+
font-size:13px;
|
|
6885
|
+
font-weight:700;
|
|
6886
|
+
}
|
|
6887
|
+
.nw-system-ok::before{ content:'◉ '; font-size:10px; }
|
|
6888
|
+
.nw-status-list,
|
|
6889
|
+
.nw-overview-list,
|
|
6890
|
+
.nw-value-list{
|
|
6891
|
+
display:grid;
|
|
6892
|
+
gap:0;
|
|
6893
|
+
overflow:hidden;
|
|
6894
|
+
border-radius:14px;
|
|
6895
|
+
background:rgba(255,255,255,.025);
|
|
6896
|
+
}
|
|
6897
|
+
.nw-status-row,
|
|
6898
|
+
.nw-overview-row{
|
|
6899
|
+
display:flex;
|
|
6900
|
+
align-items:center;
|
|
6901
|
+
gap:12px;
|
|
6902
|
+
min-height:54px;
|
|
6903
|
+
padding:11px 12px;
|
|
6904
|
+
border-bottom:1px solid rgba(255,255,255,.06);
|
|
6905
|
+
}
|
|
6906
|
+
.nw-status-row:last-child,
|
|
6907
|
+
.nw-overview-row:last-child,
|
|
6908
|
+
.nw-value-row:last-child{ border-bottom:0; }
|
|
6909
|
+
.nw-status-icon,
|
|
6910
|
+
.nw-overview-icon{
|
|
6911
|
+
width:36px;
|
|
6912
|
+
height:36px;
|
|
6913
|
+
flex:0 0 auto;
|
|
6914
|
+
display:grid;
|
|
6915
|
+
place-items:center;
|
|
6916
|
+
border-radius:999px;
|
|
6917
|
+
background:rgba(255,255,255,.055);
|
|
6918
|
+
border:1px solid rgba(255,255,255,.07);
|
|
6919
|
+
color:var(--nx-green);
|
|
6920
|
+
}
|
|
6921
|
+
.nw-overview-icon{ color:var(--nx-blue); }
|
|
6922
|
+
.nw-overview-icon--warn{ color:var(--nx-yellow); }
|
|
6923
|
+
.nw-status-row span:last-child,
|
|
6924
|
+
.nw-overview-row span:last-child{
|
|
6925
|
+
display:grid;
|
|
6926
|
+
gap:2px;
|
|
6927
|
+
min-width:0;
|
|
6928
|
+
}
|
|
6929
|
+
.nw-status-row b,
|
|
6930
|
+
.nw-overview-row small{
|
|
6931
|
+
color:rgba(255,255,255,.83);
|
|
6932
|
+
font-size:13px;
|
|
6933
|
+
font-weight:650;
|
|
6934
|
+
}
|
|
6935
|
+
.nw-status-row small{
|
|
6936
|
+
color:var(--nx-green);
|
|
6937
|
+
font-weight:800;
|
|
6938
|
+
}
|
|
6939
|
+
.nw-overview-row b{
|
|
6940
|
+
font-size:21px;
|
|
6941
|
+
line-height:1.05;
|
|
6942
|
+
color:var(--nx-text);
|
|
6943
|
+
letter-spacing:.15px;
|
|
6944
|
+
}
|
|
6945
|
+
.nw-live-stand{
|
|
6946
|
+
display:flex;
|
|
6947
|
+
align-items:center;
|
|
6948
|
+
justify-content:space-between;
|
|
6949
|
+
gap:12px;
|
|
6950
|
+
margin-top:14px;
|
|
6951
|
+
padding:0 4px;
|
|
6952
|
+
font-size:12px;
|
|
6953
|
+
color:var(--nx-muted);
|
|
6954
|
+
}
|
|
6955
|
+
.nw-live-stand b{ color:rgba(255,255,255,.78); font-weight:600; }
|
|
6956
|
+
.nw-live-dot{
|
|
6957
|
+
width:11px;
|
|
6958
|
+
height:11px;
|
|
6959
|
+
border-radius:999px;
|
|
6960
|
+
background:var(--nx-green);
|
|
6961
|
+
box-shadow:0 0 16px var(--nx-green);
|
|
6962
|
+
flex:0 0 auto;
|
|
6963
|
+
}
|
|
6964
|
+
.nw-live-dot.is-offline{ background:#7d8b99; box-shadow:none; }
|
|
6965
|
+
|
|
6966
|
+
.card.energy-web{
|
|
6967
|
+
position:relative;
|
|
6968
|
+
overflow:hidden;
|
|
6969
|
+
min-height:575px;
|
|
6970
|
+
padding:18px !important;
|
|
6971
|
+
}
|
|
6972
|
+
.card.energy-web::before{
|
|
6973
|
+
content:'';
|
|
6974
|
+
position:absolute;
|
|
6975
|
+
inset:-1px;
|
|
6976
|
+
pointer-events:none;
|
|
6977
|
+
opacity:.62;
|
|
6978
|
+
background:
|
|
6979
|
+
radial-gradient(ellipse at 78% 36%, rgba(0,230,118,.22), transparent 36%),
|
|
6980
|
+
radial-gradient(ellipse at 14% 30%, rgba(49,183,255,.13), transparent 32%),
|
|
6981
|
+
repeating-linear-gradient(166deg, rgba(0,230,118,.10) 0 1px, transparent 1px 11px);
|
|
6982
|
+
mask-image:linear-gradient(120deg, transparent 0%, rgba(0,0,0,.85) 24%, rgba(0,0,0,.95) 72%, transparent 100%);
|
|
6983
|
+
}
|
|
6984
|
+
.card.energy-web::after{
|
|
6985
|
+
content:'';
|
|
6986
|
+
position:absolute;
|
|
6987
|
+
inset:0;
|
|
6988
|
+
pointer-events:none;
|
|
6989
|
+
background:radial-gradient(circle at center, transparent 0 46%, rgba(0,0,0,.16) 100%);
|
|
6990
|
+
}
|
|
6991
|
+
.card.energy-web > *{ position:relative; z-index:1; }
|
|
6992
|
+
.card.energy-web .web-wrap{
|
|
6993
|
+
--flowSvgMaxW:1040px;
|
|
6994
|
+
--flowStatusMaxW:1000px;
|
|
6995
|
+
min-height:var(--flowMinH, 505px) !important;
|
|
6996
|
+
}
|
|
6997
|
+
.card.energy-web .web{
|
|
6998
|
+
width:min(100%, var(--flowSvgMaxW, 1040px)) !important;
|
|
6999
|
+
}
|
|
7000
|
+
.web .ring{ stroke-width:4.2 !important; }
|
|
7001
|
+
.web .node .ico{ opacity:.70 !important; filter:drop-shadow(0 0 9px rgba(255,255,255,.18)); }
|
|
7002
|
+
.web text.val{ font-size:15px !important; }
|
|
7003
|
+
.web text.lbl{ font-size:12.5px !important; }
|
|
7004
|
+
.web text.minor{ font-weight:850; }
|
|
7005
|
+
.flow{ stroke-width:4.4 !important; filter:drop-shadow(0 0 8px currentColor); }
|
|
7006
|
+
|
|
7007
|
+
.ems-status-wrap{
|
|
7008
|
+
display:flex;
|
|
7009
|
+
align-items:center;
|
|
7010
|
+
gap:12px;
|
|
7011
|
+
width:min(100%, var(--flowStatusMaxW, 1000px));
|
|
7012
|
+
margin:14px auto 0;
|
|
7013
|
+
padding:9px 12px;
|
|
7014
|
+
border-radius:15px;
|
|
7015
|
+
border:1px solid rgba(255,255,255,.10);
|
|
7016
|
+
background:rgba(1,9,18,.68);
|
|
7017
|
+
box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
|
|
7018
|
+
}
|
|
7019
|
+
.ems-status-wrap.hidden{ display:none !important; }
|
|
7020
|
+
.card.energy-web .ems-status{
|
|
7021
|
+
width:auto !important;
|
|
7022
|
+
margin:0 !important;
|
|
7023
|
+
flex:1 1 auto;
|
|
7024
|
+
min-width:0;
|
|
7025
|
+
padding:0 !important;
|
|
7026
|
+
border:0 !important;
|
|
7027
|
+
border-radius:0 !important;
|
|
7028
|
+
background:transparent !important;
|
|
7029
|
+
box-shadow:none !important;
|
|
7030
|
+
text-align:left !important;
|
|
7031
|
+
color:rgba(255,255,255,.92);
|
|
7032
|
+
font-weight:650 !important;
|
|
7033
|
+
line-height:1.35;
|
|
7034
|
+
}
|
|
7035
|
+
.ems-status-btn{
|
|
7036
|
+
flex:0 0 auto;
|
|
7037
|
+
border-color:rgba(255,211,26,.25) !important;
|
|
7038
|
+
background:rgba(255,211,26,.08) !important;
|
|
7039
|
+
color:#ffe48a !important;
|
|
7040
|
+
font-weight:850;
|
|
7041
|
+
}
|
|
7042
|
+
|
|
7043
|
+
.nw-ai-advisor-card{
|
|
7044
|
+
padding:16px !important;
|
|
7045
|
+
background:linear-gradient(135deg, rgba(0,230,118,.18), rgba(2,22,26,.88) 45%, rgba(8,25,40,.90)) !important;
|
|
7046
|
+
border-color:rgba(0,230,118,.46) !important;
|
|
7047
|
+
box-shadow:0 0 0 1px rgba(0,230,118,.10), 0 20px 48px rgba(0,0,0,.28) !important;
|
|
7048
|
+
}
|
|
7049
|
+
.nw-ai-advisor-title{ font-size:17px !important; }
|
|
7050
|
+
.nw-ai-advisor-toggle{
|
|
7051
|
+
min-width:160px;
|
|
7052
|
+
color:#111 !important;
|
|
7053
|
+
background:linear-gradient(180deg, #f2f6fb, #dbe4ec) !important;
|
|
7054
|
+
border:0 !important;
|
|
7055
|
+
box-shadow:0 8px 24px rgba(0,0,0,.28);
|
|
7056
|
+
}
|
|
7057
|
+
|
|
7058
|
+
#liveStatusTiles.nw-tiles-grid{
|
|
7059
|
+
padding:0 !important;
|
|
7060
|
+
grid-template-columns:repeat(4, minmax(0,1fr));
|
|
7061
|
+
}
|
|
7062
|
+
.nw-tile{
|
|
7063
|
+
border-color:rgba(104,150,193,.20) !important;
|
|
7064
|
+
background:linear-gradient(180deg, rgba(5,19,34,.72), rgba(3,14,26,.70)) !important;
|
|
7065
|
+
box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 10px 26px rgba(0,0,0,.16) !important;
|
|
7066
|
+
}
|
|
7067
|
+
.nw-tile__progress-bar{ background:linear-gradient(90deg, #00c853, #8bf3a9) !important; }
|
|
7068
|
+
.nw-tile__icon-circle{
|
|
7069
|
+
border-color:rgba(255,255,255,.10) !important;
|
|
7070
|
+
background:rgba(255,255,255,.055) !important;
|
|
7071
|
+
}
|
|
7072
|
+
|
|
7073
|
+
.nw-value-row{
|
|
7074
|
+
display:flex;
|
|
7075
|
+
align-items:center;
|
|
7076
|
+
justify-content:space-between;
|
|
7077
|
+
gap:12px;
|
|
7078
|
+
min-height:41px;
|
|
7079
|
+
padding:10px 0;
|
|
7080
|
+
border-bottom:1px solid rgba(255,255,255,.065);
|
|
7081
|
+
color:rgba(255,255,255,.78);
|
|
7082
|
+
font-size:13px;
|
|
7083
|
+
}
|
|
7084
|
+
.nw-value-row span{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
7085
|
+
.nw-value-row b{ font-size:14px; font-weight:900; white-space:nowrap; }
|
|
7086
|
+
.nw-value-row--pv b{ color:var(--nx-yellow); }
|
|
7087
|
+
.nw-value-row--load b,
|
|
7088
|
+
.nw-value-row--ev b{ color:var(--nx-blue); }
|
|
7089
|
+
.nw-value-row--grid b{ color:var(--nx-red); }
|
|
7090
|
+
.nw-value-row--battery b{ color:var(--nx-green); }
|
|
7091
|
+
|
|
7092
|
+
.nw-weather-side-main{
|
|
7093
|
+
display:flex;
|
|
7094
|
+
align-items:center;
|
|
7095
|
+
gap:16px;
|
|
7096
|
+
margin:6px 0 16px;
|
|
7097
|
+
}
|
|
7098
|
+
.nw-weather-side-icon{
|
|
7099
|
+
width:64px;
|
|
7100
|
+
height:54px;
|
|
7101
|
+
display:grid;
|
|
7102
|
+
place-items:center;
|
|
7103
|
+
font-size:42px;
|
|
7104
|
+
filter:drop-shadow(0 0 12px rgba(255,211,26,.24));
|
|
7105
|
+
}
|
|
7106
|
+
.nw-weather-side-main b{
|
|
7107
|
+
display:block;
|
|
7108
|
+
font-size:22px;
|
|
7109
|
+
line-height:1.1;
|
|
7110
|
+
}
|
|
7111
|
+
.nw-weather-side-main small{
|
|
7112
|
+
display:block;
|
|
7113
|
+
margin-top:5px;
|
|
7114
|
+
color:var(--nx-muted);
|
|
7115
|
+
}
|
|
7116
|
+
.nw-weather-side-meta{
|
|
7117
|
+
display:grid;
|
|
7118
|
+
grid-template-columns:repeat(3, minmax(0,1fr));
|
|
7119
|
+
gap:10px;
|
|
7120
|
+
}
|
|
7121
|
+
.nw-weather-side-meta span{
|
|
7122
|
+
display:grid;
|
|
7123
|
+
gap:4px;
|
|
7124
|
+
min-width:0;
|
|
7125
|
+
color:rgba(255,255,255,.72);
|
|
7126
|
+
font-size:13px;
|
|
7127
|
+
}
|
|
7128
|
+
.nw-weather-side-meta small{
|
|
7129
|
+
color:var(--nx-muted);
|
|
7130
|
+
font-size:11px;
|
|
7131
|
+
}
|
|
7132
|
+
.nw-weather-side-meta b{
|
|
7133
|
+
font-size:12px;
|
|
7134
|
+
color:rgba(255,255,255,.88);
|
|
7135
|
+
}
|
|
7136
|
+
|
|
7137
|
+
.nw-dashboard-right .nw-quick-card{
|
|
7138
|
+
padding:16px !important;
|
|
7139
|
+
}
|
|
7140
|
+
.nw-dashboard-right #liveQuickTiles.nw-tiles-grid{
|
|
7141
|
+
display:grid;
|
|
7142
|
+
grid-template-columns:1fr !important;
|
|
7143
|
+
gap:8px;
|
|
7144
|
+
padding:0 !important;
|
|
7145
|
+
}
|
|
7146
|
+
.nw-dashboard-right .nw-quick-card .nw-tile{
|
|
7147
|
+
min-height:58px;
|
|
7148
|
+
padding:10px 12px !important;
|
|
7149
|
+
border-radius:13px !important;
|
|
7150
|
+
cursor:pointer;
|
|
7151
|
+
}
|
|
7152
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__top{
|
|
7153
|
+
align-items:center;
|
|
7154
|
+
}
|
|
7155
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__icon-circle{
|
|
7156
|
+
width:34px;
|
|
7157
|
+
height:34px;
|
|
7158
|
+
flex:0 0 34px;
|
|
7159
|
+
font-size:13px;
|
|
7160
|
+
}
|
|
7161
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__alias{ font-size:14px; }
|
|
7162
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__room{ font-size:12px; }
|
|
7163
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__middle,
|
|
7164
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__bottom{ display:none !important; }
|
|
7165
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__badge,
|
|
7166
|
+
.nw-dashboard-right .nw-quick-card .nw-tile__tip-btn{
|
|
7167
|
+
transform:scale(.92);
|
|
7168
|
+
transform-origin:right center;
|
|
7169
|
+
}
|
|
7170
|
+
|
|
7171
|
+
#weatherTile{ display:none !important; }
|
|
7172
|
+
|
|
7173
|
+
@media (max-width: 1480px){
|
|
7174
|
+
.content.nw-dashboard{
|
|
7175
|
+
grid-template-columns:minmax(250px, 300px) minmax(0, 1fr) minmax(270px, 310px);
|
|
7176
|
+
gap:14px;
|
|
7177
|
+
}
|
|
7178
|
+
#liveStatusTiles.nw-tiles-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
|
|
7179
|
+
.card.energy-web{ min-height:540px; }
|
|
7180
|
+
}
|
|
7181
|
+
|
|
7182
|
+
@media (max-width: 1180px){
|
|
7183
|
+
.content.nw-dashboard{
|
|
7184
|
+
grid-template-columns:1fr;
|
|
7185
|
+
max-width:980px !important;
|
|
7186
|
+
padding:12px !important;
|
|
7187
|
+
}
|
|
7188
|
+
.nw-dashboard-main{ order:1; }
|
|
7189
|
+
.nw-dashboard-left{
|
|
7190
|
+
order:2;
|
|
7191
|
+
position:static;
|
|
7192
|
+
grid-template-columns:repeat(2, minmax(0,1fr));
|
|
7193
|
+
}
|
|
7194
|
+
.nw-dashboard-right{
|
|
7195
|
+
order:3;
|
|
7196
|
+
position:static;
|
|
7197
|
+
grid-template-columns:repeat(2, minmax(0,1fr));
|
|
7198
|
+
}
|
|
7199
|
+
.nw-dashboard-right .nw-quick-card{ grid-column:1 / -1; }
|
|
7200
|
+
.nw-dashboard-right #liveQuickTiles.nw-tiles-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
|
|
7201
|
+
.card.energy-web{ min-height:auto; }
|
|
7202
|
+
.card.energy-web .web-wrap{ min-height:var(--flowMinH, clamp(420px, 60vw, 590px)) !important; }
|
|
7203
|
+
}
|
|
7204
|
+
|
|
7205
|
+
@media (max-width: 820px){
|
|
7206
|
+
:root{ --topbar-h:64px; }
|
|
7207
|
+
body{ padding-top:var(--topbar-h) !important; }
|
|
7208
|
+
body::before{ inset:var(--topbar-h) 0 0 0; }
|
|
7209
|
+
.topbar{ height:var(--topbar-h) !important; padding:0 12px !important; gap:10px; }
|
|
7210
|
+
.topbar .brand,
|
|
7211
|
+
.topbar .brand img{ width:40px !important; height:40px !important; }
|
|
7212
|
+
#menuBtn,.topbar-gear{ width:38px; height:38px; border-radius:12px; }
|
|
7213
|
+
.topbar h1{ font-size:16px !important; max-width:42vw; overflow:hidden; text-overflow:ellipsis; }
|
|
7214
|
+
.topbar .tabs{ display:none !important; }
|
|
7215
|
+
.menu{ left:10px !important; }
|
|
7216
|
+
.content.nw-dashboard{ padding:10px !important; gap:10px; }
|
|
7217
|
+
.nw-dashboard-left,
|
|
7218
|
+
.nw-dashboard-right{ grid-template-columns:1fr; gap:10px; }
|
|
7219
|
+
.nw-dashboard-main{ gap:10px; }
|
|
7220
|
+
.nw-panel,.card.energy-web,.nw-ai-advisor-card,.nw-dashboard-right .nw-quick-card{ padding:12px !important; }
|
|
7221
|
+
#liveStatusTiles.nw-tiles-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
|
|
7222
|
+
.card.energy-web .web-wrap{ min-height:var(--flowMinH, clamp(360px, 88vw, 480px)) !important; }
|
|
7223
|
+
.ems-status-wrap{ align-items:stretch; flex-direction:column; border-radius:14px; }
|
|
7224
|
+
.ems-status-btn{ width:100%; }
|
|
7225
|
+
.nw-ai-advisor-main{ grid-template-columns:auto minmax(0,1fr) !important; }
|
|
7226
|
+
.nw-ai-advisor-toggle{ grid-column:1 / -1; width:100%; }
|
|
7227
|
+
.nw-dashboard-right #liveQuickTiles.nw-tiles-grid{ grid-template-columns:1fr !important; }
|
|
7228
|
+
}
|
|
7229
|
+
|
|
7230
|
+
@media (max-width: 480px){
|
|
7231
|
+
.content.nw-dashboard{ padding:8px !important; }
|
|
7232
|
+
.topbar h1{ max-width:36vw; }
|
|
7233
|
+
.card{ border-radius:14px !important; }
|
|
7234
|
+
.nw-status-row,.nw-overview-row{ min-height:50px; padding:9px 10px; }
|
|
7235
|
+
.nw-status-icon,.nw-overview-icon{ width:32px; height:32px; }
|
|
7236
|
+
.nw-overview-row b{ font-size:18px; }
|
|
7237
|
+
.nw-weather-side-meta{ grid-template-columns:1fr 1fr 1fr; gap:6px; }
|
|
7238
|
+
.nw-value-row{ font-size:12px; }
|
|
7239
|
+
.nw-value-row b{ font-size:13px; }
|
|
7240
|
+
#liveStatusTiles.nw-tiles-grid{ grid-template-columns:1fr; }
|
|
7241
|
+
.web text.val{ font-size:13px !important; }
|
|
7242
|
+
.web text.lbl{ font-size:11px !important; }
|
|
7243
|
+
}
|
|
7244
|
+
|
|
7245
|
+
/* Responsive overlay polish: quick-control dialogs must stay above the fixed cockpit bar. */
|
|
7246
|
+
.modal{ z-index:2200 !important; }
|
|
7247
|
+
.dialog{
|
|
7248
|
+
background:linear-gradient(180deg, rgba(7,22,38,.96), rgba(3,12,22,.98)) !important;
|
|
7249
|
+
border-color:rgba(95,144,190,.30) !important;
|
|
7250
|
+
box-shadow:0 26px 72px rgba(0,0,0,.56), inset 0 1px 0 rgba(255,255,255,.04) !important;
|
|
7251
|
+
}
|
|
7252
|
+
.web g.node,
|
|
7253
|
+
.web g.node *{ touch-action:manipulation; }
|
|
7254
|
+
@media (max-width: 820px){
|
|
7255
|
+
.dialog{ width:min(94vw, 720px) !important; max-height:88vh !important; }
|
|
7256
|
+
}
|
package/www/sw.js
CHANGED