From eadac6465d83ec6e26a45fd90d96ec5e081ce7b2 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 20 Sep 2024 22:45:23 +0200 Subject: Get stats working --- templates/dashboard.html | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/dashboard.html b/templates/dashboard.html index a60d6a1..4c4f7f6 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -2,12 +2,52 @@

ODR-DabMux Dashboard

-

Remote control

+

Input Stats

- {% if let Some(e) = errors %} + {% if let Some(e) = stats_errors %}

Error!: {{ e }}

{% endif %} + {% if let Some(s) = stats %} +

ODR-DabMux version {{ s.version }}

+ + + + + + + + {% for (ident, is) in s.input_stats %} + + + + + + + + + + + + + + + + {% endfor %} +
identmaxfillminfillunderoveraudioleftaudiorightpeakleftpeakrightstateversionuptimeoffset
{{ ident }}{{ is.max_fill }}{{ is.min_fill }}{{ is.num_underruns }}{{ is.num_overruns }}{{ is.peak_left }}{{ is.peak_right }}{{ is.peak_left_slow }}{{ is.peak_right_slow }}{{ is.state.clone().or(Some("?".to_owned())).unwrap() }}{{ is.version.clone().or(Some("?".to_owned())).unwrap() }} + {% if let Some(u) = is.uptime %} + {{ u }} + {% else %} + N/A + {% endif %} + {{ is.last_tist_offset }}
+ {% endif %} +
+
+

Remote Control

+ {% if let Some(e) = params_errors %} +

Error!: {{ e }}

+ {% endif %} {% for p in params %} -- cgit v1.2.3
ModuleParameterValue