added scripts
Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
8
epics/css/ArchiveConfigTool/get_tracelog.sh
Executable file
8
epics/css/ArchiveConfigTool/get_tracelog.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
#mysql -u report -p"\$report" -D archive -e 'SELECT `smpl_time`, `severity_id`, `status_id`, `str_val` FROM `sample` WHERE `channel_id` = 12'
|
||||
#mysql -u report -p"\$report" -D archive <<< 'show tables'
|
||||
#mysql -u report -p"\$report" -D archive <<< "SELECT `smpl_time`, `severity_id`, `status_id`, `str_val` FROM `sample` WHERE `channel_id` = 13"
|
||||
mysql -u report -p"\$report" -D archive <<< 'SELECT `smpl_time`, `str_val` , `severity_id`, `status_id` FROM sample WHERE channel_id = 12 ORDER by `smpl_time` DESC LIMIT 20'
|
||||
|
||||
#"SELECT `smpl_time`, `severity_id`, `status_id`, `str_val` FROM `sample` WHERE `channel_id` = 13"
|
||||
|
||||
10
epics/css/ArchiveConfigTool/isttok.ini
Normal file
10
epics/css/ArchiveConfigTool/isttok.ini
Normal file
@@ -0,0 +1,10 @@
|
||||
# ----------------------------
|
||||
# Package org.csstudio.archive
|
||||
# ----------------------------
|
||||
# MySQL example
|
||||
org.csstudio.archive/url=jdbc:mysql://localhost/archive?rewriteBatchedStatements=true
|
||||
|
||||
# RDB user and password
|
||||
# Some applications also provide command-line option to override.
|
||||
org.csstudio.archive/user=archive
|
||||
org.csstudio.archive/password=$archive
|
||||
16
epics/css/ArchiveConfigTool/launch-epics-archive.sh
Executable file
16
epics/css/ArchiveConfigTool/launch-epics-archive.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
|
||||
#JAVA_HOME=/opt/java/jdk/jdk1.8.0_231
|
||||
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
||||
PATH=$JAVA_HOME/bin:$PATH
|
||||
#cd /home/oper/CSS-Archive/archive-engine-4.1.0
|
||||
cd /home/oper/CSS-Archive/archive-engine-4.6.6
|
||||
#/home/esther/EPICS/archive-engine-4.1.0
|
||||
#./ArchiveEngine -pluginCustomization isttok.ini -engine isttokDB -port 4812&
|
||||
./archive-engine.sh -engine isttokDB -port 4812 -settings isttok.ini
|
||||
|
||||
#sleep 2s
|
||||
#echo "Archive Started. Check browser at http://localhost:4812/main"
|
||||
|
||||
|
||||
@@ -21,6 +21,23 @@
|
||||
<!-- Example for a monitor with engine-enforced
|
||||
value change threshold of 2.5
|
||||
-->
|
||||
<channel>
|
||||
<name>ISTTOK:central:OPSTATE</name>
|
||||
<period>1.0</period>
|
||||
<monitor/>
|
||||
</channel>
|
||||
<channel>
|
||||
<name>ISTTOK:central:TraceMessage</name>
|
||||
<period>1.0</period>
|
||||
<monitor/>
|
||||
</channel>
|
||||
|
||||
<channel>
|
||||
<name>ISTTOK:central:TPump1-Emergency</name>
|
||||
<period>1.0</period>
|
||||
<monitor/>
|
||||
</channel>
|
||||
|
||||
<channel>
|
||||
<name>ISTTOK:central:RPump1-Pressure</name>
|
||||
<period>10.0</period><scan/>
|
||||
@@ -48,6 +65,15 @@
|
||||
</channel> -->
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<name>IsttokTemperature</name>
|
||||
<channel>
|
||||
<name>ISTTOK:temperature:VVessel-Temperature</name>
|
||||
<period>10.0</period>
|
||||
<monitor>1.0</monitor>
|
||||
<enable/>
|
||||
</channel>
|
||||
</group>
|
||||
<!-- Other Group
|
||||
<group>
|
||||
<name>SouthSectorVacuum</name>
|
||||
|
||||
Reference in New Issue
Block a user