Browse Source

First commit transfer line status monitor

Carsten Roettele 4 years ago
commit
bf016892c0
8 changed files with 579 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. 531 0
      style.yaml
  7. 3 0
      trigger.sh
  8. 26 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 dc4f0f09bf4d0d0f31539e84a727fba95f7872a2

+ 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

+ 531 - 0
style.yaml

@@ -0,0 +1,531 @@
+320-RTP-3-1102:
+  background_color: rgba(0, 0, 0, 0)
+  condition: ''
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-1102                                                                      '
+    weight: '400'
+  height: 60
+  larger: '110'
+  left: 20px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTP-3-1102
+  top: 326px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                                                         K'
+    weight: '400'
+  width: 129
+320-RTP-3-1110:
+  background_color: rgba(0, 0, 0, 0)
+  condition: ''
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-1110                                                                      '
+    weight: '400'
+  height: 64
+  larger: '110'
+  left: 262px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTP-3-1110
+  top: 333px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                                                         K'
+    weight: '400'
+  width: 124
+320-RTP-3-1111:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'False'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-1111                                                                      '
+    weight: '400'
+  height: 56
+  larger: '110'
+  left: 158px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTP-3-1111
+  top: 736px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                                                        K'
+    weight: '400'
+  width: 123
+320-RTP-3-6101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'False'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-6101                                                                    '
+    weight: '400'
+  height: 60
+  larger: '110'
+  left: 1438px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTP-3-6101
+  top: 745px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                                                    K'
+    weight: '400'
+  width: 123
+320-RTP-3-6102:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-6102                                                 '
+    weight: '400'
+  height: 59
+  larger: '110'
+  left: 1359px
+  lesser: '0'
+  linkhtml: 'false'
+  ref: 320-RTP-3-6102
+  top: 330px
+  trend: 'false'
+  type: data
+  unit:
+    size: 28
+    title: '                                                 K'
+    weight: '400'
+  width: 129
+320-RTP-3-6106:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'False'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-6106                                                                      '
+    weight: '400'
+  height: 67
+  larger: '110'
+  left: 1577px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTP-3-6106
+  top: 743px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                                                       K'
+    weight: '400'
+  width: 136
+320-RTP-3-6107:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'False'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-6107                                        '
+    weight: '400'
+  height: 56
+  larger: '140'
+  left: 1589px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTP-3-6107
+  top: 235px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                        K'
+    weight: '400'
+  width: 134
+320-RTP-3-7101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'False'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-7101                                                                      '
+    weight: '400'
+  height: 56
+  larger: '110'
+  left: 1622px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTP-3-7101
+  top: 324px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                                                                      K'
+    weight: '400'
+  width: 120
+320-RTP-3-7102:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTP-3-7102                    '
+    weight: '400'
+  height: 59
+  larger: '120'
+  left: 1743px
+  lesser: ''
+  linkhtml: 'true'
+  ref: 320-RTP-3-7102
+  top: 739px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '                    K'
+    weight: '400'
+  width: 121
+320-RTY-3-2101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-2101             '
+    weight: '400'
+  height: 49
+  larger: '3.5'
+  left: 407px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-2101
+  top: 314px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '             K'
+    weight: '400'
+  width: 120
+320-RTY-3-2102:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-2102     '
+    weight: '400'
+  height: 44
+  larger: '3.5'
+  left: 303px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-2102
+  top: 738px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '     K'
+    weight: '400'
+  width: 123
+320-RTY-3-2103:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-2103    '
+    weight: '400'
+  height: 52
+  larger: '3.5'
+  left: 451px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-2103
+  top: 737.983px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '    K'
+    weight: '400'
+  width: 121
+320-RTY-3-3101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-3101            '
+    weight: '400'
+  height: 51
+  larger: '3.5'
+  left: 588px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-3101
+  top: 317px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '            K'
+    weight: '400'
+  width: 121
+320-RTY-3-3102:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-3102   '
+    weight: '400'
+  height: 38
+  larger: '3.5'
+  left: 619px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-3102
+  top: 740px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '   K'
+    weight: '400'
+  width: 115
+320-RTY-3-3103:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-3103  '
+    weight: '400'
+  height: 43
+  larger: '3.5'
+  left: 802px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-3103
+  top: 744px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '  K'
+    weight: '400'
+  width: 124
+320-RTY-3-4101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-4101           '
+    weight: '400'
+  height: 44
+  larger: '3.5'
+  left: 757px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-4101
+  top: 320px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '           K'
+    weight: '400'
+  width: 124
+320-RTY-3-4102:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-4102          '
+    weight: '400'
+  height: 44
+  larger: '3.5'
+  left: 918px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-4102
+  top: 315px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '          K'
+    weight: '400'
+  width: 120
+320-RTY-3-4103:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-4103         '
+    weight: '400'
+  height: 40
+  larger: '3.5'
+  left: 915px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-4103
+  top: 240px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '         K'
+    weight: '400'
+  width: 115
+320-RTY-3-5101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-5101        '
+    weight: '400'
+  height: 43
+  larger: '3.5'
+  left: 1058px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-5101
+  top: 316px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '        K'
+    weight: '400'
+  width: 129
+320-RTY-3-5102:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-5102       '
+    weight: '400'
+  height: 40
+  larger: '3.5'
+  left: 1190px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-5102
+  top: 316px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '       K'
+    weight: '400'
+  width: 121
+320-RTY-3-5103:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-5103 '
+    weight: '400'
+  height: 44
+  larger: '3.5'
+  left: 1124px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-5103
+  top: 741px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: ' K'
+    weight: '400'
+  width: 110
+320-RTY-3-8103:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: '15'
+    title: 320-RTY-3-8103
+    weight: '400'
+  height: 43
+  larger: '10'
+  left: 1279px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-8103
+  top: 735px
+  trend: 'true'
+  type: data
+  unit:
+    size: '28'
+    title: K
+    weight: '400'
+  width: 115
+320-RTY-3-8104:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: 15
+    title: '320-RTY-3-8104      '
+    weight: '400'
+  height: 43
+  larger: '10'
+  left: 1274px
+  lesser: '0'
+  linkhtml: 'true'
+  ref: 320-RTY-3-8104
+  top: 251px
+  trend: 'true'
+  type: data
+  unit:
+    size: 28
+    title: '      K'
+    weight: '400'
+  width: 134

+ 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/46b5d3683ec5f1db/generic

+ 26 - 0
varname.yaml

@@ -0,0 +1,26 @@
+320-REI-1-5103: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_MAG_Stromzufuhr&db_mask=0
+320-RTP-3-1101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=180
+320-RTP-3-1102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=183
+320-RTP-3-1110: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=186
+320-RTP-3-1111: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=189
+320-RTP-3-6101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=195
+320-RTP-3-6102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=198
+320-RTP-3-6106: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=201
+320-RTP-3-6107: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=204
+320-RTP-3-7101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=207
+320-RTP-3-7102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=210
+320-RTY-3-2101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=213
+320-RTY-3-2102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=216
+320-RTY-3-2103: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=219
+320-RTY-3-3101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=222
+320-RTY-3-3102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=225
+320-RTY-3-3103: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=228
+320-RTY-3-4101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=231
+320-RTY-3-4102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=234
+320-RTY-3-4103: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=237
+320-RTY-3-5101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=240
+320-RTY-3-5102: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=243
+320-RTY-3-5103: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=246
+320-RTY-3-8103: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=249
+320-RTY-3-8104: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=252
+630-RPP-8-5030: db_server=cstloops&db_name=ControlSystem_Loop_CPS&db_group=630Purging_CPS_Helium&db_mask=54