Add secure 6h timeline with CSV merge and timestamped serial events
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!doctype html>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<main class="container">
|
||||
<h1>ESP32 Serial Live</h1>
|
||||
<p><a href="/">Zurück zum WLAN-Portal</a></p>
|
||||
<p><a href="/">Zurueck zum WLAN-Portal</a> | <a href="/timeline">Zur Timeline</a></p>
|
||||
<pre id="terminal" class="terminal"></pre>
|
||||
</main>
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
events.onmessage = (evt) => {
|
||||
try {
|
||||
const payload = JSON.parse(evt.data);
|
||||
appendLine(payload.line || '');
|
||||
const ts = payload.ts_hms ? `[${payload.ts_hms}] ` : '';
|
||||
appendLine(`${ts}${payload.line || ''}`);
|
||||
} catch (e) {
|
||||
appendLine(evt.data || '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user