]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DASH: initial version
authorOle Artz <ole.artz@t-online.de>
Wed, 2 Aug 2017 12:36:42 +0000 (14:36 +0200)
committerOle Artz <ole.artz@t-online.de>
Wed, 2 Aug 2017 12:36:42 +0000 (14:36 +0200)
python_suite/dashboard/README.md [new file with mode: 0644]
python_suite/dashboard/dashboard.py [new file with mode: 0755]
python_suite/dashboard/requirements.txt [new file with mode: 0644]
python_suite/dashboard/static/images/cbm_logo.png [new file with mode: 0644]
python_suite/dashboard/static/js/script.js [new file with mode: 0644]
python_suite/dashboard/views/pv_overview.jinja2 [new file with mode: 0644]

diff --git a/python_suite/dashboard/README.md b/python_suite/dashboard/README.md
new file mode 100644 (file)
index 0000000..0163d9e
--- /dev/null
@@ -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 (executable)
index 0000000..8d41242
--- /dev/null
@@ -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/<path:path>')
+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 (file)
index 0000000..7e1c8e2
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..2a0a758
--- /dev/null
@@ -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 (file)
index 0000000..13ff0c2
--- /dev/null
@@ -0,0 +1,251 @@
+<html>
+       <head>
+               <title>PRESTO - OVERVIEW</title>
+               <meta http-equiv="refresh" content="10;URL= "file:///run/media/oartz/GREENZONE/Bachelorarbeit/WEBSITE/PRESTO_WEBSITE.html">
+               <style>
+                       #container{
+                               background-color: white;
+                               width: 1200px;
+                               margin-left: auto;
+                               margin-right: auto;
+                               }
+                       .header img {
+                               float: left;
+                               width: 120px;
+                               height: 120px;
+                               }
+                       .header h1 {
+                               position: center;
+                               left: 30px;
+                               background-color: #0509fc;
+                               color: white;
+                               }
+                       .Cooling table, th, td {
+                       border: 1px solid black;
+                               }
+                       .Cooling table, th {
+                       text-align: left;
+                               }       
+       </style>
+       </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>
+               </div>
+               <div id="PVs">
+                       <div id="Cooling">
+                               <h2>Cooling</h2>
+                                       <p>HUBER_COOLING</p>
+                                        <table style="width:100%">
+                                               <colgroup>
+                                                       <col span="1" style="width: 60%;">
+                                                       <col span="1" style="width: 25%;">
+                                                       <col span="1" style="width: 15%;">
+                                               </colgroup>
+                                               <tr>
+                                                       <th>Process Variable</th>
+                                                       <th>Value</th>
+                                                       <th>Unit</th>
+                                               </tr>
+                                               <tr>
+                                                       <td>Bath Temperature Momentum</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>External Temperature Momentum</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>Current Setpoint Value</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                       </table>
+                                       <p>FLOW_METER</p>
+                                               <table style="width:100%">
+                                               <colgroup>
+                                                       <col span="1" style="width: 60%;">
+                                                       <col span="1" style="width: 25%;">
+                                                       <col span="1" style="width: 15%;">
+                                               </colgroup>
+                                               <tr>
+                                                       <th>Process Variable</th>
+                                                       <th>Value</th>
+                                                       <th>Unit</th>
+                                               </tr>
+                                               <tr>
+                                                       <td>Flow Input</td>
+                                                       <td></td>
+                                                       <td>l/min</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>Flow Output</td>
+                                                       <td></td>
+                                                       <td>l/min</td>
+                                               </tr>
+                                       </table>
+                       </div>
+                       <div id="Pressure">
+                               <h2>Pressure</h2>
+                                       <p>BALZERS_PKG020</p>                   
+                                       <table style="width:100%">
+                                               <colgroup>
+                                                       <col span="1" style="width: 60%;">
+                                                       <col span="1" style="width: 25%;">
+                                                       <col span="1" style="width: 15%;">
+                                               </colgroup>
+                                               <tr>
+                                                       <th>Process Variable</th>
+                                                       <th>Value</th>
+                                                       <th>Unit</th>
+                                               </tr>
+                                               <tr>
+                                                       <td>Side A - IKR Voltage </td>
+                                                       <td></td>
+                                                       <td>V</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>Side A - TPR2 Voltage</td>
+                                                       <td></td>
+                                                       <td>V</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>Side B - IKR Voltage</td>
+                                                       <td></td>
+                                                       <td>V</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>Side B - TPR2 Voltage</td>
+                                                       <td></td>
+                                                       <td>V</td>
+                                               </tr>
+
+                                       </table>
+                                       <p>VACOM_MVC3</p>
+                       </div>
+                       <div id="Temperature">
+                               <h2>Temperature</h2>
+                                       <p>PT100_BOARD</p>
+                                       <table style="width:100%">
+                                               <colgroup>
+                                                       <col span="1" style="width: 60%;">
+                                                       <col span="1" style="width: 25%;">
+                                                       <col span="1" style="width: 15%;">
+                                               </colgroup>
+                                               <tr>
+                                                       <th>Process Variable</th>
+                                                       <th>Value</th>
+                                                       <th>Unit</th>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 00</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 01</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 02</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 03</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 04</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 05</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 06</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 07</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 08</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 09</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 10</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 11</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 12</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 13</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 14</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 15</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 16</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                               <tr>
+                                                       <td>ID 17</td>
+                                                       <td></td>
+                                                       <td>&#176 C</td>
+                                               </tr>
+                                       </table>
+                       </div>
+               </div>
+<hr/>
+               <div id="footnote">
+               Copyright &copy; Ole Artz, 
+               <a href="https://www.uni-frankfurt.de/51839311/Working-Group-People">IKF-Working Group Prof. Dr. Stroth</a>
+               </div>
+       </div>  
+       <script type="text/javascript" src="/static/js/script.js"></script>
+               </body>
+
+</html>
+