mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Merge pull request #57 from thetechprepper/misc/post-r5-build11-updates
Merge misc/post-r5 build11-updates
This commit is contained in:
@@ -1096,7 +1096,7 @@ value 2 to 8 -->
|
|||||||
|
|
||||||
<!-- type: double; default: 4.5
|
<!-- type: double; default: 4.5
|
||||||
6, 4.5, 3 or 2 baud -->
|
6, 4.5, 3 or 2 baud -->
|
||||||
<FSQBAUD>4.5</FSQBAUD>
|
<FSQBAUD>3</FSQBAUD>
|
||||||
|
|
||||||
<!-- type: int; default: 3
|
<!-- type: int; default: 3
|
||||||
3 / 6 -->
|
3 / 6 -->
|
||||||
@@ -1132,7 +1132,7 @@ QTC text string -->
|
|||||||
<!-- type: bool; default: 0
|
<!-- type: bool; default: 0
|
||||||
0 - NO, 1 - YES
|
0 - NO, 1 - YES
|
||||||
convert operator MYCALL to lower case for directed call triggers -->
|
convert operator MYCALL to lower case for directed call triggers -->
|
||||||
<FSQLOWERCASE>0</FSQLOWERCASE>
|
<FSQLOWERCASE>1</FSQLOWERCASE>
|
||||||
|
|
||||||
<!-- type: int; default: 6
|
<!-- type: int; default: 6
|
||||||
Time out auto replies after XX seconds -->
|
Time out auto replies after XX seconds -->
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 2 October 2025
|
# Date : 2 October 2025
|
||||||
|
# Updated : 5 October 2025
|
||||||
# Purpose : Wrapper script for starting fldigi with PnP support
|
# Purpose : Wrapper script for starting fldigi with PnP support
|
||||||
#
|
#
|
||||||
# Preconditions
|
# Preconditions
|
||||||
@@ -127,18 +128,10 @@ update-config () {
|
|||||||
# Update grid based on ETC geolocation services
|
# Update grid based on ETC geolocation services
|
||||||
###############################################
|
###############################################
|
||||||
et-log "Updating your grid square..."
|
et-log "Updating your grid square..."
|
||||||
curl -f -s "http://localhost:1981/api/geo/position" > ${GEO_CONF}
|
|
||||||
|
|
||||||
if [[ $? -eq 0 ]]; then
|
GRID=$(et-system-info grid)
|
||||||
GRID=$(jq -r -e '.position.gridSquare' ${GEO_CONF})
|
|
||||||
if [[ $? -eq 0 ]]; then
|
|
||||||
et-log "Using grid square '${GRID}' for your location"
|
et-log "Using grid square '${GRID}' for your location"
|
||||||
sed -i "s|^<MYLOC>.*|<MYLOC>${GRID}</MYLOC>|" ${FLDIGI_CONF_FILE}
|
sed -i "s|^<MYLOC>.*|<MYLOC>${GRID}</MYLOC>|" ${FLDIGI_CONF_FILE}
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ -e ${GEO_CONF} ]] && rm ${GEO_CONF}
|
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Configure CAT interface using Hamlib's rig control daemon (rigctld)
|
# Configure CAT interface using Hamlib's rig control daemon (rigctld)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 24 October 2024
|
# Date : 24 October 2024
|
||||||
# Updated : 20 November 2024
|
# Updated : 5 October 2025
|
||||||
# Purpose : Wrapper script for starting JS8Call with PnP support
|
# Purpose : Wrapper script for starting JS8Call with PnP support
|
||||||
#
|
#
|
||||||
# Preconditions
|
# Preconditions
|
||||||
@@ -50,7 +50,7 @@ update-config () {
|
|||||||
|
|
||||||
# Update configuration with current callsign and grid
|
# Update configuration with current callsign and grid
|
||||||
CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign)
|
CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign)
|
||||||
GRID=$(cat ${ET_USER_CONFIG} | jq -r .grid)
|
GRID=$(et-system-info grid)
|
||||||
|
|
||||||
if [ "${CALLSIGN}" = "N0CALL" ]; then
|
if [ "${CALLSIGN}" = "N0CALL" ]; then
|
||||||
notify_user "Can't start JS8Call. No callsign set. Run: et-user."
|
notify_user "Can't start JS8Call. No callsign set. Run: et-user."
|
||||||
|
|||||||
@@ -41,7 +41,21 @@ case $1 in
|
|||||||
cat ${ET_USER_CONFIG} | jq -r .callsign
|
cat ${ET_USER_CONFIG} | jq -r .callsign
|
||||||
;;
|
;;
|
||||||
grid)
|
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)
|
et-audio)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user