@@ -132,12 +132,17 @@ else | |||||
fi | fi | ||||
### install predict | ### install predict | ||||
$orig_dir=$(pwd) | |||||
cd software | |||||
tar -xzf predict-2.2.7.tar.gz | |||||
cd predict-2.2.7 | |||||
sudo ./configure #this also installs :X | |||||
cd $orig_dir | |||||
if [ -e $(which predict) ]; then | |||||
log_done "predict was already installed" | |||||
else | |||||
$orig_dir=$(pwd) | |||||
cd software | |||||
tar -xzf predict-2.2.7.tar.gz | |||||
cd predict-2.2.7 | |||||
sudo ./configure #this also installs :X | |||||
cd $orig_dir | |||||
log_done "predict installed" | |||||
fi | |||||
### Install default config file | ### Install default config file | ||||
if [ -e "$HOME/.noaa.conf" ]; then | if [ -e "$HOME/.noaa.conf" ]; then | ||||
@@ -16,6 +16,7 @@ grep "NOAA 15" "${NOAA_HOME}"/predict/weather.txt -A 2 > "${NOAA_HOME}"/predict/ | |||||
grep "NOAA 18" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | grep "NOAA 18" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | ||||
grep "NOAA 19" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | grep "NOAA 19" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | ||||
grep "METEOR-M 2" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | grep "METEOR-M 2" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | ||||
grep "METEOR-M2 2" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle | |||||
if [ "$SCHEDULE_ISS" == "true" ]; then | if [ "$SCHEDULE_ISS" == "true" ]; then | ||||
grep "ZARYA" "${NOAA_HOME}"/predict/amateur.txt -A 2 > "${NOAA_HOME}"/predict/amateur.tle | grep "ZARYA" "${NOAA_HOME}"/predict/amateur.txt -A 2 > "${NOAA_HOME}"/predict/amateur.tle | ||||
fi | fi | ||||
@@ -26,7 +26,7 @@ while [ "$(date --date="@${var2}" +%D)" = "$(date +%D)" ]; do | |||||
OUTDATE=$(date --date="TZ=\"UTC\" ${START_TIME}" +%Y%m%d-%H%M%S) | OUTDATE=$(date --date="TZ=\"UTC\" ${START_TIME}" +%Y%m%d-%H%M%S) | ||||
if [ "${MAXELEV}" -gt "${METEOR_MIN_ELEV}" ]; then | if [ "${MAXELEV}" -gt "${METEOR_MIN_ELEV}" ]; then | ||||
log "Pass is above ${METEOR_MIN_ELEV}, that is OK for me" "INFO" | |||||
log "Pass at ${MAXELEV} is above ${METEOR_MIN_ELEV}, that is OK for me" "INFO" | |||||
SATNAME=$(echo "$1" | sed "s/ //g") | SATNAME=$(echo "$1" | sed "s/ //g") | ||||
echo "${SATNAME}" "${OUTDATE}" "$MAXELEV" | echo "${SATNAME}" "${OUTDATE}" "$MAXELEV" | ||||
echo "${NOAA_HOME}/receive_meteor.sh \"${1}\" $2 ${SATNAME}${OUTDATE} "${NOAA_HOME}"/predict/weather.tle \ | echo "${NOAA_HOME}/receive_meteor.sh \"${1}\" $2 ${SATNAME}${OUTDATE} "${NOAA_HOME}"/predict/weather.tle \ | ||||