Refactor safety checks and improve message handling in CKobuki class

This commit is contained in:
ishak jmilou.ishak
2024-11-06 14:06:15 +01:00
parent 7424c2d033
commit d534940370
5 changed files with 154 additions and 121 deletions

View File

@@ -1,8 +1,6 @@
{% extends 'base.html' %}
{% block head %}
{% extends 'base.html' %} {% block head %}
<link rel="stylesheet" href="../static/style.css" />
{% endblock %}
{% block content %}
{% endblock %} {% block content %}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -22,12 +20,27 @@
<button class="btn" name="direction" value="up"></button>
<button class="btn" name="direction" value="right"></button>
<button class="btn" name="direction" value="down"></button>
<button class="btn stop-button" name="direction" value="stop">Stop</button>
<button class="btn stop-button" name="direction" value="stop">
Stop
</button>
</form>
</div>
</div>
<div class="container">
<h1>Sensor Data</h1>
<div class="data">
<table id="sensor-data-table">
<thead>
<tr>
<th>Sensor</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<!-- Sensor data rows will be inserted here -->
</tbody>
</table>
</div>
</div>
<script src="../static/script.js"></script>
</body>