diff --git a/README.md b/README.md index 1079ef3..c1201b6 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,9 @@ Software to program radios. https://chirp.danplanet.com #### XASTIR: GUI interface useful when configuring APRS nodes. https://sourceforge.net/projects/xastir/ +#### D-RATS: +D-RATS is a communications tool for D-STAR amateur radio low-speed data (DV mode) https://github.com/ham-radio-software/D-Rats + #### YAAC: Yet Another APRS Client GUI interface useful when configuring APRS nodes. https://www.ka2ddo.org/ka2ddo/YAAC.html diff --git a/app-check b/app-check index b1291aa..42e609f 100644 --- a/app-check +++ b/app-check @@ -564,6 +564,26 @@ else fi fi + +#----------------------------------------------------# +# DRATS +#----------------------------------------------------# +if [ -f $HOME/D-Rats/d-rats.py ]; then + + DRATVER=$(cat $HOME/D-Rats/PKG-INFO | grep Version | tail -1 | sed 's/Version: //') + NEWDRATVER=$(curl -s https://raw.githubusercontent.com/ham-radio-software/D-Rats/master/PKG-INFO | grep Version | tail -1 | sed 's/Version: //') + + if (($(echo "${NEWDRATVER} ${DRATVER}" | awk '{print ($1 > $2)}'))); then + echo "DRATS=NEEDS-UPDATE" >> $UPDATEFILE + else + echo "DRATS=is_latest_version" >> $UPDATEFILE + fi +else + echo "DRATS=Not_Installed" >> $UPDATEFILE +fi + +} + #----------------------------------------------------# # JTDX #----------------------------------------------------# @@ -573,6 +593,7 @@ else echo "JTDX=Installed" >> $UPDATEFILE fi + #----------------------------------------------------# # TELNET #----------------------------------------------------# diff --git a/build-a-pi b/build-a-pi index 108185b..a503bf5 100755 --- a/build-a-pi +++ b/build-a-pi @@ -421,6 +421,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \ false "XASTIR" "APRS Client" \ false "GPREDICT" "Satellite Tracking" \ false "TQSL" "LOTW Software" \ + false "DRATS" "D-RATS tool for D-STAR" \ false "GRIDCALC" "Grid Calculation Software" \ false "REPEAT" "Repeater Directory" \ --button="Exit":1 \ @@ -434,7 +435,7 @@ fi if [ ${BUT} = 3 ]; then ADDAPPS=(CONKY PI-APRS CHIRP GARIM VARIM PAT PAT-MENU JS8CALL M0IAX WSJTX PYQSO HAMRS EES QSSTV GRIDTRACKER HAMCLOCK PROPAGATION YAAC XASTIR GPREDICT TQSL - GRIDCALC CQRLOG REPEAT) + DRATS GRIDCALC CQRLOG REPEAT) for i in "${ADDAPPS[@]}"; do echo "$i" >>${ADDITIONAL} diff --git a/functions/additional.function b/functions/additional.function index 9c1eaf8..868848a 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -621,6 +621,36 @@ PROPAGATION() { ${BUILDDIR}/voacapl-0.7.2/makeitshfbc } +################################## +# D-RATS +################################## +DRATS() { + if [ -f ${HOME}/D-Rats/d-rats.py ] ; then + echo "updating D-rats" + cd ${HOME}/D-Rats/ + git pull + else + echo "installing D-rats" + cd ${HOME}/ + git clone https://github.com/ham-radio-software/D-Rats + fi + + cat >d-rats.desktop <${ADDITIONAL}