From d01abf4a036103db3c0975403be6c95a37ca598e Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sun, 3 Jan 2021 10:42:09 -0300 Subject: [PATCH] ISS: install pd120 decoder --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install.sh b/install.sh index a78a0f8..1ad34ea 100755 --- a/install.sh +++ b/install.sh @@ -211,6 +211,21 @@ sudo mount -a sudo chmod 777 /var/ramfs set -e +if [ -f "$HOME/raspberry-noaa/demod.py" ]; then + log_done "pd120_decoder already installed" +else + wget -qr https://github.com/reynico/pd120_decoder/archive/master.zip -O /tmp/master.zip + ( + cd /tmp + unzip master.zip + cd pd120_decoder-master/pd120_decoder/ + pip3 install --user -r requirements.txt + cp "{demod.py,utils.py}" "$HOME/raspberry-noaa/" + ) + log_done "pd120_decoder installed" +fi + + success "Install (almost) done!" read -rp "Do you want to enable bias-tee? (y/N)"