Version OK avec Mqtt
This commit is contained in:
32
data/index.html
Normal file
32
data/index.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Thermostat Config</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; margin: 2em; }
|
||||
label { display: block; margin-top: 1em; }
|
||||
input, select { width: 100%; padding: 0.5em; }
|
||||
button { margin-top: 2em; padding: 1em; width: 100%; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Thermostat WiFi & MQTT Config</h2>
|
||||
<form method="POST" action="/save">
|
||||
<label>WiFi SSID<input name="ssid" required></label>
|
||||
<label>WiFi Password<input name="wpass" type="password"></label>
|
||||
<label>MQTT Server<input name="mqtt" required></label>
|
||||
<label>MQTT Port<input name="mqttport" type="number" value="1883"></label>
|
||||
<label>MQTT User<input name="mqttuser"></label>
|
||||
<label>MQTT Password<input name="mqttpass" type="password"></label>
|
||||
<label>Device ID<input name="devid" required></label>
|
||||
<label>Temperature Sensor ID<input name="tempid" required></label>
|
||||
<label>Confort Temp (°C)<input name="confort" type="number" value="20" step="0.1"></label>
|
||||
<label>Eco Temp (°C)<input name="eco" type="number" value="17" step="0.1"></label>
|
||||
<label>Boost Temp (°C)<input name="boost" type="number" value="22" step="0.1"></label>
|
||||
<label>Hors Gel Temp (°C)<input name="horsgel" type="number" value="7" step="0.1"></label>
|
||||
<button type="submit">Save & Reboot</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user