Cov txheej txheem:

Raspberry Pi NOAA thiab Meteor-M 2 Tus Txais: 6 Kauj Ruam
Raspberry Pi NOAA thiab Meteor-M 2 Tus Txais: 6 Kauj Ruam

Video: Raspberry Pi NOAA thiab Meteor-M 2 Tus Txais: 6 Kauj Ruam

Video: Raspberry Pi NOAA thiab Meteor-M 2 Tus Txais: 6 Kauj Ruam
Video: Raspberry Pi NOAA Weather Satellite Software Setup 2024, Kaum ib hlis
Anonim
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver
Raspberry Pi NOAA and Meteor-M 2 Receiver

Cov lus qhia no yuav pab koj teeb tsa lub chaw txais chaw tsis yog APT los ntawm NOAA-15, 18 thiab 19, tab sis kuj yog Meteor-M 2.

Nws tsuas yog ib qho me me ua raws txoj haujlwm rau haslettj qhov zoo "Raspberry Pi NOAA Weather Satellite Receiver" project.

Kauj Ruam 1: Pib Nrog Haslettj Cov Lus Qhia

Ua ntej koj ua raws li haslettj's Instructable, nco ntsoov cov kev hloov no ua ntej:

Qhov chaw nyob qub rau wxtoimg tsis nyob lawm. Tam sim no koj tuaj yeem siv qhov chaw nyob no hauv wget hais kom ua:

www.wxtoimgrestored.xyz/beta/wxtoimg-linux-armhf-2.11.2-beta.tar.gz

Kuv kuj yuav tsum tau hloov pauv mus rau "txais_and_process_satellite.sh" tsab ntawv, vim tias rtl_fm pom tau tias tsis ua tau tiag tiag "wav" hom suab. Tab sis nws tsis muaj teeb meem, sox tuaj yeem lis nws. Yog li kuv hloov kab no:

sudo timeout $ 6 rtl_fm -f $ {2} M -s 60k -g 45 -p 55 -E wav -E deemp -F 9 -| sox -t wav - $ 3.wav tus nqi 11025

Txog qhov no (tab sis nco ntsoov hloov qhov "-g 0" teeb tsa teeb tsa thiab "-p 68" PPM zaus yuam kev teeb tsa nrog qee yam uas ua haujlwm rau koj kho vajtse):

sudo sijhawm tas $ 6 rtl_fm -f $ {2} M -s 48k -g 0 -p 68 -E dc -A nrawm -F 9 -| sox -t raw -r 48000 -es -b16 -c1 -V1 -$ 3.wav tus nqi 11025

Hauv tib tsab ntawv, koj kuj tseem xav hloov qhov kev sib cav wxtoimg "-e ZA" rau "-e MSA" kom tau cov duab zoo nkauj, zoo li no:

/usr/local/bin/wxtoimg -m $ {3} -map-p.webp

Tam sim no mus ua Cov Lus Qhia!

www.instructables.com/id/Raspberry-Pi-NOAA…

Kauj Ruam 2: Nruab GnuRadio thiab Thaiv rau RTL-SDR

Meteor-M 2 tus txais siv GnuRadio. Txhawm rau nruab qhov koj xav tau, ua qhov no:

sudo apt nruab gnuradio

sudo apt nruab gr-osmosdr

Kauj ruam 3: Rub tawm GnuRadio Scripts

Yog tias koj tsis paub, GnuRadio suav nrog cov cuab yeej siv duab hu ua GnuRadio-Companion uas tuaj yeem siv los tsim cov kab ntawv ntws thiab suav lawv rau hauv Python code uas yog tom qab ntawd ua tiav.

Kuv tau forked "otti-soft" s "meteor-m2-lrpt" tus txais los ntawm kev hloov kho qee qhov ntsuas kom txhim kho kev ua tau zoo thiab siv RTL-SDR hloov ntawm Airspy. Download tau nws los ntawm no:

github.com/NateDN10/meteor-m2-lrpt

Cov ntaub ntawv.grc tuaj yeem qhib nrog GnuRadio -Companion, tab sis lawv tsis ua cov ntawv sau - lawv nyob ntawd rau koj qhov kev siv thiab ua si ib puag ncig nrog. Txhawm rau kom nws ua haujlwm, theej cov ntawv "rtlsdr_m2_lrpt_rx.py" rau hauv koj/tsev/pi/huab cua/kwv yees cov npe, thiab xyuas kom nws ua tiav:

chmod +x rtlsdr_m2_lrpt_rx.py

Koj kuj tseem yuav xav hloov pauv qhov ntau zaus:

self.rtlsdr_source_0.set_freq_corr (69, 0)

Thiab nce mus rau txhua yam ua haujlwm rau koj teeb:

self.rtlsdr_source_0.set_gain (4, 0)

Kauj ruam 4: Download tau lub Decoder

Rub tawm "artlav" Meteor LRPT decoder los ntawm no - koj xav tau Linux ARM version:

orbides.org/page.php?id=1023

Koj tuaj yeem ua tiav qhov no ntawm Raspberry Pi siv cov lus txib no:

cd/tsev/pi/huab cua

wget https://orbides.org/etc/medet/medet_190825_arm.tar.gz mkdir medet; cd medet tar xvzf../medet_190825_arm.tar.gz

