updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user