This commit is contained in:
2024-05-01 22:29:23 +02:00
parent eaee2e77c9
commit ead358ab1c
8 changed files with 270 additions and 45 deletions
+10 -4
View File
@@ -51,6 +51,10 @@
}</style>
</head>
<body>
<div class="btn-container">
<a href="/history" class="btn">View History</a>
<a href="/adm" class="btn">Admin</a>
</div>
<div class="container">
<h1>Sensor Data Dashboard</h1>
<table>
@@ -73,10 +77,12 @@
</tr>
{% endfor %}
</table>
<div class="btn-container">
<a href="/history" class="btn">View History</a>
<a href="/Admin" class="btn">Admin</a>
</div>
<h1>Current Weather</h1>
{% if temperature %}
<p>The current temperature is {{ temperature }}°C</p>
{% else %}
<p>Unable to fetch weather data.</p>
{% endif %}
</div>
<script>
// Refresh the page every 10 seconds