Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash script for random wspr transmissions #24

Open
mark-orion opened this issue Oct 20, 2018 · 0 comments
Open

Bash script for random wspr transmissions #24

mark-orion opened this issue Oct 20, 2018 · 0 comments

Comments

@mark-orion
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant