WsprryPi
WsprryPi copied to clipboard
Bash script for random wspr transmissions
Not an issue but I would like to share this little bash script that I use to run wspr on a Pi Zero. The important thing is the MAXWAIT variable. Here you define the maximum time (in seconds) between activations of the wspr program. This allows for a "polite" beacon that does not overload the band with transmissions. Important: This script works only with Bash or shells that support the $RANDOM variable. enjoy, 73 de MM0DQM, Mark
#!/bin/bash CALL=YourCall GRID=YourGrid PWR=10 FRQ=20m MAXWAIT=240 sudo systemctl stop systemd-timesyncd while :; do echo "Synchronizing Time" sudo ntpdate -b -p8 pool.ntp.org sudo wspr --terminate 1 --offset --self-calibration $CALL $GRID $PWR $FRQ NUMBER=$RANDOM let "NUMBER %= $MAXWAIT" echo "Waiting $NUMBER seconds..." sleep $NUMBER done