aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..78a4696
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+<head>
+ <title>ODR-DabMux Monitoring</title>
+ <meta http-equiv="refresh" content="15">
+</head>
+<body>
+<h1>Statistics for ODR-DabMux running on '{{ name }}'</h1>
+<table>
+ <thead><td>Input Name</td><td>State</td></thead>
+ {% for inp in inputs %}
+ <tr><td><b>{{ inp.name }}:</b></td><td>
+ {% if inp.state == "NoData" %}
+ <img src="static/red.png" width="29" height="64" alt="No Date" />
+ No Data
+ {% elif inp.state == "Unstable" %}
+ <img src="static/orange.png" width="29" height="64" alt="Unstable" />
+ Unstable
+ {% elif inp.state == "Silent" %}
+ <img src="static/orange.png" width="29" height="64" alt="Unstable" />
+ <img src="static/noaudio.png" width="60" height="30" alt="No audio" />
+ {% elif inp.state == "Streaming" %}
+ <img src="static/green.png" width="29" height="64" alt="Unstable" />
+ {% else %}
+ Unknown state {{ inp.state }} !
+ {% endif %}
+ </td></tr>
+ {% endfor %}
+</table>
+<p>generated on {{ date }}</p>
+</body>
+</html>
+