Mark Cotton 2023-07-28 10:41:05 -06:00
parent 6a2923801f
commit 67817f5094
3 changed files with 5539 additions and 2 deletions

4
app.py
View File

@ -227,10 +227,10 @@ def camera_status_plot(esn=None):
# Save it to a temporary buffer.
buf = BytesIO()
fig.savefig(buf, format="png")
fig.savefig(buf, format="png", transparent=True)
# Embed the result in the html output.
data = base64.b64encode(buf.getbuffer()).decode("ascii")
return f"<div class='col-md-12'><img src='data:image/png;base64,{data}' style='max-width:100%'/></div>"
return f"<h2>Graph of Status Events</h2><div class='col-md-12'><img src='data:image/png;base64,{data}' style='max-width:100%'/></div>"

5528
static/theme.css Normal file

File diff suppressed because it is too large Load Diff

View File

@ -26,6 +26,15 @@
<!-- self-hosted fontawesome -->
<link href="/static/css/all.css" rel="stylesheet">
<link href="/static/theme.css" rel="stylesheet">
<style>
.row {
border: dashed lightgray 1px;
}
</style>
{% block style %}
{% endblock %}