Tam sim no koj yuav tsum muaj cov npe hu ua "medet" hauv koj "huab cua" cov npe, thiab sab hauv nws yuav tsum yog "medet_arm" ua tiav.

Kauj Ruam 5: Rub Lwm Cov Cuab Yeej

Txhawm rau txhim kho qhov sib piv ntawm cov duab peb yuav siv dbdexter's "meteor_rectify" Python cuab yeej los ntawm Github.

Yog tias koj tsis tau muaj git thiab ImageMagick teeb tsa:

sudo apt nruab git

sudo apt nruab imagemagick

Tom qab ntawd clone lub chaw cia khoom:

cd/tsev/pi/huab cua

git clone https://github.com/dbdexter-dev/meteor_rectify.gi …

Koj kuj tseem xav tau "lub hauv ncoo" thiab "numpy" Python cov tsev qiv ntawv:

pip3 nruab numpy

pip3 nruab hauv ncoo

Kauj Ruam 6: Hloov kho Cov Ntawv Sau

Ua ntej, ntxiv kab hauv qab no mus rau qhov kawg ntawm "schedule_all.sh":

/home/pi/weather/predict/schedule_satellite.sh "METEOR-M 2" 137.1000

Tom qab ntawd, hauv "schedule_satellite.sh", hloov qhov thaiv no:

yog [$ MAXELEV -gt 19]; ces

ncha $ {1 // ""} $ {OUTDATE} $ MAXELEV ncha "/home/pi/weather/predict/receive_and_process_satellite.sh \" $ {1} "$ 2/home/pi/weather/$ {1 // ""} $ {OUTDATE} /home/pi/weather/predict/weather.tle $ var1 $ TIMER "| ntawm `date --date =" TZ = / "UTC \" $ START_TIME " +"%H:%M%D "` fi

Txog qhov no:

yog [$ MAXELEV -gt 19]; ces

ncha $ {1 // ""} $ {OUTDATE} $ MAXELEV yog ["$ 1" == "METEOR-M 2"] ces ncha "/home/pi/weather/predict/receive_and_process_meteor.sh \" $ {1} "$ 2/home/pi/weather/$ {1 //" "} $ {OUTDATE} /home/pi/weather/predict/weather.tle $ var1 $ TIMER" | ntawm `date --date =" TZ = / "UTC \" $ START_TIME " +"%H:%M%D "` lwm qhov ncha "/home/pi/weather/predict/receive_and_process_satellite.sh \" $ {1} "$ 2/home/pi/weather/$ {1 //" "} $ {OUTDATE} /home/pi/weather/predict/weather.tle $ var1 $ TIMER" | ntawm `date --date =" TZ = / "UTC \" $ START_TIME " +"%H:%M%D "` fi

Thaum kawg, tsim tsab ntawv tshiab hu ua "receive_and_process_meteor.sh" nrog cov hauv qab no:

#! /bin/pob

# $ 1 = Satellite Name # $ 2 = Frequency # $ 3 = FileName base # $ 4 = TLE File # $ 5 = EPOC start time # $ 6 = Time to capture cd/home/pi/weather timeout $ 6 predict/rtlsdr_m2_lrpt_rx.py $ 1 $ 2 $ 3 # Lub caij ntuj no # medet/medet_arm $ {3}.s $ 3 -r 68 -g 65 -b 64 -na -S # Lub caij ntuj sov medet/medet_arm $ {3}.s $ 3 -r 66 -g 65 -b 64 -na -S rm $ {3}.s yog [-f "$ {3} _0.bmp"]; ces #rm $ {3}.s dte = `date +%H` #Winter #convert $ {3} _1.bmp $ {3} _1.bmp $ {3} _0.bmp -combine -set colorspace sRGB $ { 3}.bmp #convert $ {3} _2.bmp $ {3} _2.bmp $ {3} _2.bmp -combine -setcolorspace sRGB -negate $ {3} _ir.bmp # Lub caij ntuj sov hloov $ {3} _2.bmp $ {3} _1.bmp $ {3} _0.bmp -combine -set colorspace sRGB $ {3}.bmp meteor_rectify/rectify.py $ {3}.bmp # Lub caij ntuj no tsuas yog # meteor_rectify/rectify.py $ { 3} _ir.bmp # Tig cov duab yav tsaus ntuj 180 degrees yog [$ dte -lt 13]; tom qab ntawd hloov $ {3} -rectified.png -Normalize -quality 90 $ 3-j.webp

Ua nws executable:

chmod +x txais_and_process_meteor.sh

Thiab qhov ntawd yog nws! Lub sijhawm tom ntej koj cov haujlwm cron uas twb muaj lawm tau teeb tsa lub hnub qub, Meteor-M 2 yuav tau teem sijhawm ntxiv. Tus txiav txim siab yuav tso tawm.bmp siv APID 66 rau liab, 65 rau ntsuab, thiab 64 rau xiav.

Tus qauv tso tawm los ntawm cov ntawv sau, thaum lawv tau khiav los ntawm tus neeg teem sijhawm, txuas ntxiv rau/var/mail/pi. Txhawm rau nyeem nws, siv cov lus txib no:

tsawg/var/mail/pi

Thiab kom lwv cov lus qub, ua qhov no:

/var/mail/pi

Pom zoo: