Translate

Saturday 6 June 2020

More NOAA APT shenanigans , the £25 NOAA receiver


"Shenanigans" ... that probably doesn't translate well... Wiki says "silly or high-spirited behaviour; mischief."
... anyway ...

There's a bit of talk on the noaa and Raspberry Pi forums, that the new Pi Zero (W) hasn't got enough poke to run a NOAA receiver... so we shall see....

£9.80 is duly shelled out on a Pi Zero W from the lovely people at PiHut.

I thought I'd just clone the existing memory card ... no such luck, the drivers for the Zero's wifi aren't included in Stretch. 

So a new install of Raspberry OS lite is created, and set up. You can follow the instructions here.

You'll need to install wput and lsftp if you want to upload to your webspace.

sudo apt-get wput
sudo apt-get lsftp
You also need to create the pic directory

mkdir ~/weather/pics

Things didn't exactly work out....

That's no good at all...


















Now, there are issues with predict on the newer OS. 

When you run predict, and enter your station "callsign", lat, long and height, quitting out leaves the screen in an odd condition, logout, and log back in again.

I had to run predict a number of times before I could get it to swallow all the data... keep running it until it finally shows all fields correctly filled in.

In the previous picture, the receiver had thought it was at 0 degrees long, and 0 degrees lat ... just off the coast of africa! 

After finally getting predict sorted ....  superb pictures are received.

So ... a £14 SDR receiver, and a £9.80 Pi Zero! well, nearly... You'll need a micro SD card and an antenna, but we've saved some money on the computer!

Excellent!

Now my good friend Ben is keen to implement a receiver in Gloucester, and is going this route... once he's up and running, I'll add another page on the NOAA extension to this website, so you can enjoy his pictures as well!





2 comments:

  1. Hi Andy, great blogs! I too followed haslettj’s Instructable on using a headless Pi 3B and Nooelec RTL-SDR dongle to receive NOAA satellite images. I’m getting some great automated B&W images but wonder how you get the beautiful colour enhanced images? I realise these are processed by wxtoimg and easily accessible from the GUI, but how can I get these from the command line? One of your friends has also managed to get wxtoimg to publish the passes and images to his web server. Again I know how this can be achieved from the GUI but from the command line? Please go easy on me as I’m new to this, Linux and command line! Any help appreciated. Simon

    ReplyDelete
    Replies
    1. Hi Simon,
      If you look at receive_and_process.sh above, you can see the line
      /usr/local/bin/wxtoimg -m ${3}-map.png -e ZA $3.wav ${3}.png
      /usr/local/bin/wxtoimg -m ${3}-map.png -e CLASS $3.wav ${3}.CLASS.png
      /usr/local/bin/wxtoimg -m ${3}-map.png -e MCIR $3.wav ${3}.MCIR.png
      /usr/local/bin/wxtoimg -m ${3}-map.png -e MSA $3.wav ${3}.MSA.png
      /usr/local/bin/wxtoimg -m ${3}-map.png -e MSA-precip $3.wav ${3}.MSAPRECIP.png
      /usr/local/bin/wxtoimg -m ${3}-map.png -e MCIR-PRECIP $3.wav ${3}.MCIRPRECIP.png

      These define the output pictures. There's not as many available in the command line as there are in the gui version (no thermal, which is a shame)...

      The upload to my webspace is carried out with

      wput -B -u --dont-continue --reupload --tries=5 --binary --verbose --reupload ftp://mywebspaceusername:mypassword@myurl ~/weather/pics/Folder*/*.*

      which copies all the folders across as they're created. These are deleted at midnight in schedule_all.sh

      rm /home/pi/weather/passes*.txt
      lftp -u mywebspaceusername,password -e "rm -r /htdocs/cheltenham/home/pi/weather;$
      atq > /home/pi/weather/passes_`date +"%m-%d-%Y"`.txt
      rm -rf /home/pi/weather/pics/Folder*
      lftp -u mywebspaceusername,mypassword -e "rm -r /htdocs/cheltenham/home/pi/weather/$
      lftp -u mywebspaceaccountname,mypassword -e "mirror --reverse /home/pi/weather/pics/ /$
      wput -B -u --dont-continue --reupload --tries=5 --binary --verbose --reupload f$

      You'll need to find a bit of free webspace somewhere and change the details above to suit.

      Leave me a reply here with an email address if you want to chat about it. I'll not publish your address...

      Have fun,
      Doz.

      Delete