]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DASH: visualize alarm modes, integrate Low Voltage
authorOle Artz <ole.artz@t-online.de>
Thu, 10 Aug 2017 12:32:53 +0000 (14:32 +0200)
committerOle Artz <ole.artz@t-online.de>
Thu, 10 Aug 2017 12:32:53 +0000 (14:32 +0200)
python_suite/dashboard/dashboard.py
python_suite/dashboard/example.config.json
python_suite/dashboard/static/css/style.css
python_suite/dashboard/static/images/ikf_logo.png [new file with mode: 0644]
python_suite/dashboard/views/pv_overview.jinja2

index fbab30232b2e3d2ebe927366ff2bee8c20a88a7e..1af4276db2c9c83a08b0df77ddb57f8a73ec8227 100755 (executable)
@@ -19,12 +19,14 @@ def update_values():
               epics.MINOR_ALARM :   "minor_alarm",
               epics.MAJOR_ALARM :   "major_alarm",
               epics.INVALID_ALARM : "invalid_alarm",
+              None : "disconnected",
             }
             pv['classes'] = class_map[p.severity]
             if 'enum' in p.type:
                 pv['value'] = p.get(as_string=True)
             else:
                 pv['value'] = p.get()
+            if pv['value'] is None: pv['value'] = '- disconnected -'
             pv['unit'] = p.units or ''
 
 @route('/')
index 6a66a6d4ed8d73229982f16039f5c45dbd9ce962..d5355cf7153bfa5960a2fcef2d7e38e15a40e704 100644 (file)
                                {"name": "CBM:MVD:VACUUM:RECIPIENT:3:Pressure"},
                                {"name": "CBM:MVD:VACUUM:RECIPIENT:3:Status"}
                                ]
+               },
+               {
+                        "name": "Low Voltage",
+                        "PVs": [
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:GetGeneralOutput"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetOutput"},  
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetOutput"},  
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetOutput"},  
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetVoltage"},
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetCurrent"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetCurrent"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetCurrent"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:MeasuredVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:MeasuredVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:MeasuredVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:MeasuredCurrent"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:MeasuredCurrent"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:MeasuredCurrent"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetOVPVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetOVPVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetOVPVoltage"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetOVPVoltageMin"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetOVPVoltageMin"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetOVPVoltageMin"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetOVPVoltageMax"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetOVPVoltageMax"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetOVPVoltageMax"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN1:GetOVPMode"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN2:GetOVPMode"}, 
+                               {"name": "CBM:MVD:POWER:PRESTO_RECIPIENT:CHAN3:GetOVPMode"}
+                               ]
                }
-       ]
+         ]
 }
index 521017b1f8ca071a467d29ba6ff8102438b1f291..4503e0f8e46efbc2b12d2799273beaacdbfa7f4e 100644 (file)
@@ -4,23 +4,65 @@
   margin-left: auto;
   margin-right: auto;
 }
-.header img {
+.header .cbm {
+  position: relative;
+  bottom: -5px;
   float: left;
   width: 93px; <!-- orignal 250px-->
   height: 120px; <!-- orginal 324px-->
 }
+.header .ikf {
+  position: relative;
+  bottom: -5px;
+  float: right;
+  width: 264px; <!-- orignal 720px-->
+  height: 120px; <!-- orginal 327px-->
+}
+
 .header h1 {
   position: center;
   left: 30px;
   background-color: #0509fc;
   color: white;
+  height: 130px;
+  text-align: center;
 }
+
 .Cooling table, th, td {
   border: 1px solid black;
 }
+
 .Cooling table, th {
   text-align: left;
 }
+
+.invalid_alarm:after {
+  content: "invalid";
+  position: relative;
+  float: right;
+  color: #0091FF;
+}
 .invalid_alarm {
-  background-color: red;
+  border-color: #0091FF;
+}
+
+.minor_alarm:after {
+  content: "MINOR";
+  position: relative;
+  float: right;
+  color: #FF6F00;
+}
+.minor_alarm {
+  border-color: #FF6F00;
+
+}
+.major_alarm:after {
+  content: "MAJOR";
+  position: relative;
+  float: right;
+  color: #FF0000;
+}
+.major_alarm {
+  border-color: #FF0000;
 }
+
diff --git a/python_suite/dashboard/static/images/ikf_logo.png b/python_suite/dashboard/static/images/ikf_logo.png
new file mode 100644 (file)
index 0000000..996cfed
Binary files /dev/null and b/python_suite/dashboard/static/images/ikf_logo.png differ
index e91946ecba95459991073d9e6bd22a9a8f1b07ba..261e66522d08788dc22c1d0d412c2da765c04796 100644 (file)
@@ -1,16 +1,16 @@
 <html>
        <head>
                <title>PRESTO - OVERVIEW</title>
-               <meta http-equiv="refresh" content="10;URL= "file:///run/media/oartz/GREENZONE/Bachelorarbeit/WEBSITE/PRESTO_WEBSITE.html">
+               <!-- <meta http-equiv="refresh" content="10;URL= "file:///run/media/oartz/GREENZONE/Bachelorarbeit/WEBSITE/PRESTO_WEBSITE.html"> -->
                <link rel="stylesheet" href="/static/css/style.css">
        </head>
 
        <body>
        <div id="container">
                <div class="header">
-                       <img src="/static/images/cbm_logo.png" alt="logo"/>
-                       <h1>PRESTO - Overview<br/> Prototype of the Second Station of the Micro Vertex Detector 
-                       <br/>of the Compressed Baryonic Matter</h1>
+                       <img src="/static/images/ikf_logo.png" alt="logo" class="ikf"/>
+                       <img src="/static/images/cbm_logo.png" alt="logo" class="cbm"/>
+                       <h1>PRESTO - Overview<br/> Prototype of the Second Station of the Micro Vertex Detector of the Compressed Baryonic Matter</h1>
                </div>
                <div id="PVs">
                        {% for group in groups %}