-
-
Save shaposhnikoff/95efcbf44f7bef69176c3ff24ee462fa to your computer and use it in GitHub Desktop.
Simple script to use ICOM IC-705 internal CW keyer via hamlib
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
#!/bin/zsh | |
# | |
# Script to get simple cw macros or free typing on the ICOM IC-705 | |
# | |
# Make sure CI-V Transceive is ON and USB Echo Back is OFF | |
callsign=TM22YOTA | |
echo -e "Welcome. Press CTRL+C to exit...\n" | |
while true | |
do | |
echo "CW: " | |
read text | |
echo -e "\n" | |
if [[ "$text" == *: ]] | |
then | |
echo "$text 5NN" | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "${text%:*} 5NN" | |
continue | |
fi | |
case $text in | |
"cq" | "CQ" | "c") | |
echo "CQ CQ DE $callsign $callsign" | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "cq cq de $callsign $callsign" | |
;; | |
"r" | "R") | |
echo 5NN | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b 5NN | |
;; | |
"tu" | "TU" | "t") | |
echo "TU $callsign" | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "tu $callsign" | |
;; | |
"call" | "CALL" | "s") | |
echo $callsign | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b $callsign | |
;; | |
"rr73" | "RR73" | "rr") | |
echo "RR 5NN 73 TU EE" | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "rr 5NN 73 tu ee" | |
;; | |
*) | |
rigctl -m 3085 -r /home/f4iey/rig-pty1 b $text | |
;; | |
esac | |
echo -e "\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment