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

Missing files test_reception.sh #77

Closed Ashtreighlia closed 3 years ago

Ashtreighlia commented 3 years ago

Unable to run test_reception.sh The newest version of the github repo was run on a fresh updated&upgraded Raspberry Pi OS install.

Original error code

mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied

    The server is in testing mode tuned to 90.3 Mhz!
    Open a terminal in your computer and paste:
    ncat 202 8073 | play -t mp3 -

Found 1 device(s):
sox FAIL formats: no handler for given file type `mp3'
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 48.00 dB.
activated bias-T on GPIO PIN 0
Tuner error set to 55 ppm.
Tuned to 90812000 Hz.
Oversampling input by: 8x.
Oversampling output by: 1x.
Buffer size: 4.00ms
Sampling at 2048000 S/s.
Output at 256000 Hz.
Signal caught, exiting!

User cancel, exiting...

Error code after executing "sudo ./test_reception.sh 90.3"

./test_reception.sh: line 4: /root/.noaa.conf: No such file or directory
./test_reception.sh: line 5: /common.sh: No such file or directory

    The server is in testing mode tuned to 90.3 Mhz!
    Open a terminal in your computer and paste:
    ncat 202 8073 | play -t mp3 -

Found 1 device(s):
sox FAIL formats: no handler for given file type `mp3'
0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 48.00 dB.
Tuner error set to 55 ppm.
Tuned to 90812000 Hz.
Oversampling input by: 8x.
Oversampling output by: 1x.
Buffer size: 4.00ms
Sampling at 2048000 S/s.
Output at 256000 Hz.
Signal caught, exiting!

User cancel, exiting...

The "User cancel" was not initiated by me.

Server information

Problems with receiving images I wanted to test, wether my setup is able to receive any signals at all, that's why I wanted to run this script.

reynico commented 3 years ago

Hi! About the permissions issue: I pushed a commit that fixes that on the install script. If you already setup your station, 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/

About the user cancel issue: run test_reception as a normal user (i.e. do not use sudo)