Skip to content

add D-RATS #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
21 changes: 21 additions & 0 deletions app-check
Original file line number Diff line number Diff line change
Expand Up @@ -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
#----------------------------------------------------#
Expand All @@ -573,6 +593,7 @@ else
echo "JTDX=Installed" >> $UPDATEFILE
fi


#----------------------------------------------------#
# TELNET
#----------------------------------------------------#
Expand Down
3 changes: 2 additions & 1 deletion build-a-pi
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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}
Expand Down
30 changes: 30 additions & 0 deletions functions/additional.function
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
[Desktop Entry]
Name=D-RATS
Comment=D-RATS is a communications tool for D-STAR
Exec=${HOME}/D-Rats/d-rats.py
Path=${HOME}/D-Rats/
Terminal=false
Type=Application
Categories=Network;HamRadio
Keywords=APRS;HamRadio
EOF

sudo mv d-rats.desktop /usr/share/applications/

}

##################################
# YAAC
##################################
Expand Down
1 change: 1 addition & 0 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \
false "EES" "$EES" "KM4ACK Emergency Email Server" \
false "GPREDICT" "$GPREDICT" "Satellite Tracking" \
false "TQSL" "$TQSL" "LOTW Software" \
false "DRATS" "$DRATS" "D-RATS tool for D-STAR" \
false "GRIDCALC" "$GRIDCALC" "Grid Calculation Software" \
--button="Exit":1 \
--button="Next":2 >${ADDITIONAL}
Expand Down