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
183 stars 57 forks source link

[Error] NOAA and Meteor-M2 images not getting decoded #87

Closed MihajloPi closed 3 years ago

MihajloPi commented 3 years ago

Hi! I've had issue with the newest version that NOAA and Meteor-M2 images are not getting decoded. This is the latest log for NOAA satellites:

From pi@raspberrypi Tue Dec 22 08:55:14 2020
Return-path: <pi@raspberrypi>
Envelope-to: pi@raspberrypi
Delivery-date: Tue, 22 Dec 2020 08:55:14 +0100
Received: from pi by raspberrypi with local (Exim 4.92)
        (envelope-from <pi@raspberrypi>)
        id 1krcVm-0000mB-N1
        for pi@raspberrypi; Tue, 22 Dec 2020 08:55:14 +0100
Subject: Output from your job        8
To: pi@raspberrypi
Message-Id: <E1krcVm-0000mB-N1@raspberrypi>
From: pi@raspberrypi
Date: Tue, 22 Dec 2020 08:55:14 +0100

INFO : Starting rtl_fm record
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 7.70 dB.
Tuned to 138392500 Hz.
Oversampling input by: 32x.
Oversampling output by: 1x.
Buffer size: 4.27ms
Sampling at 1920000 S/s.
Output at 60000 Hz.
Signal caught, exiting!

