2024-01-07 10:01:59 +11:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Tesla Charge Control</title>
|
2024-01-07 10:33:32 +11:00
|
|
|
<link id="favicon" rel="icon"
|
|
|
|
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⏳</text></svg>">
|
2024-01-23 10:40:56 +11:00
|
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
<script src="script.js"></script>
|
2024-01-07 10:01:59 +11:00
|
|
|
</head>
|
|
|
|
|
2024-01-23 10:40:56 +11:00
|
|
|
<body onload="init_main()">
|
2024-01-19 10:28:00 +11:00
|
|
|
<div class="container">
|
|
|
|
<h3>Automatic control:</h3>
|
2024-01-21 08:36:33 +11:00
|
|
|
<div class="selector disabled" id="control-selector">
|
|
|
|
<input id="control-enabled" type="radio" name="control" onclick="enable_automatic_control()" disabled>
|
2024-01-19 10:28:00 +11:00
|
|
|
<label for="control-enabled">enabled</label>
|
2024-01-21 08:36:33 +11:00
|
|
|
<input id="control-disabled" type="radio" name="control" onclick="disable_automatic_control()" disabled>
|
2024-01-19 10:28:00 +11:00
|
|
|
<label for="control-disabled">disabled</label>
|
|
|
|
</div>
|
2024-01-21 15:25:28 +11:00
|
|
|
|
|
|
|
<div id="rate-control">
|
|
|
|
<h3>Charge rate:</h3>
|
2024-01-24 15:59:22 +11:00
|
|
|
<input type="number" id="max-rate" max="15" min="0" onchange="change_max()" autocomplete="off" />
|
2024-01-21 15:25:28 +11:00
|
|
|
<button id="set-maximum" onclick="set_maximum()" disabled>Set maximum</button>
|
|
|
|
<br><br>
|
2024-01-24 15:59:22 +11:00
|
|
|
<input type="number" id="min-rate" max="15" min="0" onchange="change_min()" autocomplete="off" />
|
2024-01-21 15:25:28 +11:00
|
|
|
<button id="set-minimum" onclick="set_minimum()" disabled>Set minimum</button>
|
|
|
|
</div>
|
2024-01-19 10:28:00 +11:00
|
|
|
<div id="info"></div>
|
2024-01-23 10:40:56 +11:00
|
|
|
<button onclick="flash()">flash</button>
|
|
|
|
<p>
|
|
|
|
<a class="outlink" href="/grafana">Grafana→</a>
|
|
|
|
<a class="outlink" href="/info">Car state info→</a>
|
2024-02-13 09:32:35 +11:00
|
|
|
<a class="outlink" href="/regulator">Regulator control→</a>
|
2024-01-23 10:40:56 +11:00
|
|
|
<a class="outlink" href="/pid">PID control variables→</a>
|
2024-01-26 09:04:06 +11:00
|
|
|
<a class="outlink" href="/shutoff">Shutoff voltage control→</a>
|
2024-01-23 10:40:56 +11:00
|
|
|
</p>
|
2024-01-19 10:28:00 +11:00
|
|
|
</div>
|
|
|
|
</body>
|
2024-01-07 10:01:59 +11:00
|
|
|
|
|
|
|
</html>
|