moved images to appropriate folder

added image hash
This commit is contained in:
mia 2025-06-05 13:58:46 +02:00
parent 70c4de1a30
commit 4e2311df7d
7 changed files with 39 additions and 3 deletions

View file

@ -27,6 +27,9 @@
font-size: 18px;
color: white;
background: #1c1c1c;
<!-- margin: 0; -->
<!-- padding: 0; -->
<!-- box-sizing: border-box; -->
}
.container {
display: flex; /* Enable flexbox */
@ -41,18 +44,26 @@
background-color: #C4FA05; /* Background color for the boxes */
justify-content: left; /* Center text horizontally */
}
.txtbox h1 {
margin: 0;
padding: 0.5em 0; /* optional: add some vertical padding */
}
.txtbox h2 {
margin: 0;
padding: 0em 0; /* optional: add some vertical padding */
}
</style>
</head>
<body>
<div class = "container">
<div class = "txtbox">
<div class = "txtbox" style="text-align: center; margin: auto;">
<h1>Sensor Readings</h1>
</div>
</div>
<h2>{% for sensor in data.items() %}</h2>
<hr>
<h2>{{ sensor[1].getId() }}[{{ sensor[1].getType() }}]</h2>
<h3>{{ sensor[1].renderPlot() }}</h3>
<div class = "container">
<div class = "txtbox">
<ul>
@ -63,11 +74,12 @@
</div>
<div class = "imgbox">
<img
src="{{ url_for('static', filename='plots/' + sensor[1].getId() + '.png') }}"
src="{{ url_for('static', filename= sensor[1].renderPlot()) }}"
alt="Graph"
/>
</div>
</div>
<sub style="text-align: right; float: right;"> {{ sensor[1].getHash() }} </sub>
{% endfor %}
</body>
</html>