Finish MVP
This commit is contained in:
@@ -8,23 +8,33 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Sensor {name}</h1>
|
||||
<h2>Sensor Values:</h2>
|
||||
<h2>Sensor Values</h2>
|
||||
<ul>
|
||||
<li>Temperature: {temp}°C</li>
|
||||
<li>Humidity: {humidity}%</li>
|
||||
</ul>
|
||||
<form action="/"><button type="submit">Update Values</button></form>
|
||||
<h2>Relay:</h2>
|
||||
<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>
|
||||
<form action="/toggle"><button type="submit">Toggle Relay</button></form>
|
||||
</span>
|
||||
<span>
|
||||
<form action="/on"><button type="submit">Relay On</button></form>
|
||||
<form action="/off"><button type="submit">Relay Off</button></form>
|
||||
<form action="/toggle"><button type="submit">Toggle Relay</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>
|
||||
|
||||
Reference in New Issue
Block a user