mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
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:
@@ -41,7 +41,21 @@ case $1 in
|
||||
cat ${ET_USER_CONFIG} | jq -r .callsign
|
||||
;;
|
||||
grid)
|
||||
cat ${ET_USER_CONFIG} | jq -r .grid
|
||||
FALLBACK_GRID=$(jq -r -e '.grid' ${ET_USER_CONFIG})
|
||||
GEO_CONF=/tmp/geo.tmp
|
||||
|
||||
curl -f -s "http://localhost:1981/api/geo/position" > ${GEO_CONF}
|
||||
if [[ $? -eq 0 ]]; then
|
||||
API_GRID=$(jq -r -e '.position.gridSquare' ${GEO_CONF})
|
||||
[[ -e ${GEO_CONF} ]] && rm ${GEO_CONF}
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo ${API_GRID}
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ${FALLBACK_GRID}
|
||||
|
||||
;;
|
||||
et-audio)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user