User cancel, exiting...
INFO : Bulding pass map
Satellite: NOAA 18
Pass Start: 2020-12-22 07:39:31 UTC
Pass Duration: 14:52
Elevation: 31
Azimuth: 96
Direction: southbound
..INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-MSA-precip.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-MSA-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-MSA-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-MSA-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-MSA-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-MSA.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-MSA.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-MSA.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-MSA.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-MSA.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-MCIR-precip.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-MCIR-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-MCIR-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-MCIR-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-MCIR-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-HVCT-precip.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-HVCT-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-HVCT-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-HVCT-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-HVCT-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-HVCT.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-HVCT.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-HVCT.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-HVCT.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-HVCT.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-therm.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-therm.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-therm.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-therm.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-therm.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-sea-day.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-sea-day.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-sea-day.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-sea-day.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-sea-day.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1820201222-083930-histeq.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-histeq.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1820201222-083930-histeq.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1820201222-083930-histeq.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1820201222-083930-histeq.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Posting to Twitter
Traceback (most recent call last):
  File "/home/pi/raspberry-noaa/post.py", line 23, in <module>
    res = api.media_upload(filename)
  File "/usr/local/lib/python3.7/dist-packages/tweepy/api.py", line 223, in media_upload
    file_type = imghdr.what(filename)
  File "/usr/lib/python3.7/imghdr.py", line 16, in what
    f = open(file, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/wx/images/NOAA1820201222-083930-MSA-precip.jpg'
INFO : Deleting audio files

And this is log for Meteor M2. It is longer than usual since I've added piece of code that creates additional images (true-colour, false-colour and infrared), but I've also tried the original code and it didn't work. This is the Meteor Log.txt. I've added it as a separate file since it is too big to display on screen.

This is my receive_meteor.sh script. The problem is that I cannot find any images decoded in /var/www/wx/images or elsewhere.

pi@raspberrypi:~/raspberry-noaa $ cd /var/www/wx/images
pi@raspberrypi:/var/www/wx/images $ ls
thumb
pi@raspberrypi:/var/www/wx/images $ cd thumb
pi@raspberrypi:/var/www/wx/images/thumb $ ls
pi@raspberrypi:/var/www/wx/images/thumb $
reynico commented 3 years ago

seems like the /var/www/wx/ folder has the wrong permissions.

sudo chown pi:pi /var/www/wx

that should be enough

MihajloPi commented 3 years ago

I've changed permissions, will tell you later how it goes. You should include that in your install.sh script. Yesterday I had to manually create /var/www/wx/images directory using sudo mkdir /var/www/wx/images. I suspect that's due to the wrong permissions.

reynico commented 3 years ago

yeah, i think i did a regression on one of the last commits

MihajloPi commented 3 years ago

I'm still not getting any images. Reading the new log, it seems that WXtoImg cannot create images due to some permission problems. I've already run sudo chown pi:pi /var/www/wx command. This is the latest NOAA log:

From pi@raspberrypi Tue Dec 22 17:25:09 2020
Return-path: <pi@raspberrypi>
Envelope-to: pi@raspberrypi
Delivery-date: Tue, 22 Dec 2020 17:25:09 +0100
Received: from pi by raspberrypi with local (Exim 4.92)
        (envelope-from <pi@raspberrypi>)
        id 1krkTF-0000cG-Rf
        for pi@raspberrypi; Tue, 22 Dec 2020 17:25:09 +0100
Subject: Output from your job        7
To: pi@raspberrypi
Message-Id: <E1krkTF-0000cG-Rf@raspberrypi>
From: pi@raspberrypi
Date: Tue, 22 Dec 2020 17:25:09 +0100

INFO : Starting rtl_fm record
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 7.70 dB.
Tuned to 137580000 Hz.
Oversampling input by: 32x.
Oversampling output by: 1x.
Buffer size: 4.27ms
Sampling at 1920000 S/s.
Output at 60000 Hz.
Signal caught, exiting!

User cancel, exiting...
INFO : Bulding pass map
Satellite: NOAA 19
Pass Start: 2020-12-22 16:08:28 UTC
Pass Duration: 15:48
Elevation: 81
Azimuth: 74
Direction: northbound
..INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1920201222-170828-MCIR-precip.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-MCIR-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1920201222-170828-MCIR-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-MCIR-precip.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1920201222-170828-MCIR-precip.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1920201222-170828-MCIR.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-MCIR.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1920201222-170828-MCIR.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-MCIR.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1920201222-170828-MCIR.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1920201222-170828-therm.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-therm.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1920201222-170828-therm.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-therm.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1920201222-170828-therm.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1920201222-170828-sea.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-sea.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1920201222-170828-sea.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-sea.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1920201222-170828-sea.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Decoding image
wxtoimg: error: could not open output file /var/www/wx/images/NOAA1920201222-170828-histeq.jpg: Permission denied
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-histeq.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/NOAA1920201222-170828-histeq.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/var/www/wx/images/NOAA1920201222-170828-histeq.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert: no images defined `/var/www/wx/images/thumb/NOAA1920201222-170828-histeq.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Posting to Twitter
Traceback (most recent call last):
  File "/home/pi/raspberry-noaa/post.py", line 23, in <module>
    res = api.media_upload(filename)
  File "/usr/local/lib/python3.7/dist-packages/tweepy/api.py", line 223, in media_upload
    file_type = imghdr.what(filename)
  File "/usr/lib/python3.7/imghdr.py", line 16, in what
    f = open(file, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '{NOAA_OUTPUT}/images/NOAA1920201222-170828-MCIR-precip.jpg'
INFO : Deleting audio files
MihajloPi commented 3 years ago
pi@raspberrypi:~ $ cd /var/www/wx
pi@raspberrypi:/var/www/wx $
pi@raspberrypi:/var/www/wx $ ls -lH
total 76
drwxrwxr-x 2 pi       pi        4096 Dec 21 20:04 audio
-rw-r--r-- 1 pi       pi         104 Dec 21 21:30 Config.php
drwxr-xr-x 2 pi       pi        4096 Dec 21 21:24 Controller
-rw-r--r-- 1 pi       pi         206 Dec 21 19:41 detail.php
-rw-r--r-- 1 pi       pi         146 Dec 21 19:41 footer.php
-rw-r--r-- 1 pi       pi         995 Dec 21 21:24 header.php
drwxr-xr-x 3 www-data www-data  4096 Dec 21 20:05 images
-rw-r--r-- 1 pi       pi         185 Dec 21 19:41 index.php
drwxr-xr-x 2 pi       pi        4096 Dec 21 19:41 language
-rwxr-xr-x 1 pi       pi       16850 Dec 21 19:41 logo-small.png
drwxr-xr-x 3 pi       pi        4096 Dec 22 18:50 meteor
drwxr-xr-x 2 pi       pi        4096 Dec 21 21:23 Model
-rw-r--r-- 1 pi       pi         108 Dec 21 19:41 passes.php
-rw-r--r-- 1 pi       pi        1509 Dec 21 19:41 style.css
drwxr-xr-x 2 pi       pi        4096 Dec 21 21:23 Views
reynico commented 3 years ago

Try changing the ownership of images:

sudo chown pi:pi /var/www/wx/images
sudo chown -R pi:pi /var/www/wx/images
tegwilym commented 3 years ago

Should the meteor and audio folders also be pi:pi? This is what mine currently looks like:

pi@raspberrypi:/var/www/wx $ ls -la total 84 drwxrwxr-x 9 pi pi 4096 Dec 21 18:08 . drwxr-xr-x 4 root root 4096 Dec 20 20:12 .. drwxrwxr-x 2 www-data www-data 4096 Dec 22 10:24 audio -rw-r--r-- 1 pi pi 104 Dec 21 18:08 Config.php drwxr-xr-x 2 pi pi 4096 Dec 20 20:06 Controller -rw-r--r-- 1 pi pi 206 Dec 20 20:06 detail.php -rw-r--r-- 1 pi pi 146 Dec 20 20:06 footer.php -rw-r--r-- 1 pi pi 976 Dec 20 20:06 header.php drwxr-xr-x 3 pi pi 4096 Dec 20 23:14 images -rw-r--r-- 1 pi pi 185 Dec 20 20:06 index.php drwxr-xr-x 2 pi pi 4096 Dec 20 20:06 language -rwxr-xr-x 1 pi pi 16850 Dec 20 20:06 logo-small.png drwxr-xr-x 3 www-data www-data 4096 Dec 20 20:16 meteor drwxr-xr-x 2 pi pi 4096 Dec 20 20:06 Model -rw-r--r-- 1 pi pi 108 Dec 20 20:06 passes.php -rw-r--r-- 1 pi pi 1509 Dec 20 20:06 style.css drwxr-xr-x 2 pi pi 4096 Dec 20 20:06 Views

reynico commented 3 years ago

yeah, do the same for audio and meteor folders. If this manual fix works for you guys I'll update the install script.

tegwilym commented 3 years ago

yeah, do the same for audio and meteor folders. If this manual fix works for you guys I'll update the install script.

Cool!
One bonehead question, since this was added to the repository, can I do an 'apt-get upgrade' or 'git pull' command when things are changed? I've messed things up in the past and just ended up doing a full re-install, but that's not very efficient! :-)

reynico commented 3 years ago

Yeah, just

git fetch -pt && git pull

for the changes inside the raspberry-noaa folder.

MihajloPi commented 3 years ago

Try changing the ownership of images:

sudo chown pi:pi /var/www/wx/images
sudo chown -R pi:pi /var/www/wx/images

This worked for me for NOAA, will see if Meteor gets decoded successfully in the next few days! Thanks! As a suggestion: write a simple for loop that changes ownership for every directory in /var/www/wx to pi.

MihajloPi commented 3 years ago

Maybe this?

for i in /var/www/wx/*; do
    if [ -d "$i" ]; then
        sudo chown pi:pi  $i
        sudo chown -R pi:pi $i
    fi
done
tegwilym commented 3 years ago

I tried all the changes, mentioned. Just waiting now..... Thanks for the clarification with the updating, that will save me a lot of time!

MihajloPi commented 3 years ago

This is new Meteor-M2 log. I'm still not getting any images out of it. It was a high pass, 59 degrees.

From pi@raspberrypi Wed Dec 23 18:51:46 2020
Return-path: <pi@raspberrypi>
Envelope-to: pi@raspberrypi
Delivery-date: Wed, 23 Dec 2020 18:51:46 +0100
Received: from pi by raspberrypi with local (Exim 4.92)
        (envelope-from <pi@raspberrypi>)
        id 1ks8Ic-0000en-0E
        for pi@raspberrypi; Wed, 23 Dec 2020 18:51:46 +0100
Subject: Output from your job       16
To: pi@raspberrypi
Message-Id: <E1ks8Ic-0000en-0E@raspberrypi>
From: pi@raspberrypi
Date: Wed, 23 Dec 2020 18:51:46 +0100

INFO : The system doesn't have enough space to store a Meteor pass on RAM
INFO : I'll flip this image pass because FLIP_METEOR_IMG is set to true
INFO : Starting rtl_fm record
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 7.70 dB.
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)

Meteor-M2 LRPT demodulator v0.3-beta1

(18:30:50) Input: /var/www/wx/meteor/audio/METEOR-M220201223-181535.wav, output: /var/www/wx/meteor/METEOR-M220201223-181535.qpsk
(18:30:50) Input samplerate: 96000
(18:30:50) Demodulator initialized
(18:30:50) (  0.0%) Carrier:   +11.5 Hz, Locked: No
(18:30:55) (  0.8%) Carrier:  +551.8 Hz, Locked: No
(18:31:00) (  1.8%) Carrier: -1145.4 Hz, Locked: No
(18:31:05) (  2.6%) Carrier:   +93.8 Hz, Locked: No
(18:31:10) (  3.8%) Carrier: +1929.1 Hz, Locked: No
(18:31:15) (  5.1%) Carrier:  +140.4 Hz, Locked: No
(18:31:20) (  6.3%) Carrier:    +3.1 Hz, Locked: No
(18:31:25) (  7.5%) Carrier:    -3.2 Hz, Locked: No
(18:31:30) (  8.8%) Carrier:   +33.9 Hz, Locked: No
(18:31:35) (  9.6%) Carrier:   +35.4 Hz, Locked: No
(18:31:40) ( 10.3%) Carrier:   -19.5 Hz, Locked: No
(18:31:45) ( 11.0%) Carrier:    -8.1 Hz, Locked: No
(18:31:50) ( 11.8%) Carrier:    -0.6 Hz, Locked: No
(18:31:55) ( 12.9%) Carrier:   +44.7 Hz, Locked: No
(18:32:00) ( 13.8%) Carrier:   +13.4 Hz, Locked: No
(18:32:05) ( 14.6%) Carrier:   -15.3 Hz, Locked: No
(18:32:10) ( 15.3%) Carrier:    -9.3 Hz, Locked: No
(18:32:15) ( 16.6%) Carrier:  +301.5 Hz, Locked: No
(18:32:20) ( 17.8%) Carrier:   -86.4 Hz, Locked: No
(18:32:25) ( 19.0%) Carrier: -2728.6 Hz, Locked: No
(18:32:30) ( 19.8%) Carrier:  -374.2 Hz, Locked: No
(18:32:35) ( 21.0%) Carrier: -1245.9 Hz, Locked: No
(18:32:40) ( 21.9%) Carrier:  -532.6 Hz, Locked: No
(18:32:45) ( 23.1%) Carrier: -2484.5 Hz, Locked: No
(18:32:50) ( 23.6%) Carrier:  +161.4 Hz, Locked: No
(18:32:55) ( 24.7%) Carrier:  -488.9 Hz, Locked: No
(18:33:00) ( 25.6%) Carrier:   -49.1 Hz, Locked: No
(18:33:05) ( 26.2%) Carrier: +1955.7 Hz, Locked: No
(18:33:10) ( 27.5%) Carrier:  +732.9 Hz, Locked: No
(18:33:15) ( 28.7%) Carrier:  -273.8 Hz, Locked: No
(18:33:20) ( 29.8%) Carrier: +2183.5 Hz, Locked: No
(18:33:25) ( 30.6%) Carrier:  +905.6 Hz, Locked: No
(18:33:30) ( 31.4%) Carrier: +1784.9 Hz, Locked: No
(18:33:35) ( 32.3%) Carrier: +1167.8 Hz, Locked: No
(18:33:40) ( 33.5%) Carrier: +1777.5 Hz, Locked: No
(18:33:45) ( 34.3%) Carrier:  +778.6 Hz, Locked: No
(18:33:50) ( 35.6%) Carrier: -2531.2 Hz, Locked: No
(18:33:55) ( 36.3%) Carrier: -5260.3 Hz, Locked: No
(18:34:00) ( 37.3%) Carrier: -5524.0 Hz, Locked: No
(18:34:05) ( 38.1%) Carrier: -4679.2 Hz, Locked: No
(18:34:10) ( 38.7%) Carrier: -4176.0 Hz, Locked: No
(18:34:15) ( 39.9%) Carrier:  -473.7 Hz, Locked: No
(18:34:20) ( 41.2%) Carrier: +1073.6 Hz, Locked: No
(18:34:25) ( 42.4%) Carrier:  +474.0 Hz, Locked: No
(18:34:30) ( 43.2%) Carrier:  +521.9 Hz, Locked: No
(18:34:35) ( 44.5%) Carrier:  -892.2 Hz, Locked: No
(18:34:40) ( 45.7%) Carrier:  -590.4 Hz, Locked: No
(18:34:45) ( 46.5%) Carrier:  -515.9 Hz, Locked: No
(18:34:50) ( 47.2%) Carrier:  +830.4 Hz, Locked: No
(18:34:55) ( 48.0%) Carrier: -2665.5 Hz, Locked: No
(18:35:00) ( 48.8%) Carrier: -3286.4 Hz, Locked: No
(18:35:05) ( 49.6%) Carrier: -2113.7 Hz, Locked: No
(18:35:10) ( 50.4%) Carrier: -1364.8 Hz, Locked: No
(18:35:15) ( 51.2%) Carrier:  -955.5 Hz, Locked: No
(18:35:20) ( 51.9%) Carrier: +2837.7 Hz, Locked: No
(18:35:25) ( 53.2%) Carrier: +7281.3 Hz, Locked: No
(18:35:30) ( 53.7%) Carrier: +6213.7 Hz, Locked: No
(18:35:35) ( 54.8%) Carrier: +7417.0 Hz, Locked: No
(18:35:40) ( 56.0%) Carrier: +3163.3 Hz, Locked: No
(18:35:45) ( 56.8%) Carrier: +5382.9 Hz, Locked: No
(18:35:50) ( 57.9%) Carrier: +5428.2 Hz, Locked: No
(18:35:55) ( 58.5%) Carrier: +5163.4 Hz, Locked: No
(18:36:00) ( 59.5%) Carrier: +2767.6 Hz, Locked: No
(18:36:05) ( 60.5%) Carrier: +4747.4 Hz, Locked: No
(18:36:10) ( 61.6%) Carrier: +2888.4 Hz, Locked: No
(18:36:15) ( 62.5%) Carrier: +2906.5 Hz, Locked: No
(18:36:20) ( 63.1%) Carrier: +2214.9 Hz, Locked: No
(18:36:25) ( 63.7%) Carrier: +3084.7 Hz, Locked: No
(18:36:30) ( 64.5%) Carrier: +3319.5 Hz, Locked: No
(18:36:35) ( 65.6%) Carrier:  +126.2 Hz, Locked: No
(18:36:40) ( 66.3%) Carrier:  +235.5 Hz, Locked: No
(18:36:45) ( 67.4%) Carrier: +1667.7 Hz, Locked: No
(18:36:50) ( 68.2%) Carrier: -1141.9 Hz, Locked: No
(18:36:55) ( 69.4%) Carrier:  +971.3 Hz, Locked: No
(18:37:00) ( 70.7%) Carrier: +1027.3 Hz, Locked: No
(18:37:05) ( 71.8%) Carrier:  -244.6 Hz, Locked: No
(18:37:10) ( 72.7%) Carrier:  +854.5 Hz, Locked: No
(18:37:15) ( 73.9%) Carrier: +1679.6 Hz, Locked: No
(18:37:20) ( 74.8%) Carrier:   +68.8 Hz, Locked: No
(18:37:25) ( 75.5%) Carrier:  -903.8 Hz, Locked: No
(18:37:30) ( 76.3%) Carrier:  -304.9 Hz, Locked: No
(18:37:35) ( 77.1%) Carrier:  -224.1 Hz, Locked: No
(18:37:40) ( 77.9%) Carrier: -2232.4 Hz, Locked: No
(18:37:45) ( 78.5%) Carrier: -6658.2 Hz, Locked: No
(18:37:50) ( 79.4%) Carrier: -5315.5 Hz, Locked: No
(18:37:55) ( 80.4%) Carrier:  -640.6 Hz, Locked: No
(18:38:00) ( 81.0%) Carrier:  -424.5 Hz, Locked: No
(18:38:05) ( 82.2%) Carrier: -2134.5 Hz, Locked: No
(18:38:10) ( 83.2%) Carrier:  +656.8 Hz, Locked: No
(18:38:15) ( 84.2%) Carrier:   -42.3 Hz, Locked: No
(18:38:20) ( 85.4%) Carrier:  +645.6 Hz, Locked: No
(18:38:25) ( 86.7%) Carrier: +2285.6 Hz, Locked: No
(18:38:30) ( 87.9%) Carrier: +3400.2 Hz, Locked: No
(18:38:35) ( 89.0%) Carrier: +2267.2 Hz, Locked: No
(18:38:40) ( 89.6%) Carrier:  -849.5 Hz, Locked: No
(18:38:45) ( 90.3%) Carrier: -1384.2 Hz, Locked: No
(18:38:50) ( 91.3%) Carrier:   -56.7 Hz, Locked: No
(18:38:55) ( 92.5%) Carrier: +2473.3 Hz, Locked: No
(18:39:00) ( 93.7%) Carrier:  -424.4 Hz, Locked: No
(18:39:05) ( 94.4%) Carrier:  -169.4 Hz, Locked: No
(18:39:10) ( 95.0%) Carrier:  -875.3 Hz, Locked: No
(18:39:15) ( 95.8%) Carrier: -1143.4 Hz, Locked: No
(18:39:20) ( 96.5%) Carrier: -1427.0 Hz, Locked: No
(18:39:25) ( 97.0%) Carrier: -2083.0 Hz, Locked: No
(18:39:30) ( 97.6%) Carrier: +1243.1 Hz, Locked: No
(18:39:35) ( 98.7%) Carrier:  -366.8 Hz, Locked: No
(18:39:40) ( 99.6%) Carrier: -3687.6 Hz, Locked: No
(18:39:45) Decoding completed
INFO : Deleting audio files
rm: cannot remove '/var/www/wx/meteor/audio/METEOR-M220201223-181535.wav': No such file or directory
INFO : Decoding in progress (QPSK to BMP)
Reading /var/www/wx/meteor/METEOR-M220201223-181535.qpsk...
 pos=136249383 ( 99.99%) ( 1, 6455,49) sig= -246 rs=(-1,-1,-1,-1) C52E454B
Total:        715.278626
Processing:   0.000004
Correlation:  504.036835
Viterbi:      188.360016
ECC:          22.451536
Remainder:    0.430282
Packets:      10 / 5603
INFO : I got a successful METEOR-M220201223-181535.dec file. Decoding APID 68
Reading /var/www/wx/meteor/METEOR-M220201223-181535.dec...
 pos=       0 (  0.00%)
 pos=    1024 ( 10.00%)
 pos=    2048 ( 20.00%)
 pos=    3072 ( 30.00%)
 pos=    4096 ( 40.00%)
 pos=    5120 ( 50.00%)
 pos=    6144 ( 60.00%)
 pos=    7168 ( 70.00%)
 pos=    8192 ( 80.00%)
 pos=    9216 ( 90.00%)

Total:        0.000107
Processing:   0.000005
Correlation:  0.000000
Viterbi:      0.000000
ECC:          0.000000
Remainder:    0.000102
Packets:      10 / 10
convert-im6.q16: unable to open image `/var/www/wx/images/METEOR-M220201223-181535-122-IR.bmp': No such file or directory @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no images defined `/var/www/wx/images/METEOR-M220201223-181535-122-IR.png' @ error/convert.c/ConvertImageCommand/3258.
rm: cannot remove '/var/www/wx/images/METEOR-M220201223-181535-122-IR.bmp': No such file or directory
Traceback (most recent call last):
  File "/home/pi/raspberry-noaa/rectify.py", line 131, in <module>
    img = Image.open(sys.argv[1])
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2634, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/wx/images/METEOR-M220201223-181535-122-IR.png'
rm: cannot remove '/var/www/wx/images/METEOR-M220201223-181535-122-IR.png': No such file or directory
INFO : Rectifying image to adjust aspect ratio
convert-im6.q16: unable to open image `/var/www/wx/images/METEOR-M220201223-181535-122-IR-rectified.png': No such file or directory @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no images defined `/var/www/wx/images/METEOR-M220201223-181535-122-IR-rectified.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert-im6.q16: unable to open image `/var/www/wx/images/METEOR-M220201223-181535-122-IR-rectified.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no images defined `/var/www/wx/images/thumb/METEOR-M220201223-181535-122-IR-rectified.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert-im6.q16: unable to open image `/var/www/wx/images/METEOR-M220201223-181535-122-IR-rectified.jpg': No such file or directory @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no images defined `/var/www/wx/images/thumb/METEOR-M220201223-181535-122-rectified.jpg' @ error/convert.c/ConvertImageCommand/3258.
INFO : Posting to Twitter
Traceback (most recent call last):
  File "/home/pi/raspberry-noaa/post.py", line 23, in <module>
    res = api.media_upload(filename)
  File "/usr/local/lib/python3.7/dist-packages/tweepy/api.py", line 223, in media_upload
    file_type = imghdr.what(filename)
  File "/usr/lib/python3.7/imghdr.py", line 16, in what
    f = open(file, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/wx/images/METEOR-M220201223-181535-122-IR-rectified.jpg'
rm: cannot remove '/var/www/wx/meteor/METEOR-M220201223-181535.bmp': No such file or directory
reynico commented 3 years ago

Hi, Seems like the pass recording and decoding process did it fine, but the Meteor didn't output anything. Nothing to do from our side I guess

Anjum9694 commented 3 years ago

So how can I do a full clean uninstall so I can install it again

reynico commented 3 years ago

You’ll need to remove the entire raspberry-noaa folder, .predict folder, the .noaa.conf, .wxtoimglic and .wxtoimgrc files.

MihajloPi commented 3 years ago

Meteor still not getting decoded. The last version that worked for me was v1.4. Could I try installing that version and then running git fetch -pt && git pull to update it to the current version?

image

MihajloPi commented 3 years ago

Hi! It seems that now I am succesfully able to receive Meteor M2! Thanks for your help!