mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 08:41:03 +03:00
add EQUINOX, pier side and JD to stellarium daemon
This commit is contained in:
9
Daemons/astrosib/HWoff
Executable file
9
Daemons/astrosib/HWoff
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# start observation: open everything, turn on power etc
|
||||
export http_proxy=""
|
||||
|
||||
echo "Turn OFF mount"
|
||||
ssh obs@192.168.70.34 ~/bin/MOUNTpoweronoff
|
||||
sleep 30
|
||||
echo "Turn OFF hardware power"
|
||||
ssh obs@192.168.70.34 ~/bin/HWpoweroff
|
||||
9
Daemons/astrosib/HWon
Executable file
9
Daemons/astrosib/HWon
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
sleep 5
|
||||
echo "Turn ON mount"
|
||||
ssh obs@192.168.70.34 ~/bin/MOUNTpoweronoff
|
||||
7
Daemons/astrosib/Readme
Normal file
7
Daemons/astrosib/Readme
Normal file
@@ -0,0 +1,7 @@
|
||||
Scripts from main telescope computer
|
||||
|
||||
HWoff - turn hardware off
|
||||
HWon - turn hardware on
|
||||
STARTobs - start observations: turn hardware on and open dome/telescope
|
||||
STOPobs - end observations: turn all off and close everything
|
||||
|
||||
26
Daemons/astrosib/STARTobs
Executable file
26
Daemons/astrosib/STARTobs
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
while true; do
|
||||
ANS=$(curl localhost:55555/status 2>/dev/null)
|
||||
echo "Status: $ANS"
|
||||
[ $ANS = "opened" ] && break
|
||||
sleep 1
|
||||
done
|
||||
echo "Turn ON mount"
|
||||
ssh obs@192.168.70.34 ~/bin/MOUNTpoweronoff
|
||||
echo "set camera temperature to -25degrC"
|
||||
fli_control -t-25
|
||||
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
|
||||
27
Daemons/astrosib/STOPobs
Executable file
27
Daemons/astrosib/STOPobs
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# stop observation: close everything, turn of power etc
|
||||
export http_proxy=""
|
||||
echo "Turn OFF mount"
|
||||
ssh obs@192.168.70.34 ~/bin/MOUNTpoweronoff
|
||||
echo "Turn off camera TEC"
|
||||
fli_control -t25
|
||||
echo "Close telescope doors"
|
||||
curl localhost:4444/close
|
||||
echo "Close dome"
|
||||
curl localhost:55555/close
|
||||
while true; do
|
||||
ANS=$(curl localhost:55555/status 2>/dev/null)
|
||||
echo "Status: $ANS"
|
||||
[ $ANS = "closed" ] && break
|
||||
sleep 1
|
||||
done
|
||||
echo "Dome closed!"
|
||||
while true; do
|
||||
ANS=$(curl localhost:4444/status 2>/dev/null)
|
||||
echo "Status: $ANS"
|
||||
[ $ANS = "closed" ] && break
|
||||
sleep 1
|
||||
done
|
||||
sleep 10
|
||||
echo "Turn OFF hardware power"
|
||||
ssh obs@192.168.70.34 ~/bin/HWpoweroff
|
||||
Reference in New Issue
Block a user