2024-08-14 20:25:15 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Hestia</title>
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
2024-08-15 14:28:11 +00:00
|
|
|
<script src="https://unpkg.com/mqtt/dist/mqtt.js"></script>
|
2024-08-14 23:00:58 +00:00
|
|
|
<script type="module" src="./assets/hestia.js"></script>
|
2024-08-14 20:25:15 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="bg-gray-900 text-white font-sans">
|
|
|
|
<marquee style="color: yellow; background-color: red; font-weight: bold;">
|
|
|
|
PELLET STOVE FREE TRIAL HAS ENDED, PLEASE PURCHASE A LICENSE NOW!
|
|
|
|
</marquee>
|
|
|
|
|
|
|
|
<div class="container mx-auto py-8 max-w-md">
|
|
|
|
<h1 class="text-3xl text-center text-purple-400 font-bold mb-8">Hestia Control Panel</h1>
|
|
|
|
|
|
|
|
<div class="controls-container bg-gray-800 p-6 rounded-lg shadow-lg space-y-4">
|
|
|
|
<table class="min-w-full bg-gray-900 text-white rounded-lg shadow-lg">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="py-2 px-4 text-left text-purple-400">Element</th>
|
|
|
|
<th class="py-2 px-4 text-left text-purple-400">Status</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="border-b border-gray-700">
|
|
|
|
<td class="py-2 px-4">Igniter</td>
|
2024-08-15 00:29:22 +00:00
|
|
|
<td class="py-2 px-4" id="igniter-status">Placeholder</td>
|
2024-08-14 20:25:15 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="border-b border-gray-700">
|
|
|
|
<td class="py-2 px-4">Exhaust</td>
|
2024-08-15 00:29:22 +00:00
|
|
|
<td class="py-2 px-4" id="exhaust-status">Placeholder</td>
|
2024-08-14 20:25:15 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="py-2 px-4">Auger</td>
|
2024-08-15 00:29:22 +00:00
|
|
|
<td class="py-2 px-4" id="auger-status">Placeholder</td>
|
2024-08-14 20:25:15 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-08-15 14:45:04 +00:00
|
|
|
<div class="button-container flex">
|
|
|
|
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="igniter-toggle-btn" value="Toggle Igniter" name="igniterToggle" onclick="power('igniter')">
|
|
|
|
</div>
|
|
|
|
<div class="button-container flex mt-4">
|
|
|
|
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="exhaust-toggle-btn" value="Toggle Exhaust" name="exhaustToggle" onclick="power('exhaust')">
|
|
|
|
</div>
|
|
|
|
<div class="button-container flex mt-4">
|
|
|
|
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="auger-toggle-btn" value="Toggle Auger" name="augerToggle" onclick="power('auger')">
|
|
|
|
</div>
|
2024-08-14 20:25:15 +00:00
|
|
|
<form action="/" method="post">
|
|
|
|
<!-- Set feed rates -->
|
|
|
|
<div class="form-group mt-4">
|
|
|
|
<label for="feedRate" class="block text-sm font-medium text-purple-400">Feed Rate:</label>
|
|
|
|
<select name="feedRate" class="form-control bg-gray-700 text-white mt-1 block w-full rounded border-gray-600 focus:border-purple-500 focus:ring-purple-500 py-2 px-4">
|
|
|
|
<option value="500">Low</option>
|
|
|
|
<option value="625">Medium-Low</option>
|
|
|
|
<option value="750">Medium</option>
|
|
|
|
<option value="875">Medium-High</option>
|
|
|
|
<option value="1000">High</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="button-container flex justify-end mt-4">
|
2024-08-15 00:34:31 +00:00
|
|
|
<input class="btn bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded w-full" type="submit" id="reload" value="Set Feed Rate" name="reload">
|
2024-08-14 20:25:15 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-center my-8">
|
|
|
|
<img src="./assets/dancing_jesus.gif" class="img-fluid mx-auto rounded-lg shadow-lg" alt="Dancing Jesus">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="controls-container bg-gray-800 p-6 rounded-lg shadow-lg hidden" id="quitContainer">
|
|
|
|
<form action="/" method="POST">
|
|
|
|
<input class="btn bg-red-600 hover:bg-red-700 text-white py-2 px-4 rounded w-full" type="submit" id="quit" value="Quit!!" name="quit">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|