From 170f870d82a8b7142f58ae94421046de7dfc40f9 Mon Sep 17 00:00:00 2001 From: bzsasic <166759488+bzsasic@users.noreply.github.com> Date: Sat, 13 Apr 2024 10:48:39 -0500 Subject: [PATCH] Update and rename pifox.sh to bspifox.sh --- pifox/{pifox.sh => bspifox.sh} | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) rename pifox/{pifox.sh => bspifox.sh} (94%) diff --git a/pifox/pifox.sh b/pifox/bspifox.sh similarity index 94% rename from pifox/pifox.sh rename to pifox/bspifox.sh index 5532db3..6f6e568 100644 --- a/pifox/pifox.sh +++ b/pifox/bspifox.sh @@ -300,7 +300,7 @@ fi Time=$(date +"%R %p") Seconds=$(date +"%S") Day=$(date +"%F") - GPIO22=$(gpio -g read 22) + # GPIO22=$(gpio -g read 22) if [[ "$foxtimeset" == 1 ]]; then echo "${callsign} ${foxmessage} at ${Time}" >> fox.txt @@ -312,14 +312,14 @@ if [[ "$foxtimeset" == 0 ]]; then echo "${callsign}>BEACON:${foxmessage}" >> fox_pkt.txt fi - if [ $GPIO22 == 0 ]; then - #chech the GPIO22 as input for signals or alarms, and modify the following text as you wish - echo " . Input 22 active!!!" >> fox.txt - echo ". Input 22 active!!!" >> fox_pkt.txt - fi + # if [ $GPIO22 == 0 ]; then + # #chech the GPIO22 as input for signals or alarms, and modify the following text as you wish + # echo " . Input 22 active!!!" >> fox.txt +# echo ". Input 22 active!!!" >> fox_pkt.txt + # fi - echo "${Day};${Time}:${Seconds};${callsign};${foxmessage};${GPIO22};" >> Logger.txt - cat fox.txt +# echo "${Day};${Time}:${Seconds};${callsign};${foxmessage};${GPIO22};" >> Logger.txt + # cat fox.txt #the following line is to generate the voice audio file @@ -329,11 +329,11 @@ fi #the following line is to generate the packet radio audio file -if [[ "$foxpacket" == 1 ]]; then - ./pkt2wave fox_pkt.txt -n 1 -r 44100 -o fox_pkt.wav -fi +#if [[ "$foxpacket" == 1 ]]; then + # ./pkt2wave fox_pkt.txt -n 1 -r 44100 -o fox_pkt.wav +#fi -gpio -g write 17 1 +#gpio -g write 17 1 if [[ "$Vox" == 1 ]]; then @@ -360,7 +360,7 @@ fi fi -gpio -g write 17 0 +#gpio -g write 17 0 rm -f fox.txt rm -f fox_pkt.txt @@ -379,4 +379,4 @@ done echo "" echo "End of transmissions." -exit \ No newline at end of file +exit