Skip to content

Commit e027d89

Browse files
authored
Merge branch 'krakenrf:main' into main
2 parents 0380e35 + 900473c commit e027d89

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Please [consult the Wiki on the kraken_docs repo](https://github.com/krakenrf/kr
1010

1111
## Raspberry Pi 4/5 and Orange Pi 5B Image QUICKSTART
1212

13-
**Download Latest Images From :** https://mega.nz/folder/8T1jiIzR#_1Ujs4Eoy0wdRib9eHCVSg
13+
**Download Latest Images From :** https://www.dropbox.com/scl/fo/uf6uosh31syxwt8m32pl4/ANeDj_epfa_PRliPPqCDSoU?rlkey=ovo459p6aiwio785d0h56lj7h&e=1&dl=0
1414

1515
**Alternative Download:** https://drive.google.com/drive/folders/14NuCOGM1Fh1QypDNMngXEepKYRBsG--B?usp=sharing
1616

@@ -102,6 +102,7 @@ pip3 install pyargus
102102

103103
conda install dash==1.20.0
104104
conda install werkzeug==2.0.2
105+
conda install -y plotly==5.23.0
105106
```
106107

107108
4. (**OPTIONAL**) Install GPSD if you want to run a USB GPS on the Pi 4.

_sdr/_signal_processing/kraken_sdr_signal_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def average_thetas(thetas):
868868
pass
869869

870870
message = ""
871-
if doa_result_log:
871+
if doa_result_log.size > 0:
872872
doa_result_log = doa_result_log + np.abs(np.min(doa_result_log))
873873
for i in range(len(doa_result_log)):
874874
message += ", " + "{:.2f}".format(doa_result_log[i])

kill.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ else
88
KILL_SIGNAL=64
99
fi
1010

11+
# Kill the Python web interface process
1112
sudo kill -${KILL_SIGNAL} $(ps ax | grep ".*[p]ython3 .*_ui/_web_interface/app.py" | awk '{print $1}') 2> /dev/null
13+
# Kill PHP processes
1214
sudo kill -${KILL_SIGNAL} $(ps ax | grep "[p]hp" | awk '{print $1}') 2> /dev/null
15+
# Kill Node.js processes
1316
sudo pkill -f node
17+
# Kill KrakenToTAK.py if running
18+
sudo pkill -f "python.*KrakenToTAK.py" 2> /dev/null

util/kraken_doa_start.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ sleep 1
2222
cd ../../krakensdr_doa
2323
sudo env "PATH=$PATH" ./gui_run.sh
2424

25+
# Start the KrakenToTAK python service if it is installed, and not already running.
2526
if [ -d "../Kraken-to-TAK-Python" ]; then
2627
echo "TAK Server Installed"
2728
cd ../Kraken-to-TAK-Python
28-
python KrakenToTAK.py >/dev/null 2>/dev/null &
29+
30+
# Check if the process is already running
31+
if pgrep -f "python KrakenToTAK.py" > /dev/null; then
32+
echo "KrakenToTAK.py is already running."
33+
else
34+
echo "Starting KrakenToTAK.py"
35+
python KrakenToTAK.py >/dev/null 2>/dev/null &
36+
fi
2937
else
3038
echo "TAK Server NOT Installed"
3139
fi

0 commit comments

Comments
 (0)