#!/bin/bash

export BASE_PATH=/mbari/ProjectLibrary/707976_EPBuoyPrototypeAndTesting/Deployments/2021-08-01-Deployment/

while :
do
wget --limit-rate=125k -P $BASE_PATH -m -c -T 10 -A csv,gz --tries=5 --progress=dot ftp://buoy:PowerBuoy@buoy-sbc.shore.mbari.org//home/buoy/Logs/

/mbari/matlab/bin/matlab -nodisplay -nosplash -r "Decode"
/mbari/matlab/bin/matlab -nodisplay -nosplash -r "ComputeHourlyResults"
/mbari/matlab/bin/matlab -nodisplay -nosplash -r "MakeLongTermPlots"
sleep 600

done

