therminator/data/index.html

47 lines
1.6 KiB
HTML
Raw Normal View History

2023-12-13 16:32:12 +00:00
<!DOCTYPE html>
<html>
2023-12-18 13:49:09 +00:00
<meta charset="UTF-8" />
2023-12-14 18:27:07 +00:00
<head>
<title>therminator</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
2023-12-14 18:27:07 +00:00
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<h1>/* therminator */</h1>
<p>last sensor update: <span id="time"></span></p>
2023-12-19 20:09:27 +00:00
<p>chart update interval (ms): <select id="chartUpd" onchange="location.reload()">
<option>200</option>
<option selected>500</option>
<option>1000</option>
</select></p>
<p>data update interval (ms): <select id="upd" onload="getUpdateInterval()" onchange="setUpdateInterval()">
<option>10</option>
<option>20</option>
<option>50</option>
<option>100</option>
<option>200</option>
<option selected>500</option>
<option>1000</option>
</select></p>
<button id="startRec" onclick="startRecording()">Start recording</button>
<button id="stopRec" onclick="stopRecording()">Stop recording</button>
2023-12-18 13:49:09 +00:00
<table>
<tr>
<td class="chart-container">
2023-12-19 20:28:33 +00:00
<h2>Channel A:</h2>
<label for="labelA">label: </label><input type="text" value="tempA" id="labelA">
2023-12-18 13:49:09 +00:00
<div id="error-tempA"></div>
<canvas id="chartA"></canvas>
</td>
<td class="chart-container">
<h2>Channel B:</h2>
2023-12-19 20:28:33 +00:00
<label for="labelB">label: </label><input type="text" value="tempB" id="labelB">
2023-12-18 13:49:09 +00:00
<div id="error-tempB"></div>
<canvas id="chartB"></canvas>
</td>
</tr>
</table>
2023-12-14 18:27:07 +00:00
<script src="script.js"></script>
</body>
</html>