Browse Source

First commit for loops-cps

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 5 years ago
commit
9f0566e369
8 changed files with 476 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. 426 0
      style.yaml
  7. 3 0
      trigger.sh
  8. 28 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

+ 426 - 0
style.yaml

@@ -0,0 +1,426 @@
+320-RTP-3-1101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTP-3-1101               '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 282px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTP-3-1101
+  top: 537px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '               K'
+    weight: '400'
+  width: 66
+320-RTP-3-6101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTP-3-6101             '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 1470px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTP-3-6101
+  top: 536px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '             K'
+    weight: '400'
+  width: 67
+320-RTP-3-7101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTP-3-7101            '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 1674px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTP-3-7101
+  top: 537px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '            K'
+    weight: '400'
+  width: 80
+320-RTY-3-2101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTY-3-2101           '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 537px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTY-3-2101
+  top: 560px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '           K'
+    weight: '400'
+  width: 70
+320-RTY-3-3101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTY-3-3101          '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 744px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTY-3-3101
+  top: 591px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '          K'
+    weight: '400'
+  width: 66
+320-RTY-3-4101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTY-3-4101         '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 952px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTY-3-4101
+  top: 564px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '         K'
+    weight: '400'
+  width: 71
+320-RTY-3-5101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 12
+    title: 'RTY-3-5101        '
+    weight: '400'
+  height: 44
+  larger: ''
+  left: 1155px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTY-3-5101
+  top: 538px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '        K'
+    weight: '400'
+  width: 65
+320-VAO-3-0003:
+  background_color: rgba(0, 0, 0, 0)
+  height: 152
+  icon: valve
+  left: 1293px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 320-VAO-3-0003
+  rotate: none
+  top: 486px
+  trend: 'false'
+  type: icon
+  width: 153
+320-VAO-3-0004:
+  background_color: rgba(0, 0, 0, 0)
+  height: 143
+  icon: valve
+  left: 1768px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 320-VAO-3-0004
+  rotate: none
+  top: 486px
+  trend: 'false'
+  type: icon
+  width: 154
+322-MCH-0-3110:
+  background_color: rgba(0, 0, 0, 0)
+  height: 51
+  icon: commbit
+  left: 1490px
+  linkhtml: 'false'
+  'off': 5.7e8
+  off_condition: offgreater
+  'on': 5.7e8
+  on_condition: onsmaller
+  ref: 322-MCH-0-3110
+  rotate: none
+  top: 949px
+  trend: 'false'
+  type: icon
+  width: 50
+620-VAO-3-0002:
+  background_color: rgba(0, 0, 0, 0)
+  height: 146
+  icon: valve
+  left: -14px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 620-VAO-3-0002
+  rotate: none
+  top: 479px
+  trend: 'false'
+  type: icon
+  width: 155
+630-RPP-8-5030:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'true'
+  formula: ''
+  header:
+    size: 12
+    title: 'RPP-8-5030                     '
+    weight: '400'
+  height: 44
+  larger: 1e-4
+  left: 464px
+  lesser: 1e-11
+  linkhtml: 'true'
+  ref: 630-RPP-8-5030
+  top: 403px
+  trend: 'false'
+  type: data
+  unit:
+    size: 12
+    title: '                     mbar'
+    weight: '400'
+  width: 86
+630-RPP-8-6030:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'true'
+  formula: ''
+  header:
+    size: '12'
+    title: RPP-8-6030
+    weight: '400'
+  height: 44
+  larger: 1e-4
+  left: 1650px
+  lesser: 1e-11
+  linkhtml: 'true'
+  ref: 630-RPP-8-6030
+  top: 775px
+  trend: 'false'
+  type: data
+  unit:
+    size: '12'
+    title: mbar
+    weight: '400'
+  width: 84
+630-VAO-8-5201:
+  background_color: rgba(0, 0, 0, 0)
+  height: 51
+  icon: valve
+  left: 343px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 630-VAO-8-5201
+  rotate: none
+  top: 416px
+  trend: 'false'
+  type: icon
+  width: 50
+630-VAO-8-5203:
+  background_color: rgba(0, 0, 0, 0)
+  height: 61
+  icon: valve
+  left: 384px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 630-VAO-8-5203
+  rotate: matrix(6.12323e-17, 1, -1, 6.12323e-17, 0, 0)
+  top: 335px
+  trend: 'false'
+  type: icon
+  width: 65
+630-VAO-8-6100:
+  background_color: rgba(0, 0, 0, 0)
+  height: 84
+  icon: valve
+  left: 1569px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 630-VAO-8-6100
+  rotate: matrix(6.12323e-17, 1, -1, 6.12323e-17, 0, 0)
+  top: 855px
+  trend: 'false'
+  type: icon
+  width: 92
+630-VAO-8-6400:
+  background_color: rgba(0, 0, 0, 0)
+  height: 88
+  icon: valve
+  left: 1563px
+  linkhtml: 'false'
+  'off': '200'
+  off_condition: offgreater
+  'on': '200'
+  on_condition: onsmaller
+  ref: 630-VAO-8-6400
+  rotate: matrix(6.12323e-17, 1, -1, 6.12323e-17, 0, 0)
+  top: 309px
+  trend: 'false'
+  type: icon
+  width: 89
+header_cps-cryo:
+  background_color: rgb(255, 255, 255)
+  header:
+    size: 30
+    title: 'CPS Cryo                   '
+    weight: '400'
+  height: 41
+  left: 16px
+  titlelink: http://katrin.kit.edu/status/cps/
+  top: 1039px
+  type: header
+  width: 142
+header_dps:
+  background_color: rgb(255, 255, 255)
+  header:
+    size: 30
+    title: 'DPS                       '
+    weight: '400'
+  height: 41
+  left: 49px
+  titlelink: http://ipepc57.ipe.kit.edu:4546/loops_dps/status
+  top: 151px
+  type: header
+  width: 65
+header_fbm-inserted:
+  background_color: rgb(255, 255, 255)
+  header:
+    size: 20
+    title: 'FBM inserted:      '
+    weight: '400'
+  height: 27
+  left: 1338px
+  top: 963px
+  type: header
+  width: 143
+header_loops-cps:
+  background_color: rgba(0, 0, 0, 0)
+  header:
+    size: 40
+    title: 'Loops @ CPS                 '
+    weight: '400'
+  height: 55
+  left: 822px
+  top: 4px
+  type: header
+  width: 243
+header_sds:
+  background_color: rgb(255, 255, 255)
+  header:
+    size: 30
+    title: 'SDS                    '
+    weight: '400'
+  height: 41
+  left: 1815px
+  titlelink: https://neutrino.ikp.kit.edu/sdsstatus/
+  top: 146px
+  type: header
+  width: 74
+header_v2:
+  background_color: rgba(0, 0, 0, 0)
+  header:
+    size: 60
+    title: 'V2  '
+    weight: '400'
+  height: 82
+  left: 30px
+  top: 415px
+  type: header
+  width: 80
+header_v3:
+  background_color: rgba(0, 0, 0, 0)
+  header:
+    size: 60
+    title: 'V3    '
+    weight: '400'
+  height: 79
+  left: 1331px
+  top: 421px
+  type: header
+  width: 78
+header_v4:
+  background_color: rgba(0, 0, 0, 0)
+  header:
+    size: 60
+    title: 'V4 '
+    weight: '400'
+  height: 82
+  left: 1813px
+  top: 421px
+  type: header
+  width: 50

