Created
March 13, 2019 21:12
-
-
Save km4ack/9693cef340781297981cfedeeb019fb1 to your computer and use it in GitHub Desktop.
Send text message with JS8Call
This file contains hidden or 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to send a message this way without having to press SEND in js8call ?