mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 16:50:59 +03:00
add some scripts
This commit is contained in:
31
Auxiliary_utils/bash_scripts/STARTobs
Executable file
31
Auxiliary_utils/bash_scripts/STARTobs
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# start observation: open everything, turn on power etc
|
||||
export http_proxy=""
|
||||
|
||||
echo "Turn ON hardware power"
|
||||
ssh obs@192.168.70.34 ~/bin/HWpoweron
|
||||
echo "Open dome"
|
||||
curl localhost:55555/open
|
||||
echo "Turn ON mount"
|
||||
ssh obs@192.168.70.34 ~/bin/MOUNTpoweronoff
|
||||
echo "Wait for 5 seconds"
|
||||
sleep 5
|
||||
echo "set camera temperature to -40degrC"
|
||||
fli_control -t-40
|
||||
echo "run preflash"
|
||||
preflash
|
||||
while true; do
|
||||
ANS=$(curl localhost:55555/status 2>/dev/null)
|
||||
echo "Status: $ANS"
|
||||
[ $ANS = "opened" ] && break
|
||||
sleep 1
|
||||
done
|
||||
echo "Open telescope doors"
|
||||
curl localhost:4444/open
|
||||
while true; do
|
||||
ANS=$(curl localhost:4444/status 2>/dev/null)
|
||||
echo "Status: $ANS"
|
||||
[ $ANS = "opened" ] && break
|
||||
sleep 1
|
||||
done
|
||||
echo "Please, wait until telescope mount will be ON! (check it by send_coords)"
|
||||
Reference in New Issue
Block a user