mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 08:41:03 +03:00
add wind check in Weather_chk
This commit is contained in:
26
Auxiliary_utils/bash_scripts/getflats
Executable file
26
Auxiliary_utils/bash_scripts/getflats
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
A="90:00:00"
|
||||
H="85:00:00"
|
||||
|
||||
function sendcmd(){
|
||||
echo $1 | nc 192.168.70.33 10001 -q10
|
||||
}
|
||||
|
||||
for x in $(seq 1 10); do
|
||||
sendcmd ":Sz${A}#"
|
||||
sendcmd ":Sa${H}#"
|
||||
sendcmd ":MS#"
|
||||
while true; do
|
||||
ANS=$(sendcmd ":Gstat#")
|
||||
echo $ANS
|
||||
[ $ANS == "0#" ] && break
|
||||
sleep 2
|
||||
done
|
||||
|
||||
sleep 5
|
||||
./preflash
|
||||
/usr/bin/fli_control -r /tmp/10micron.fitsheader -x 15000 -Y flat flat
|
||||
done
|
||||
|
||||
fli_control -v32 -h32 -x1 -d
|
||||
Reference in New Issue
Block a user