therminator/data/index.html
2023-12-24 01:24:04 +02:00

80 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html>
<meta charset="UTF-8" />
<head>
<title>therminator</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<h1>/* therminator */</h1>
<p>last sensor update: <span id="time"></span></p>
<div id="du">
<p>current data update interval (ms): <span id="updInt"></span></p>
<p>
set data update interval (ms):
<select id="upd" onchange="setUpdateInterval();">
<option>100</option>
<option>200</option>
<option selected>500</option>
<option>1000</option>
<option>2000</option>
<option>5000</option>
<option>10000</option>
</select>
</p>
</div>
<div id="cu">
<p>current chart update interval (ms): <span id="cupdInt"></span></p>
<p>
set chart update interval (ms):
<select id="chartUpd" onchange="location.reload()">
<option>200</option>
<option>500</option>
<option selected>1000</option>
<option>2000</option>
<option>5000</option>
</select>
</p>
</div>
<br />
<div id="record">
<button id="startRec" onclick="startRecording()">Start recording</button>
<button id="stopRec" onclick="stopRecording()">Stop recording</button>
<span id="recInfo"
><svg class="blinking" width="20px" height="20px">
<circle cx="10" cy="10" r="7" fill="red" />
Sorry, your browser does not support inline SVG.
</svg>
<p>Recording CSV data to <span id="filename"></span></p></span
><span id="timeLeft"></span>
</div>
<div id="timedCheck">
<input type="checkbox" id="timedRec" /><label for="timedRec"
>Timed recording</label
>
</div>
<span id="timedSettings">
<label for="timer">Stop recording after (min): </label
><input type="text" id="timer" />
</span>
<table>
<tr>
<td class="chart-container">
<h2>Channel A <span id="error-tempA"></span></h2>
<label for="labelA">label: </label
><input type="text" value="tempA" id="labelA" />
<canvas id="chartA"></canvas>
</td>
<td class="chart-container">
<h2>Channel B <span id="error-tempB"></span></h2>
<label for="labelB">label: </label
><input type="text" value="tempB" id="labelB" />
<canvas id="chartB"></canvas>
</td>
</tr>
</table>
<script src="script.js"></script>
</body>
</html>