Browse Source

first commit for rear section (RS)

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 5 years ago
commit
acc4d6b4a3
8 changed files with 302 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 6 0
      app.py
  3. BIN
      background.png
  4. 1 0
      bora
  5. 9 0
      requirements.txt
  6. 265 0
      style.yaml
  7. 3 0
      trigger.sh
  8. 15 0
      varname.yaml

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "bora"]
+	path = bora
+	url = https://github.com/kit-ipe/bora.git

+ 6 - 0
app.py

@@ -0,0 +1,6 @@
+import subprocess
+import os
+from shutil import copyfile
+
+copyfile("./background.png", "./bora/static/background.png")
+subprocess.call(["python", "./bora/core.py"])

BIN
background.png


+ 1 - 0
bora

@@ -0,0 +1 @@
+Subproject commit 6f42327669e1ea1401a06cdd4961c0d3456a3782

+ 9 - 0
requirements.txt

@@ -0,0 +1,9 @@
+PyYAML==3.12
+backports-abc==0.4
+backports.ssl-match-hostname==3.5.0.1
+certifi==2016.8.31
+requests==2.11.1
+singledispatch==3.4.0.3
+six==1.10.0
+tornado==4.4.1
+wsgiref==0.1.2

+ 265 - 0
style.yaml

@@ -0,0 +1,265 @@
+110-HEE-1-1065:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '             '
+    weight: '400'
+  height: 22.4
+  larger: ''
+  left: 1624px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-HEE-1-1065
+  top: 224px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '             W'
+    weight: '400'
+  width: 76.4
+110-RBY-1-1051:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '3'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: '15'
+    title: ''
+    weight: '700'
+  height: 22.4
+  larger: ''
+  left: 1257px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RBY-1-1051
+  top: 818px
+  trend: 'true'
+  type: data
+  unit:
+    size: '15'
+    title: T
+    weight: '400'
+  width: 72.4
+110-RBY-1-1052:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '3'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: ' '
+    weight: '700'
+  height: 23.4
+  larger: ''
+  left: 1657px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RBY-1-1052
+  top: 814px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: ' T'
+    weight: '400'
+  width: 70.4
+110-RLY-1-1041:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '1'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '     '
+    weight: '700'
+  height: 22.4
+  larger: ''
+  left: 1622px
+  lesser: '65'
+  linkhtml: 'true'
+  ref: 110-RLY-1-1041
+  top: 167px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '     %'
+    weight: '400'
+  width: 76.4
+110-RPY-1-1011:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '               '
+    weight: '700'
+  height: 22.4
+  larger: '2'
+  left: 1622px
+  lesser: '0.5'
+  linkhtml: 'true'
+  ref: 110-RPY-1-1011
+  top: 196px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '               psi'
+    weight: '400'
+  width: 86.4
+110-RTP-1-1021:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '1'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '            '
+    weight: '400'
+  height: 22.4
+  larger: ''
+  left: 1476px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RTP-1-1021
+  top: 302px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '            K'
+    weight: '400'
+  width: 73.4
+110-RTP-1-1025:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '1'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '           '
+    weight: '400'
+  height: 22.4
+  larger: ''
+  left: 1485px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RTP-1-1025
+  top: 363px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '           K'
+    weight: '400'
+  width: 72.4
+110-RTP-1-1031:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '1'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '       '
+    weight: '700'
+  height: 27.4
+  larger: ''
+  left: 1521px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RTP-1-1031
+  top: 672px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '       K'
+    weight: '400'
+  width: 70.4
+110-RTY-1-1023:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '         '
+    weight: '700'
+  height: 22.4
+  larger: ''
+  left: 1481px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RTY-1-1023
+  top: 448px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '         K'
+    weight: '400'
+  width: 75.4
+110-RTY-1-1027:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '          '
+    weight: '700'
+  height: 22.4
+  larger: ''
+  left: 1484px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RTY-1-1027
+  top: 489px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '          K'
+    weight: '400'
+  width: 72.4
+110-RTY-1-1029:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '        '
+    weight: '700'
+  height: 22.4
+  larger: ''
+  left: 1475px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 110-RTY-1-1029
+  top: 569px
+  trend: 'true'
+  type: data
+  unit:
+    size: 15
+    title: '        K'
+    weight: '400'
+  width: 72.4
+header_rear-section:
+  background_color: rgba(0, 0, 0, 0)
+  header:
+    size: 28
+    title: 'Rear Section    '
+    weight: '700'
+  height: 39.4
+  left: 777px
+  titlelink: https://katrin.kit.edu/adei-katrin/#module=graph&db_server=virtual&db_name=srctree&db_group=-3&control_group=-3&db_mask=all&experiment=-&window=3600&module=graph&virtual=srctree&srctree=csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__0,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__3,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__6,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__9,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__12,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__24,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__27,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__33,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__36,csrear__ControlSystem_REAR__110_MAG_Magnetbetrieb__39&percent_axis_range=54.09962:61.57088&pressure/psi_axis_range=16.77299:16.99713&infomod=legend&history_id=1525271764662
+  top: 61px
+  type: header
+  width: 189.4

+ 3 - 0
trigger.sh

@@ -0,0 +1,3 @@
+# This is a manual trigger to the CPS pod at the OpenShift platform.
+# Only run this when the webhook is not working.
+curl -X POST -k https://kaas.kit.edu:8443/oapi/v1/namespaces/bora/buildconfigs/cps/webhooks/<SECRET>/generic

+ 15 - 0
varname.yaml

@@ -0,0 +1,15 @@
+## 110_MAG_Magnetbetrieb ##
+110-HEE-1-1065: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=0
+110-RBY-1-1051: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=3
+110-RBY-1-1052: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=6
+110-RLY-1-1041: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=9
+110-RPY-1-1011: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=12
+110-RTP-1-1021: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=24
+110-RTP-1-1025: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=27
+110-RTP-1-1031: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=30
+110-RTY-1-1023: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=33
+110-RTY-1-1027: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=36
+110-RTY-1-1029: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=39
+###### not yet in ADEI #####
+#110-RFC-1-1510-F-SUM: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=0
+#110-RFC-1-1510-F-X: db_server=csrear&db_name=ControlSystem_REAR&db_group=110_MAG_Magnetbetrieb&db_mask=3