Ver código fonte

Added variable noa logfile

pull/131/head
Pascal 3 anos atrás
pai
commit
0b323a8666
3 arquivos alterados com 3 adições e 2 exclusões
  1. +1
    -1
      common.sh
  2. +1
    -1
      receive_meteor.sh
  3. +1
    -0
      templates/noaa.conf

+ 1
- 1
common.sh Ver arquivo

@@ -21,7 +21,7 @@ log() {

#log here
echo "${log_priority} : ${log_message}"
echo $(date '+%d-%m-%Y %H:%M') $0 "${log_priority} : ${log_message}" >> /var/log/noaa.log
echo $(date '+%d-%m-%Y %H:%M') $0 "${log_priority} : ${log_message}" >> "$NOAA_LOG"
}

## current date and folder structure


+ 1
- 1
receive_meteor.sh Ver arquivo

@@ -47,7 +47,7 @@ timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -p $PPM_ERROR -M raw -f "${2}"M

log "Demodulation in progress (QPSK)" "INFO"
[ $1 = "METEOR-M2 2"] && demod_extra="-m opsk"
meteor_demod $demod_extra -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${RAMFS_AUDIO}/audio/${3}.wav"
meteor_demod $demod_extra -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${RAMFS_AUDIO}/audio/${3}.wav" 2>> $NOAA_LOG

if [ "$DELETE_AUDIO" = true ]; then
log "Deleting audio files" "INFO"


+ 1
- 0
templates/noaa.conf Ver arquivo

@@ -1,5 +1,6 @@
NOAA_HOME=/home/pi/raspberry-noaa
NOAA_OUTPUT=/var/www/wx
NOAA_LOG=/var/log/noaa.log
METEOR_OUTPUT=/var/www/wx/meteor
RAMFS_AUDIO=/var/ramfs
SAT_MIN_ELEV=30


Carregando…
Cancelar
Salvar