-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:filipsPL/autowx2
- Loading branch information
Showing
4 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
# runs WSPR receiver | ||
|
||
# read the global configuration file autowx2_conf.py via the bash/python configuration parser | ||
# do not change the following three lines | ||
scriptDir="$(dirname "$(realpath "$0")")" | ||
source $scriptDir/basedir_conf.py | ||
source $baseDir/_listvars.sh | ||
|
||
#--------------------------------------# | ||
|
||
# # # # Edit following variable with your correct data # # # # | ||
call="SA7BNT" | ||
gain="40" | ||
locator="JO77PP" | ||
hz="28.1246M" | ||
info_rx="Start reception 10 meters" | ||
sampling="0" #direct sampling [0,1,2] (default: 0 for Quadrature, 1 for I branch, 2 for Q branch) | ||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ## | ||
|
||
logfile="$recordingDir/rtlsdr_wspr/"$(date +"%Y/%m")/$(date +"%Y%m%d")".txt" | ||
|
||
mkdir -p $(dirname $logfile) | ||
|
||
duration=$1 | ||
dongleShift=$2 | ||
|
||
mkdir -p $(dirname $logfile) | ||
|
||
sleep 1 | ||
pgrep rtlsdr_wsprd > /dev/null 2>&1 | ||
if [ $? -eq 0 ]; then | ||
echo $'\n'"---Kill rtlsdr_wsprd pid---" >> $logfile | ||
killall rtlsdr_wsprd &>> $logfile | ||
fi | ||
echo $'\n'"$(date)" >> $logfile | ||
echo "$info_rx"$'\n' >> $logfile | ||
sleep 1 | ||
|
||
|
||
cd ~/rtlsdr-wsprd | ||
timeout --kill-after=1 $duration ./rtlsdr_wsprd -p "$dongleShift" -f "$hz" -c "$call" -l "$locator" -g "$gain" -d "$sampling" | tee -a $logfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters