reynico / raspberry-noaa

Fully automated ISS SSTV, NOAA and Meteor satellite image downloader using Raspberry PI
https://github.com/reynico/raspberry-noaa
GNU General Public License v3.0
180 stars 56 forks source link

[Error] receive_meteor.sh script not working #73

Closed MihajloPi closed 3 years ago

MihajloPi commented 3 years ago

Hello, I've noticed that after the update, no Meteor M2 images have been decoded. I looked up /var/mail/pi and this showed up:

From pi@raspberrypi Mon Nov 30 07:49:02 2020
Return-path: <pi@raspberrypi>
Envelope-to: pi@raspberrypi
Delivery-date: Mon, 30 Nov 2020 07:49:02 +0100
Received: from pi by raspberrypi with local (Exim 4.92)
        (envelope-from <pi@raspberrypi>)
        id 1kjcze-0001Nh-Qp
        for pi@raspberrypi; Mon, 30 Nov 2020 07:49:02 +0100
Subject: Output from your job       38
To: pi@raspberrypi
Message-Id: <E1kjcze-0001Nh-Qp@raspberrypi>
From: pi@raspberrypi
Date: Mon, 30 Nov 2020 07:49:02 +0100

/home/pi/raspberry-noaa/receive_meteor.sh: line 4: /root/.noaa.conf: No such file or directory
/home/pi/raspberry-noaa/receive_meteor.sh: line 5: /root/.tweepy.conf: No such file or directory
/home/pi/raspberry-noaa/receive_meteor.sh: line 6: /common.sh: No such file or directory
/home/pi/raspberry-noaa/receive_meteor.sh: line 11: log: command not found
python3: can't open file '/sun.py': [Errno 2] No such file or directory
/home/pi/raspberry-noaa/receive_meteor.sh: line 40: log: command not found
Found 1 device(s):
sox FAIL formats: can't open output file `/audio/METEOR-M220201130-074901.wav': No such file or directory
MihajloPi commented 3 years ago

I was also confused when I tried opening files:

## import common lib
. "$HOME/.noaa.conf"
. "$HOME/.tweepy.conf"
. "$NOAA_HOME/common.sh"

Everything exists except common.sh. NOAA satellites are getting decoded correctly and are automatically tweeted. Everything is working how it's supposed to except receive_meteor.sh.

MihajloPi commented 3 years ago
sox FAIL formats: can't open output file `/var/www/wx/meteor/audio/METEOR-M220201204-080938.wav': Permission denied
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 7.70 dB.
Tuner error set to 55 ppm.
Tuned to 137388000 Hz.
Oversampling input by: 4x.
Oversampling output by: 1x.
Buffer size: 7.11ms
Sampling at 1152000 S/s.
Output at 288000 Hz.
Signal caught, exiting!

User cancel, exiting...
INFO : Demodulation in progress (QPSK)
[FATAL]: Could not find specified file
INFO : Deleting audio files
rm: cannot remove '/var/www/wx/meteor/audio/METEOR-M220201204-080938.wav': No such file or directory
INFO : Decoding in progress (QPSK to BMP)
Input file "/var/www/wx/meteor/METEOR-M220201204-080938.qpsk" not found!
rm: cannot remove '/var/www/wx/meteor/METEOR-M220201204-080938.qpsk': No such file or directory
ERROR : Decoding failed, either a bad pass/low SNR or a software problem
tomamdy commented 3 years ago

Is there no solution for this faillure?

reynico commented 3 years ago

hi! I've updated the install script. Anyways if your station is already setup, just run

sudo chmod -R 775 /var/www/wx/audio/
sudo chmod -R 775 /var/www/wx/images/
sudo chmod -R 775 /var/www/wx/meteor/

Sorry for the delay.

tomamdy commented 3 years ago

Thank You.