Hi! 😊

Live FlightRadar feeding to FlightAware and FlightRadar24

Live FlightRadar feeding to FlightAware and FlightRadar24

 

YEA!!! Its been almost 4 months now, I’m running the flightaware feeder which I have got for FREE from Flightaware.

The flightfeeder can be requested via http://flightaware.com/adsb/flightfeeder/ and if you are eligible for one based on your location they will send a package fully free of charge which include a flightfeeder, antenna and raspberryPi power

The flightfeeder in itself is plug and play which is based on a Raspberry Pi and custom PiAware OS, once it is connected to the network, you can browse it.

 

Well you cannot SSH to the flightfeeder but can be rebooted/shutdown straight away from the flightaware website (control centre)

Once hooked on the network you will be able to view the status of the device via http://IPofFlightfeed (if the status is green, means all iz good)

Being a resident near the one and only airport of Mauritius, it’s preety amazing to check the planes which are taking off or landing from your window.

 

FlightFeeder from FlightAware to feed FlightRadar24

While feeding to FlightAware, I have always wanted to feed to FlightRadar24,

in order to fulfill my wish, I have installed the fr24 package from flightRadar24 on my ALWAYS ON Pi @home.

You need to register to FlightRadar24 in order to receive a secret key to be used while installing the fr24 on your Raspbian/Debian OS.

you can following this guide to setup one

https://forum.flightradar24.com/threads/8908-New-Flightradar24-feeding-software-for-Raspberry-Pie?p=66479#post66479

 

Here is my conf file of fr24.
cat /etc/fr24feed.ini

receiver="avr-tcp"
fr24key="YOURSHAREDKEY"
host="IPofFlightFeeder:30002"
bs="yes"
raw="yes"
logmode="1"
mlat="yes"
mlat-without-gps="yes"

The benefit of feeding to flightradar24 is you’ll get a PREMIUM account for free which you can use to view much much more information on the MAP of the flightradar24.

 

A small website for my own flightfeeder

Next was to publish my own flightfeeder data to the WORLD.

The following URL include data of my flightAware and the Realtime ATC conversation with pilot <3 LIVE. (which is also on my homepage menu)

[the conversation is for the Airport of Mauritius (Airport code FIMP)]

https://kushal.net/bb53b80a7ea243407bddcc568fcec9c2/flight/

 

 

This small website is hosted on my small Always On Home RaspberryPi (codename BB-8) which has an apache running which is proxypassed to the flightfeeder:

On My RaspberryPi: (dynamic IP from ISP)

#FLIGHTFEEDER--FLIGHTAWARE
<Directory "/var/www/html/flight/">
Order Allow,Deny
Allow from all
DirectoryIndex theindex.html
</Directory>
Alias "/flight" /var/www/html/flight/
Alias "/flight/" /var/www/html/flight/
ProxyPass /flight2/ http://flightFeederIP/dump1090-fa/ connectiontimeout=5 timeout=30
ProxyPass /dump1090-fa/ http://flightFeederIP/dump1090-fa/ connectiontimeout=5 timeout=30
ProxyPassReverse /dump1090-fa/ http://flightFeederIP/

 

Next I have made a proxy passed from my main server(kushal.net) to the raspberry Pi which is based on Nginx 😀

however, I have ran into some problems while browsing the URL as my raspberryPi at home is based on dynamicIP and due to some issue of using a dynamic IP the nginx needed to the reloaded everytime the IP of my dynamic dns changed.

For that I have made a small creepy script on bash which is ran every 5 minutes by cron and ultimately corrected my issue of dynamic IP on my dns.


#!/bin/bash
check=`curl -IsLk https://<yourDNS>/<uri> --connect-timeout 1 |grep "HTTP/1.1 200"| awk {'print $3;'}`
if [ -z $check ]; then
result=`(ping -c 1 <yourhomedns.com>) &> /dev/null && echo 1`
if [ $result -ne 1 > /dev/null 2>&1 ]; then
echo "$check HOME_ip Unreachable - Not restarting nginx `date`" >> /var/log/restartnginx.log
else
check_port=`(echo > /dev/tcp/<yourhomedns.com>/<port>) 2> /dev/null && echo 1 || echo 0`
#if check_port == 1, means all application and ping is OK, only needs to reload nginx locally
if [ $check_port == 1 > /dev/null 2>&1 ]; then
/usr/sbin/service nginx reload > /dev/null 2>&1
echo "$check Restarting Nginx `date`" >> /var/log/restartnginx.log
else
echo "Apache on Home down - Not Restarting Nginx locally `date`" >> /var/log/restartnginx.log
fi
fi

fi

Looking forwarded to autotweet when plane passed by my radar 😀

 

 

 

 

 

 

Made with ♡ ♥💕❤ from Mauritius