tesla-charge-controller/webapp/index.html
Alex Janka dca4135e64
Some checks failed
Build .deb on release / Build-Deb (push) Has been cancelled
fix webpage styling
2024-02-26 10:12:50 +11:00

44 lines
1.7 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tesla Charge Control</title>
<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>">
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body onload="init_main()">
<div class="container">
<h3>Automatic control:</h3>
<div class="selector disabled" id="control-selector">
<input id="control-enabled" type="radio" name="control" onclick="enable_automatic_control()" disabled>
<label for="control-enabled">enabled</label>
<input id="control-disabled" type="radio" name="control" onclick="disable_automatic_control()" disabled>
<label for="control-disabled">disabled</label>
</div>
<div id="rate-control">
<h3>Charge rate:</h3>
<input type="number" id="max-rate" max="15" min="0" onchange="change_max()" autocomplete="off" />
<button id="set-maximum" onclick="set_maximum()" disabled>Set maximum</button>
<br><br>
<input type="number" id="min-rate" max="15" min="0" onchange="change_min()" autocomplete="off" />
<button id="set-minimum" onclick="set_minimum()" disabled>Set minimum</button>
</div>
<div id="info"></div>
<button onclick="flash()">flash</button>
<p>
<a class="outlink" href="/grafana">Grafana→</a>
<a class="outlink" href="/info">Car state info→</a>
<a class="outlink" href="/regulator">Regulator control→</a>
<a class="outlink" href="/pid">PID control variables→</a>
<a class="outlink" href="/shutoff">Shutoff voltage control→</a>
</p>
</div>
</body>
</html>