Browse Source

First commit for WGTS-LOOP.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 6 years ago
commit
60acd925f6
8 changed files with 46 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. 23 0
      style.yaml
  7. 3 0
      trigger.sh
  8. 1 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 6ee806c5aedd8a372410bcf57eb30af0823fd1b1

+ 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

+ 23 - 0
style.yaml

@@ -0,0 +1,23 @@
+320-RTP-3-1101:
+  background_color: rgba(0, 0, 0, 0)
+  decimal: '2'
+  exponential: 'false'
+  formula: ''
+  header:
+    size: '28'
+    title: ''
+    weight: '400'
+  height: 94
+  larger: ''
+  left: 675px
+  lesser: ''
+  linkhtml: 'false'
+  ref: 320-RTP-3-1101
+  top: 65px
+  trend: 'true'
+  type: data
+  unit:
+    size: '28'
+    title: ''
+    weight: '400'
+  width: 51

+ 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

+ 1 - 0
varname.yaml

@@ -0,0 +1 @@
+320-RTP-3-1101: db_server=cscps&db_name=ControlSystem_CPS&db_group=320_STR_Strahlrohr&db_mask=180