Hi,
I would like a pre and post script executing for one or several specific satellites (NORAD) ID.
Does anyone have an example how to do this?
regards
Lars Thunberg
Hi,
I would like a pre and post script executing for one or several specific satellites (NORAD) ID.
Does anyone have an example how to do this?
regards
Lars Thunberg
Run the script always, let the logic in the script return immediately if the observation is not for the right id(s).
Modified "upload IQ files to Dropbox script" selecting satellites with linear transponders - #2 by mfalkvidd can be useful
Thanks will look at that.
Here something I added to /usr/local/bin/satnogs-post
#!/usr/bin/env bash
#
# SATNOGS_POST_OBSERVATION_SCRIPT
#
# /usr/local/bin/satnogs-post {{ID}} {{FREQ}} {{TLE}} {{TIMESTAMP}} {{BAUD}} {{SCRIPT_NAME}}
/usr/local/bin/grsat-wrapper.sh stop "$@"
# Save IQ files
#
if [[ "${ENABLE_IQ_DUMP}" =~ (True|true|1) ]] && \
[ -f "${IQ_DUMP_FILENAME}" ]; then
mv "${IQ_DUMP_FILENAME}" /export/raw/iq_"${SATNOGS_STATION_ID}"_"${1}".raw
echo "${6} ${1} ${SATNOGS_STATION_ID}" >> /export/raw/observations.txt
fi