From: Ole Artz Date: Wed, 2 Aug 2017 12:36:42 +0000 (+0200) Subject: DASH: initial version X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d4c32b407a283f7d77254cc23ee0e30d0df46370;p=mvd_epics.git DASH: initial version --- diff --git a/python_suite/dashboard/README.md b/python_suite/dashboard/README.md new file mode 100644 index 0000000..0163d9e --- /dev/null +++ b/python_suite/dashboard/README.md @@ -0,0 +1,13 @@ +## EPICS Dashboard + +### Installation + +To install the required Python packages, run: + + pip install --upgrade -r requirements.txt + +### Running the Dashboard Server + +To start the server, run: + + ./dashboard.py diff --git a/python_suite/dashboard/dashboard.py b/python_suite/dashboard/dashboard.py new file mode 100755 index 0000000..8d41242 --- /dev/null +++ b/python_suite/dashboard/dashboard.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from bottle import route, run, static_file +from bottle import jinja2_view as view + +@route('/') +@view('pv_overview.jinja2') +def index(): + return {} + +@route('/static/') +def static_content(path): + return static_file(path, root='./static/') + +run(host='', port=8080) diff --git a/python_suite/dashboard/requirements.txt b/python_suite/dashboard/requirements.txt new file mode 100644 index 0000000..7e1c8e2 --- /dev/null +++ b/python_suite/dashboard/requirements.txt @@ -0,0 +1,3 @@ +bottle +jinja2 +pyepics diff --git a/python_suite/dashboard/static/images/cbm_logo.png b/python_suite/dashboard/static/images/cbm_logo.png new file mode 100644 index 0000000..58ad968 Binary files /dev/null and b/python_suite/dashboard/static/images/cbm_logo.png differ diff --git a/python_suite/dashboard/static/js/script.js b/python_suite/dashboard/static/js/script.js new file mode 100644 index 0000000..2a0a758 --- /dev/null +++ b/python_suite/dashboard/static/js/script.js @@ -0,0 +1,4 @@ +/* +alert("whats up"); +console.log("what's up?"); +*/ diff --git a/python_suite/dashboard/views/pv_overview.jinja2 b/python_suite/dashboard/views/pv_overview.jinja2 new file mode 100644 index 0000000..13ff0c2 --- /dev/null +++ b/python_suite/dashboard/views/pv_overview.jinja2 @@ -0,0 +1,251 @@ + + + PRESTO - OVERVIEW + + + + + +
+
+ logo +

PRESTO - Overview
Prototype of the Second Station of the Micro Vertex Detector +
of the Compressed Baryonic Matter

+
+
+
+

Cooling

+

HUBER_COOLING

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Process VariableValueUnit
Bath Temperature Momentum° C
External Temperature Momentum° C
Current Setpoint Value° C
+

FLOW_METER

+ + + + + + + + + + + + + + + + + + + + + +
Process VariableValueUnit
Flow Inputl/min
Flow Outputl/min
+
+
+

Pressure

+

BALZERS_PKG020

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Process VariableValueUnit
Side A - IKR Voltage V
Side A - TPR2 VoltageV
Side B - IKR VoltageV
Side B - TPR2 VoltageV
+

VACOM_MVC3

+
+
+

Temperature

+

PT100_BOARD

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Process VariableValueUnit
ID 00° C
ID 01° C
ID 02° C
ID 03° C
ID 04° C
ID 05° C
ID 06° C
ID 07° C
ID 08° C
ID 09° C
ID 10° C
ID 11° C
ID 12° C
ID 13° C
ID 14° C
ID 15° C
ID 16° C
ID 17° C
+
+
+
+
+ Copyright © Ole Artz, + IKF-Working Group Prof. Dr. Stroth +
+
+ + + + +