+ 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

+ 28 - 0
varname.yaml

@@ -0,0 +1,28 @@
+310EEL-3-1000: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=3
+310EEL-3-1010: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=15
+310EEL-3-2000: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=27
+310EEL-3-2010: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=39
+310EEL-3-3000: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=51
+310EEL-3-3010: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=63
+310EEL-3-4000: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=75
+310EEL-3-4010: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=87
+310EEL-3-5000: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=99
+310EEL-3-5010: db_server=cscryo&db_name=ControlSystem_DPS&db_group=310_ION_IonenHV&db_mask=111
+320-RTP-3-1101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=180
+320-RTP-3-6101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=195
+320-RTP-3-7101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=207
+320-RTY-3-2101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=213
+320-RTY-3-3101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=222
+320-RTY-3-4101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=231
+320-RTY-3-5101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=240
+320-VAO-3-0003: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=320CPS_BeamMonitor&db_mask=0
+320-VAO-3-0004: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=320CPS_BeamMonitor&db_mask=3
+322-MCH-0-3110: db_server=fbmd&db_name=FBMD&db_group=0&db_mask=18
+620-VAO-3-0002: db_server=cstloops&db_name=ControlSystem_Loop_DPS&db_group=620OuterLoop_DPS&db_mask=99
+630-RPP-8-5030: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=630Purging_CPS_Helium&db_mask=54
+630-RPP-8-6030: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=320CPS_BeamMonitor&db_mask=27
+630-RPP-8-6130: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=320CPS_BeamMonitor&db_mask=30
+630-VAO-8-5201: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=630Purging_CPS_Helium&db_mask=63
+630-VAO-8-5203: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=630Purging_CPS_Helium&db_mask=66
+630-VAO-8-6100: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=320CPS_BeamMonitor&db_mask=33
+630-VAO-8-6400: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=320CPS_BeamMonitor&db_mask=42