Skip to content

Instantly share code, notes, and snippets.

@km4ack
Created March 13, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save km4ack/9693cef340781297981cfedeeb019fb1 to your computer and use it in GitHub Desktop.
Save km4ack/9693cef340781297981cfedeeb019fb1 to your computer and use it in GitHub Desktop.
Send text message with JS8Call
#!/usr/bin/env bash
#original script written by Jerry, K7AZJ
#modded by KM4ACK 20190212
###################################################
# Start Original Script #
###################################################
#if [ "$#" == "0" ]; then
# echo "usage: js8sendsms phone_number message"
# echo " example: js8sendsms 1112223456 hello"
# exit 0
#fi
#phone=$1
#shift
#msg="$*"
###################################################
# End Original Script #
###################################################
# Mods below by KM4ACK #
###################################################
echo What is the phone number to text?
read phone
echo What do you want the text to say?
read msg
value="\"@ALLCALL APRS::SMSGTE :@${phone} ${msg}\""
echo sending $value
printf '{"params": {}, "type": "TX.SET_TEXT", "value": %s}\n' "${value}" | nc -l -u -w 10 2237
echo
echo
echo
echo Your message is ready to send
echo Go to JS8Call and press the send button
@abraxasneo
Copy link

Is it possible to send a message this way without having to press SEND in js8call ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment