Post R5.11 Updated - Updated et-system-info to pull the maidenhead grid from the ETC API if available. Update the JS8Call and fldigi wrapper scripts to use the grid from et-system-info.

This commit is contained in:
thetechprepper
2025-10-05 10:49:32 -07:00
parent bc5aa093d1
commit 9de72b72c2
3 changed files with 21 additions and 14 deletions
+4 -11
View File
@@ -2,6 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 2 October 2025
# Updated : 5 October 2025
# Purpose : Wrapper script for starting fldigi with PnP support
#
# Preconditions
@@ -127,18 +128,10 @@ update-config () {
# Update grid based on ETC geolocation services
###############################################
et-log "Updating your grid square..."
curl -f -s "http://localhost:1981/api/geo/position" > ${GEO_CONF}
if [[ $? -eq 0 ]]; then
GRID=$(jq -r -e '.position.gridSquare' ${GEO_CONF})
if [[ $? -eq 0 ]]; then
et-log "Using grid square '${GRID}' for your location"
sed -i "s|^<MYLOC>.*|<MYLOC>${GRID}</MYLOC>|" ${FLDIGI_CONF_FILE}
fi
fi
[[ -e ${GEO_CONF} ]] && rm ${GEO_CONF}
GRID=$(et-system-info grid)
et-log "Using grid square '${GRID}' for your location"
sed -i "s|^<MYLOC>.*|<MYLOC>${GRID}</MYLOC>|" ${FLDIGI_CONF_FILE}
#####################################################################
# Configure CAT interface using Hamlib's rig control daemon (rigctld)