41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Sensor {name}</title>
|
|
</head>
|
|
<body>
|
|
<h1>Sensor {name}</h1>
|
|
<h2>Sensor Values</h2>
|
|
<ul>
|
|
<li>Temperature: {temp}°C</li>
|
|
<li>Humidity: {humidity}%</li>
|
|
</ul>
|
|
<form action="/update"><button type="submit">Update Values</button></form>
|
|
<form action="/get_logs"><button type="submit">Get Logs</button></form>
|
|
|
|
<h2>Relay</h2>
|
|
<p>
|
|
Status: {relay_status}
|
|
</p>
|
|
<p>
|
|
<span>
|
|
<form action="/on"><button type="submit">Relay On</button></form>
|
|
<form action="/off"><button type="submit">Relay Off</button></form>
|
|
</span>
|
|
</p>
|
|
|
|
<h2>Config</h2>
|
|
<p>
|
|
<form action="/set_limit" method="POST">
|
|
<label for="limit">Humidity Limit (%)</label>
|
|
<input type="number"/ id="limit" name="limit" value="{humidity_limit}">
|
|
<button type="submit">Set</button>
|
|
</form>
|
|
</p>
|
|
</body>
|
|
</html>
|
|
|