Skip to content

Commit

Permalink
toand fix previs button for self-service
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoand committed Apr 24, 2019
1 parent 2665129 commit b3a16bb
Show file tree
Hide file tree
Showing 33 changed files with 2,959 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
*.log
*.bak
*.eqc
10 changes: 10 additions & 0 deletions GO_SelfService
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

cd /cave/sabi.js

echo `node --version`

./STOP
forever cleanlogs
forever start -l cave2-SSlog.log -o cave2-SSout.log -e cave2-SSerr.log server.js -f cave2_selfservice.json &

680 changes: 680 additions & 0 deletions cave2.bak.20190125.ah

Large diffs are not rendered by default.

666 changes: 666 additions & 0 deletions cave2.bak2

Large diffs are not rendered by default.

32 changes: 30 additions & 2 deletions cave2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"footer" : "<h4>CAVE2 Enhanced Experience</h4>",
"image" : "images/cave2_logo.gif",
"image_style" : "width=\"90%\" style=\"max-width:420px;align:center;margin: 0 auto;\"",
"pages" : [ "Admin", "MIVP", "SAGE", "Electro", "OmegaLib", "CalVR", "Audio", "ViSTA", "FIC" ]
"pages" : [ "Admin", "MIVP", "Self Service", "SAGE", "Electro", "OmegaLib", "CalVR", "Audio", "ViSTA", "FIC" ]
},
"actions": {
"displays-on": { "script": "scripts/PlanarOn" },
Expand Down Expand Up @@ -222,6 +222,34 @@
},



"Self Service" : {
"title" : "Self Service",
"groups" : [ "SELF_SERVICE"],
"SELF_SERVICE" : {
"title": "Self Service Menu",
"image": "images/unity_small.png",
"actions": [
{"title": "Run Previs", "previs" : "1"},
{"title": "See Melbourne CBD", "action": "previs_melbourne"},
{"title": "Mars Images TODO vsview", "action": ""},
{"title": "Mars Flyover", "action": "mars-on-withtrack"},
{"title": "Bay Bridge CAD Model", "action": "omegalib_baybridge-on"},
{"title": "Human Connectome", "action": "omegalib_connectome-on"},
{"title": "STOP ( use after each application )", "action": "fic-stop", "theme": "b"},
{"title": "Volume", "action": "sc-playback-volume", "role": "range", "minvalue": "-40", "maxvalue": "8" , "theme": "a"}
]
},
"volume" : {
"title": "Volume settings",
"image": "images/volume_small.png",
"description": "Basic playback volume control",
"actions": [
{"title": "Volume", "action": "sc-playback-volume", "role": "range", "minvalue": "-40", "maxvalue": "8" , "theme": "a"}
]
}
},

"Admin" : {
"title" : "Administration",
"groups" : [ "displays", "x11server", "cameras", "unity"],
Expand Down Expand Up @@ -394,7 +422,7 @@
{"title": "Mouse", "action": "lavavu-imbl_from_anton"},
{"title": "Fluid Vortex", "action": "lavavu-vortex"},
{"title": "Protein Database", "action": "lavavu-pdbvis"},
{"title": "Run Previs", "previs" : "run-previs"},
{"title": "Run Previs", "previs" : "0"},
{"title": "STOP LavaVu", "action": "lavavu-stop", "theme": "e"}
]
},
Expand Down
705 changes: 705 additions & 0 deletions cave2_selfservice.json

Large diffs are not rendered by default.

Binary file added images/cave2_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
391 changes: 391 additions & 0 deletions images/w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions scripts/FIC-stop
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ orun -K
tentakel killall -9 CalVR;killall -9 electro-mpi
killall xterm
pkill -f coles

killall dzviewer
tentakel 'killall dzviewer'

/cave/sabi.js/scripts/LavaVu-stop
5 changes: 5 additions & 0 deletions scripts/LavaVu-RockShelterArt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
module load LavaVR/1.0.0
cd /home/okaluza/RockShelterArt
xterm -geometry -0-0 -e LavaVR.sh

6 changes: 6 additions & 0 deletions scripts/LavaVu-videosynth
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
module load LavaVR/1.0.0
/cave/sabi.js/scripts/GL-highquality
cd /cave/LavaVR/apps/videosynth
xterm -geometry -0-0 -e playsynth.sh AustraliasGreatBarrierReef-BiodiversityandMarineLifeThreatened.mp4

5 changes: 5 additions & 0 deletions scripts/Omegalib-quit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

module load omegalib/4.2.4
/cave/omegalib/install/omegalib/bin/mcsend 'oexit()'

14 changes: 14 additions & 0 deletions scripts/PlanarCave
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

/home/toand/git/projects/videocave/build/STOP_CAVE.sh

[ "$(</run/user/1003/screens.lck)" = "cluster" ] && exit

/cave/sabi.js/scripts/PlanarOn

ssh n01 'python /cave/sabi.js/scripts/PlanarCavepy'
python /cave/sabi.js/scripts/PlanarCavepy

