Spaces:
Runtime error
Runtime error
File size: 1,010 Bytes
0a6955d eeea924 0a6955d eeea924 0a6955d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Zone Pressure Dashboard</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.0/socket.io.js"></script>
<script type="text/javascript">
var socket = io();
socket.on('update_pressure', function(data) {
document.getElementById('pressures').innerHTML = JSON.stringify(data);
// Optionally update heatmap image here
});
</script>
</head>
<body>
<h1>Zone Pressure Dashboard</h1>
<img src="data:image/png;base64,{{ heatmap_img }}" alt="Zone Pressure Heatmap">
<div id="pressures">{{ pressures }}</div>
<h2>Rewards</h2>
<ul>
{% for unit, reward in rewards.items() %}
<li>{{ unit }}: {{ reward }}</li>
{% endfor %}
</ul>
<h2>Driver Assignments</h2>
<ul>
{% for driver, zone in assignments.items() %}
<li>{{ driver }}: {{ zone }}</li>
{% endfor %}
</ul>
</body>
</html> |