From 752fa808e3f148f45b689a026f0e703c83b83d92 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 15 Mar 2015 19:23:39 +0100 Subject: Add a statistics page to gui --- gui/odr-dabmux-gui.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gui/odr-dabmux-gui.py') diff --git a/gui/odr-dabmux-gui.py b/gui/odr-dabmux-gui.py index 84331b5..19f3ae8 100755 --- a/gui/odr-dabmux-gui.py +++ b/gui/odr-dabmux-gui.py @@ -62,6 +62,17 @@ def index(): version = conf.get_mux_version(), services = conf.get_services()) +@route('/stats') +def index(): + conf.load() + + return template('stats', + version = conf.get_mux_version()) + +@route('/stats.json') +def stats_json(): + return conf.get_stats_dict() + @route('/static/') def send_static(filename): -- cgit v1.2.3