From a36bb13e4b3493175d8dbcdd731ec9d969e90eb5 Mon Sep 17 00:00:00 2001
From: kruger <kruger@astron.nl>
Date: Sun, 23 May 2021 22:41:58 +0200
Subject: [PATCH] start script

---
 opcuaserv/convert_unit.py | 6 ++++++
 start.sh                  | 7 +++++++
 2 files changed, 13 insertions(+)
 create mode 100644 opcuaserv/convert_unit.py
 create mode 100644 start.sh

diff --git a/opcuaserv/convert_unit.py b/opcuaserv/convert_unit.py
new file mode 100644
index 0000000..599033d
--- /dev/null
+++ b/opcuaserv/convert_unit.py
@@ -0,0 +1,6 @@
+def Kelvin2Celsius(T):
+  return T-273.15;
+
+def period2RMS(T):
+  if T==0: return 0.
+  return 60./T;
diff --git a/start.sh b/start.sh
new file mode 100644
index 0000000..87a13ec
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,7 @@
+tmux new -s translators  'cd ~/pypcc;python3 pypcc2.py -p 4840 -c RECVTR'  \; \
+  new-window 'cd ~/pypcc;python3 pypcc2.py -p 4841 -c UNB2TR' \; \
+  new-window 'cd ~/pypcc;python3 pypcc2.py -p 4842 -c APSPUTR' \; \
+  new-window 'cd ~/pypcc;python3 pypcc2.py -p 4843 -c APSCTTR' \; \
+  detach-client
+#\
+#    detach-client
-- 
GitLab