diff --git a/frontend/app/routes.py b/frontend/app/routes.py index b95f6d490000c36b91a9cfbd4adf58018e1de313..a4f5407ee30a69f499aa8b04b6ce8ab7284c361a 100644 --- a/frontend/app/routes.py +++ b/frontend/app/routes.py @@ -38,7 +38,21 @@ RASP_PLOTS = [['dom_rates', 'ztplot', 'triggermap'], ], ['trigger_rates', 'trigger_rates_lin']] JMRA_PLOTS = [['plot_event_duration','plot_number_slices','plot_snapshot_hits'], - ['plot_number_overlays','plot_pmt_rate_distribution','plot_triggered_hits']] + ['plot_number_overlays','plot_pmt_rate_distribution','plot_triggered_hits'], + ['daq_status_1','daq_status_2','daq_status_3'], + ['daq_status_4','daq_status_5','daq_status_6'], + ['daq_status_7','daq_status_8','daq_status_9']] + +JDQ_PLOTS = [['jdq_1_out_sync','jdq_1_out_usync'], + ['jdq_1_veto'], + ['jdq_1_acoustics','jdq_1_AHRS'], + ['jdq_1_DAQ','jdq_1_event-count'], + ['jdq_1_event-rate','jdq_1_FIFO'], + ['jdq_1_HRV','jdq_1_livetime'], + ['jdq_1_PMT-rate-mean','jdq_1_PMT-rate-rms'], + ['jdq_1_UTC-livetime','jdq_1_WR']] + #['jdq_1_quality','jdq_1_selection']] + if exists(CONFIG_PATH): config = toml.load(CONFIG_PATH) @@ -176,6 +190,11 @@ def rttc(): def jmra(): return render_template('jmra.html', plots=expand_wildcards(JMRA_PLOTS)) +@app.route('/jdq.html') +@requires_auth +def jdq(): + return render_template('jdq.html', plots=expand_wildcards(JDQ_PLOTS)) + @app.route('/trigger.html') @requires_auth diff --git a/frontend/app/templates/base.html b/frontend/app/templates/base.html index b4ea7f03bbc2bbf538b98c35b43a7d22e1dee2cb..b7bcd4ca5948856a63410e2801579067ed9fe34b 100644 --- a/frontend/app/templates/base.html +++ b/frontend/app/templates/base.html @@ -59,6 +59,9 @@ <ul class="nav navbar-nav"> <li class="active"><a href="jmra.html">JMRA</a></li> </ul> + <ul class="nav navbar-nav"> + <li class="active"><a href="jdq.html">JDQ</a></li> + </ul> <ul class="nav navbar-nav"> <li class="active"><a href="top10.html">Top10</a></li> </ul> diff --git a/frontend/app/templates/jdq.html b/frontend/app/templates/jdq.html new file mode 100644 index 0000000000000000000000000000000000000000..4b0692a926288207b0902b89c95e39b01f4daa18 --- /dev/null +++ b/frontend/app/templates/jdq.html @@ -0,0 +1,41 @@ +{% extends "base.html" %} + +{% block infoheader %} + {% if info is defined %} + <div class="alert alert-success alert-dismissible" role="alert">{{ info }}</div> + {% endif %} +{% endblock %} + +{% block main %} + + + <div class="container-fluid" id="plots"> + {% for row in plots %} + <div class="row"> + {% for plot in row %} + <div class="col-md-{{ (12/(row|length))|int }} plot-container"> + <a href="plot_{{ plot }}.html"> + <img id="{{ plot }}" + class="plot img-responsive" + src="plots/{{ plot }}.png" + alt="{{ plot }}"/> + </a> + </div> + {% endfor %} + </div> + {% endfor %} + </div> + + <script type = "text/javascript"> + $(document).ready(function(){ + setInterval(function(){ + {% for row in plots %} + {% for plot in row %} + $("#{{ plot }}").attr("src", "plots/{{ plot }}.png?"+new Date().getTime()); + {% endfor %} + {% endfor %} + }, 45000); + }); + </script> + +{% endblock %}