1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-29 04:50:10 -07:00

Merge pull request #42 from km4ack/dev

Dev
This commit is contained in:
KM4ACK 2022-02-25 07:31:52 -06:00 committed by GitHub
commit dac24de0d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 9 deletions

View File

@ -2,6 +2,8 @@
Pat Menu is an easy to use menu system for Pat Winlink. It is designed to make it easier to get all of the needed componets loaded and ready to make a connection using Pat. It will also aid in finding ARDOP stations to connect to and shut down the modems once you wrap up along with many other features. Pat Menu is an easy to use menu system for Pat Winlink. It is designed to make it easier to get all of the needed componets loaded and ready to make a connection using Pat. It will also aid in finding ARDOP stations to connect to and shut down the modems once you wrap up along with many other features.
# Install # Install
The preferred method of installation is with [Build a Pi](https://github.com/km4ack/pi-build). However, manual installation can be achieved by running the following command.
git clone https://github.com/km4ack/patmenu2.git $HOME/patmenu2 && bash $HOME/patmenu2/setup git clone https://github.com/km4ack/patmenu2.git $HOME/patmenu2 && bash $HOME/patmenu2/setup
# Video # Video

View File

@ -106,13 +106,19 @@ exit
fi fi
if [ "$WEATHER" = 'GPS Weather' ]; then if [ "$WEATHER" = 'GPS Weather' ]; then
echo "Need GPS weather" TMPFILE=/run/user/$UID/gps-data.txt
GPSDATA=$(gpspipe -r -n 10 | grep G\.GGA) #Thanks K4KDR! gpxlogger > $TMPFILE &
LAT=$(echo $GPSDATA | awk -F"," '{ print $3 }'| sed 's/\.//' | sed 's/./&./2') CGPSPID=$(echo $!)
LON=$(echo $GPSDATA | awk -F"," '{ print $5 }'| sed 's/\.//' | sed 's/./&./3') sleep 2
kill $CGPSPID
DATA=$(grep lat= $TMPFILE | head -1)
LAT=$(echo $DATA | awk '{print $2}' | sed 's/"//g;s/lat=//')
LONG=$(echo $DATA | awk '{print $3}' | sed 's/"//g;s/lon=//;s/>//')
TO="SMTP:query@saildocs.com" TO="SMTP:query@saildocs.com"
SUBJECT="<No Subject>" SUBJECT="<No Subject>"
BODY="https://forecast.weather.gov/MapClick.php?lat="$LAT"&lon=-"$LON"&unit=0&lg=english&FcstType=text&TextType=1" BODY="https://forecast.weather.gov/MapClick.php?lat="$LAT"&lon="$LONG"&unit=0&lg=english&FcstType=text&TextType=1"
COMPOSE COMPOSE
elif [ "$WEATHER" = 'City Weather' ]; then elif [ "$WEATHER" = 'City Weather' ]; then
FILE=$MYPATH/weather.txt FILE=$MYPATH/weather.txt

View File

@ -1,7 +1,13 @@
release=2.6.0 release=2.6.1
Changelog Changelog
2.6.1 improve GPS weather accuracy
update ARDOP modem start
update Packet modem start
update Set ARDOP PTT section
update readme file
use default browser to open inbox instead of hard coding Chromium
2.6.0 add version check 2.6.0 add version check
add peer to peer alias add peer to peer alias
2.6.0 does not support version of Pat prior to v0.12.0 2.6.0 does not support version of Pat prior to v0.12.0

View File

@ -279,11 +279,16 @@ CONFIG=$XDG_CONFIG_HOME/pat/config.json
WHO=$(whoami) WHO=$(whoami)
CURRENT=$(cat $CONFIG | grep ptt_ctrl | tail -1 | sed 's/"ptt_ctrl":\ //' | sed 's/,//' | tr -d "[:blank:]") CURRENT=$(cat $CONFIG | grep ptt_ctrl | tail -1 | sed 's/"ptt_ctrl":\ //' | sed 's/,//' | tr -d "[:blank:]")
if [ $CURRENT = 'false' ]; then
CURRENT1="false|true"
elif [ $CURRENT = 'true' ]; then
CURRENT1="true|false"
fi
PTT=$(yad --form --width=400 --text="<b>Current Pat ARDOP PTT = $CURRENT</b>" --text-align=center --center --title="Set PTT" --text-align=center \ PTT=$(yad --form --width=400 --text="<b>Current Pat ARDOP PTT = $CURRENT</b>" --text-align=center --center --title="Set PTT" --text-align=center \
--separator="|" --item-separator="|" \ --separator="|" --item-separator="|" \
--image=$LOGO --window-icon=$LOGO --image-on-top \ --image=$LOGO --window-icon=$LOGO --image-on-top \
--field="ARDOP PTT":CB "true|false" \ --field="ARDOP PTT":CB "$CURRENT1" \
--button="Set PTT":2 \ --button="Set PTT":2 \
--button="Cancel":1) --button="Cancel":1)
QUIT=$? QUIT=$?

View File

@ -122,8 +122,11 @@ yad --title="ARDOP MODEM" --width=400 --height=100 \
--button=gtk-ok & --button=gtk-ok &
fi fi
#restart pat so terminal window correctly reflects rig control
sudo systemctl restart pat@`whoami`
#open pat inbox in browser #open pat inbox in browser
export DISPLAY=:0 && chromium-browser http://127.0.0.1:$PORT > /dev/null 2>&1 & export DISPLAY=:0 && xdg-open http://127.0.0.1:$PORT > /dev/null 2>&1 &

View File

@ -148,8 +148,11 @@ yad --title="PACKET MODEM" --width=400 --height=100 \
--button=gtk-ok & --button=gtk-ok &
fi fi
#restart pat so terminal window correctly reflects rig control
sudo systemctl restart pat@`whoami`
#open pat inbox in browser #open pat inbox in browser
export DISPLAY=:0 && chromium-browser http://127.0.0.1:$PORT > /dev/null 2>&1 & export DISPLAY=:0 && xdg-open http://127.0.0.1:$PORT > /dev/null 2>&1 &
#exit 0 #exit 0