From e2a5bce8ed44de2b20cd6f313015fc2ea869be8d Mon Sep 17 00:00:00 2001 From: Pascal Date: Sat, 6 Feb 2021 11:24:54 +0100 Subject: [PATCH] using better librtlsdr that utilizes the internal IF filter to supress band noise --- install.sh | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 2f8da83..ccdd5c6 100755 --- a/install.sh +++ b/install.sh @@ -104,11 +104,11 @@ fi if [ -e /usr/local/bin/rtl_fm ]; then log_done "rtl-sdr was already installed" else - log_running "Installing rtl-sdr from osmocom..." + log_running "Installing rtl-sdr from librtlsdr..." ( cd /tmp/ - git clone https://github.com/osmocom/rtl-sdr.git - cd rtl-sdr/ + git clone https://github.com/librtlsdr/librtlsdr.git + cd librtlsdr/ mkdir build cd build cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON @@ -206,6 +206,26 @@ else log_done "medet installed" fi +### Install noaa-apt +if command -v noaa-apt &> /dev/null; then + log_done "noaa-apt was already installed" +else + if [[ $(uname -m) == *"arm"* ]]; then + log_running "Installing noaa-apt arm..." + unzip software/noaa-apt-1.3.0-armv7-linux-gnueabihf-nogui.zip + sudo mv noaa-apt /usr/bin + sudo mv res /usr/bin #ok, this is not so nice, but it works + elif [[ $(uname -m) == *"x86_64"* ]]; then + log_running "Installing noaa-apt x86..." + sudo dpkg -i software/noaa-apt_1.3.0-1_amd64.deb + else + log_error "Unknown archictecture $(uname -m)!" + exit -1 + fi + log_done "noaa-apt installed" +fi + + ### Cron the scheduler set +e crontab -l | grep -q "raspberry-noaa"