This commit is contained in:
2024-05-02 03:18:50 +02:00
parent a56ccaf14c
commit a8cd68d114
8 changed files with 60 additions and 10 deletions
+9
View File
@@ -85,6 +85,15 @@
<p>Unable to fetch weather data.</p>
{% endif %}
</div>
<h1>Last Hour of History</h1>
<div id="graph"></div>
<script>
// Parse JSON data
var graphData = {{ graph_json | safe }};
// Render graph
Plotly.newPlot('graph', graphData.data, graphData.layout);
</script>
<script>
// Refresh the page every 10 seconds
setTimeout(function(){