Primo commit: Modbus logger con API e frontend
This commit is contained in:
commit
48a6aee18f
10 files changed
+782
No files matched your search
@@ -0,0 +1,96 @@
|
||||
<!doctype html>
|
||||
<html lang="it" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>WallBox by Alberto Tilaro</title>
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 64%22><rect width=%2264%22 height=%2264%22 rx=%2212%22 fill=%22%230b1220%22/><path d=%22M38 6L14 36h14l-2 22 24-30H36l2-22z%22 fill=%22%23facc15%22 stroke=%22%23fde68a%22 stroke-width=%222%22/></svg>">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="brand">
|
||||
<img class="logo" src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 64%22><rect width=%2264%22 height=%2264%22 rx=%2212%22 fill=%22%230b1220%22/><path d=%22M38 6L14 36h14l-2 22 24-30H36l2-22z%22 fill=%22%23facc15%22 stroke=%22%23fde68a%22 stroke-width=%222%22/></svg>" alt="⚡" />
|
||||
<h1>WallBox by Alberto Tilaro</h1>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<label>Base URL <input id="baseUrl" placeholder="http://wallbox:8000"></label>
|
||||
<label>API Key <input id="apiKey" placeholder="X-API-Key"></label>
|
||||
<label>Intervallo
|
||||
<select id="range">
|
||||
<option value="1h">Ultima 1h</option>
|
||||
<option value="6h">Ultime 6h</option>
|
||||
<option value="24h" selected>Ultime 24h</option>
|
||||
<option value="7d">Ultimi 7 giorni</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>Min V <input id="minV" type="number" step="1" min="0" value="180"></label>
|
||||
<label>Max V <input id="maxV" type="number" step="1" min="0" value="260"></label>
|
||||
<label>Max kW <input id="maxKw" type="number" step="0.1" min="0" value="3.0"></label>
|
||||
<label>Max ΔkWh <input id="maxDkwh" type="number" step="0.01" min="0" placeholder="auto"></label>
|
||||
<button id="refresh">Aggiorna</button>
|
||||
<button id="resetZoom">Reset zoom</button>
|
||||
<label class="switch">Auto <input id="auto" type="checkbox" checked></label>
|
||||
<div class="theme">
|
||||
<button id="themeToggle" title="Dark/Light">🌙/☀️</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="banner" class="banner" style="display:none"></div>
|
||||
</header>
|
||||
|
||||
<section class="cards">
|
||||
<div class="card">
|
||||
<div class="card-title">Tensione</div>
|
||||
<div class="card-value"><span id="v">—</span> <small>V</small></div>
|
||||
<div class="card-ts" id="tsV">Agg.: —</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-title">Potenza</div>
|
||||
<div class="card-value"><span id="p">—</span> <small>kW</small></div>
|
||||
<div class="card-ts" id="tsP">Agg.: —</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-title">Energia</div>
|
||||
<div class="card-value"><span id="e">—</span> <small>kWh</small></div>
|
||||
<div class="card-ts" id="tsE">Agg.: —</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="chart-block">
|
||||
<div class="chart-header">
|
||||
<h2>Tensione (ora locale)</h2>
|
||||
<span class="tz-note">X in ora locale (Europe/Rome), dati in UTC.</span>
|
||||
</div>
|
||||
<div id="chartV" class="chart-fixed"></div>
|
||||
</section>
|
||||
|
||||
<section class="chart-block">
|
||||
<div class="chart-header">
|
||||
<h2>Potenza (ora locale)</h2>
|
||||
<span class="tz-note">X in ora locale (Europe/Rome), dati in UTC.</span>
|
||||
</div>
|
||||
<div id="chartP" class="chart-fixed"></div>
|
||||
</section>
|
||||
|
||||
<section class="chart-block">
|
||||
<div class="chart-header">
|
||||
<h2>Energia Δ dal primo punto (ora locale)</h2>
|
||||
<span class="tz-note">X in ora locale (Europe/Rome), dati in UTC.</span>
|
||||
</div>
|
||||
<div id="chartE" class="chart-fixed"></div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<span id="status">Pronto</span>
|
||||
<span id="dbg" class="dbg"></span>
|
||||
<span id="lastTS" class="dbg"></span>
|
||||
<span id="qinfo" class="dbg"></span>
|
||||
<span id="rinfo" class="dbg"></span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user