echo 'cluster' > /run/user/1003/screens.lck


28 changes: 28 additions & 0 deletions scripts/PlanarCavepy
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env python

import sys,serial

def sendCmd(cmd):
cmd = str(cmd)
port = "/dev/ttyS0"
try:
serialPort = serial.Serial(port)
except serial.serialutil.SerialException:
print("Unable to open serial port " + port)
return -1

serialPort.baudrate = 19200
serialPort.timeout = 5
serialPort.write(cmd.encode())
serialPort.flush()

response = ""
recvd = ""
while(recvd != '\r'):
recvd = str(serialPort.read())
response += recvd
print("planar: received " + response)
serialPort.close()
return response

sendCmd("op A1 slot.recall(0)\r")
1 change: 1 addition & 0 deletions scripts/PlanarHead3
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
ssh n01 'python /cave/sabi.js/scripts/PlanarHead3py'

echo 'head3' > /run/user/1003/screens.lck
/home/toand/git/projects/videocave/build/STOP_CAVE.sh
29 changes: 29 additions & 0 deletions scripts/PlanarHead3py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env python

import sys,serial

def sendCmd(cmd):
cmd = str(cmd)
port = "/dev/ttyS0"
try:
serialPort = serial.Serial(port)
except serial.serialutil.SerialException:
print("Unable to open serial port " + port)
return -1

serialPort.baudrate = 19200
serialPort.timeout = 5
serialPort.write(cmd.encode())
serialPort.flush()

response = ""
recvd = ""
while(recvd != '\r'):
recvd = str(serialPort.read())
response += recvd
print("planar: received " + response)
serialPort.close()
return response

sendCmd("op A1 slot.recall(2)\r")

6 changes: 6 additions & 0 deletions scripts/PlanarOff
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

python /cave/sabi.js/scripts/planarOff
ssh n01 'python /cave/sabi.js/scripts/planarOff'

rm /run/user/1003/screens.lck
9 changes: 9 additions & 0 deletions scripts/PlanarOn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
[ -f /run/user/1003/screens.lck ] && exit

echo 'on' > /run/user/1003/screens.lck

python /cave/sabi.js/scripts/planarOn
ssh n01 'python /cave/sabi.js/scripts/planarOn'

sleep 20
3 changes: 3 additions & 0 deletions scripts/PlanarVR
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
python /cave/sabi.js/scripts/PlanarVRpy

29 changes: 29 additions & 0 deletions scripts/PlanarVRpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env python

import sys,serial

def sendCmd(cmd):
cmd = str(cmd)
port = "/dev/ttyS0"
try:
serialPort = serial.Serial(port)
except serial.serialutil.SerialException:
print("Unable to open serial port " + port)
return -1

serialPort.baudrate = 19200
serialPort.timeout = 5
serialPort.write(cmd.encode())
serialPort.flush()

response = ""
recvd = ""
while(recvd != '\r'):
recvd = str(serialPort.read())
response += recvd
print("planar: received " + response)
serialPort.close()
return response

sendCmd("op A1 slot.recall(3)\r")

7 changes: 7 additions & 0 deletions scripts/UnityElwoodSTART
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
/cave/sabi.js/scripts/UnityElwoodSTOP
sleep 1
cd /scratch/Unity/cluster_deployment/master/UnityCluster/uploads/f945393e0dea2ac96efaf02db90d96647c3aebdd9cc6722bd8569edd2ff8ead6/
./Elwood.x86_64 -server 20 tcp://*:5000 tcp://*:* -logFile server.txt -screen-fullscreen 0 &
sleep 2
tentakel /cave/Unity/cluster_deployment/master/UnityCluster/uploads/f945393e0dea2ac96efaf02db90d96647c3aebdd9cc6722bd8569edd2ff8ead6/run_client.sh
2 changes: 2 additions & 0 deletions scripts/UnityElwoodSTOP
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tentakel pkill -f Elwood
pkill -f Elwood
2 changes: 2 additions & 0 deletions scripts/XOnNodesStart
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
tentakel /cave/share/centos/ssh_runX.sh
2 changes: 2 additions & 0 deletions scripts/XOnNodesStop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
tentakel killall X
1 change: 1 addition & 0 deletions scripts/cmds/20x20_cave/ping.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ping
6 changes: 6 additions & 0 deletions scripts/cmds/20x20_cave/simplewindows.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VIDEO OUTPUT ROUTING:
1 6
2 7
3 8
4 9
5 10
6 changes: 6 additions & 0 deletions scripts/cmds/20x20_cave/vbs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VIDEO OUTPUT ROUTING:
1 1
2 2
3 3
4 4
5 5
8 changes: 8 additions & 0 deletions scripts/gigapointLunarisIII
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

. /usr/share/Modules/3.2.10/init/bash
module load omegalib/13-c++11
/cave/sabi.js/scripts/GL-highperformance

cd /home/toand/git/projects/gigapoint/apps/CAVE2
xterm -e orun -s run_LunarisIII.py
Loading

0 comments on commit b3a16bb

Please sign in to comment.