I have installed RB24 data feeder on Windows Desktop. It gets data from VRS also running on my Windows Desktop. The VRS gets data from Raspberry Pi. My desktop does not run 24/7, while Ras Pi are running 24/7.
In January 2016, I requested support to make available a data feeder client for Linux/Raspbian so that I can feed directly from Pi without need to run the windows desktop. They promised, but it is not yet available.
I feed adsbexchange.com directly from Ras Pi using a script. I therefore tried to feed RB24 using similar script. The adsbexchange does not require login, but RB24 does require login. I therefore added a curl command to log-in, and changed url & port in netcat command to connect to radarbox24 server.
It did NOT work for Radarbox24. Does anyone know how to do it by a script?
Here is what I tried
#first installed netcat
sudo apt-get install netcat
#created a new file rb24fdr.sh
cd ~
sudo nano rb24fdr.sh
#in new blank file, copy-pasted following code
#! /bin/sh
while true
do
sleep 30
curl --user [MY EMAIL]:[MY PASSWORD] http://www.airnavsystems.com:7878 -v
/bin/nc 127.0.0.1 30003 | /bin/nc airnavsystems.com 7878
done
#saved file (ctrl+o) and closed nano editor (ctrl+x)
#made new file executable
sudo chmod +x rb24fdr.sh
# Now run the file
./rb24fdr.sh &
#it showed output as below
[1] 10831
* Rebuilt URL to: http://www.airnavsystems.com:7878/
* Hostname was NOT found in DNS cache
* Trying 96.31.64.6...
* Connected to www.airnavsystems.com (96.31.64.6) port 7878 (#0)
* Server auth using Basic with user 'MY EMAIL'
> GET / HTTP/1.1
> Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> User-Agent: curl/7.38.0
> Host: www.airnavsystems.com:7878
> Accept: */*
>
I then checked the Radarbox.com web page. None of planes are shown from my station, although when I feed from Windows desktop using RB24 data feeder, I see a large number of planes from my station.
Anyone can help?