Open a shell
1. Create a new directory and change to this directory.
mkdir /home/pi/modesfiltered
cd /home/pi/modesfiltered
2. Download the tool.
wget https://live-mobile-mode-s.eu/Rpi/modesfiltered.zip
3. Extract the files from zip-file
unzip modesfiltered.zip
4. Copy the start script "modes.service" to /etc/systemd/system.
sudo cp /home/pi/modesfiltered/modes.service /etc/systemd/system
5. reload daemon sudo systemctl daemon-reload
6. Make script modes.sh executable
sudo chmod +x modes.sh
nano variables.txtCTRL+O followed by CTRL+Xdatesudo systemctl start modessudo systemctl enable modescat /var/log/modes.log# Mode-S logger Version 11 started.
# Using 127.0.0.1:30003 as host.
# Elements found in blacklist file: 12
# [3C4, 4CA, 3C7, 3C6, 3C5, 489, 4B1, 400, 484, 471, 440, 45A]
# Elements found in whitelist file: 9
# [3E, 3F, AE, A3, AD, 3B, 4D, 15, 43]
# Elements found in blacklist callsign file: 79
# [AAL, ADR, AIB, AFL, AFR, AMT, ASL, AUA, AUI, AWU, AZA, BAW, BEE, BEL, BER, BMR, CAL, CAO, CES, CFG, CHH, CHX, CLW,
# CLX, CMP, COA, CSA, CSN, CTN, DAL, DEO, DLH, EIN, ELO, ELY, ENT, EXS, EWG, ETH, EZY, FIN, GMI, GWI, HAL, HLX, IBK,
# ISR, JEA, KAL, KLM, LDA, LLP, MSC, NAX, NLY, NWA, PGT, PIA, QTR, ROT, RUS, RYR, SAS, SKS, SRN, SWR, SXS, TCX, THA,
# THY, TOM, TRA, UPS, VIM, VIR, VLG, VKG, WZZ, 2BB]
# Thread-2 connected to SQL.
Real data would look like this:MSG, 5, 3EB2B2, 2017/03/13, 21:53:51.734, STRIKE, Munich, DE
# 7476 MSGs sorted by type (1, 2, .., 8), 3-Mlat: 59, 0, 702, 716, 2318, 326, 1149, 2201, 23
#
# usable (correct, without 4, 8) MSGs: 4554, blacklist filtered MSGs: 1844
java.net.ConnectException: connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
sudo systemctl restart modes
/etc/init.d/modes.sh: line 26: java: command not found
sudo apt-get update && sudo apt-get install oracle-java8-jdk
sudo systemctl disable modessudo systemctl stop modessudo rm /etc/systemd/system/modes.servicerm -rv /home/pi/modesfiltered
sudo update-rc.d modes.sh removesudo service modes stopsudo rm /etc/init.d/modes.shrm -rv /home/pi/modesfiltered
wget https://live-mobile-mode-s.eu/Rpi/modesfiltered.zipunzip modesfiltered.zip |