Welcome to Radarspotting. Please login or sign up.

May 25, 2026, 01:32:48 AM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

Flight Air Map - Web App

Started by mezoo, November 12, 2016, 04:55:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mezoo

For people who are looking for an alternative to VRS or want to host their own website -

Have a look at the Flight Air Map Project on Github
https://github.com/Ysurac/FlightAirMap

or the demo at  https://www.flightairmap.fr/

It is based on the Barrie Spotter project of Mario Truntz.
The Barrie spotter depended on data from Flightaware.

Ysurac has fully extended the Barrie spotter.
It can now access local or remote data feeds and provides flight data and statistics.
As it is an open project you can download it and modify it.

I have it installed and it is working with my Radarcape.
Ysurac is continually working on it and helped me quickly to get my system running.

-------------------------

From Github :
"FlightAirMap is a fork of Barrie Spotter https://github.com/barriespotter/Web_App with map, airspaces, METAR, PDO and ADS-B support. Browse through the data based on a particular aircraft, airline or airport to search through the database. See extensive statistics such as most common aircraft type, airline, departure & arrival airport and busiest time of the day, or just explore flights.

Flights are displayed on a 2D map that can be from : OpenStreetMap, Mapbox, MapQuest, Yandex, Bing, Google,... Or a 3D map using OpenStreetMap or Bing.

It can be used with Dump1090 or any SBS source. Can also be used with virtual airlines sources like FlightGear, whazzup.txt from IVAO, VATSIM, phpvms, Virtual Airlines Manager,...

It also support glidernet APRS source."

System Requirements

To install the web app, you need to have meet the following requirements:

    PHP version 5.4 or greater
    MySQL version 5.6.1 or greater, MariaDB or PostgreSQL (with PostGIS if you want waypoints, airspace and countries data)
    SQLite 3 (if you use ADS-B as datasource)
    An HTTP Server such as:
        Apache 2.0+
        Nginx

--------------------------------------

Installation requires some knowledge of running servers so it is not for the  faint hearted.
But if you use a preinstalled package like XAMPP https://www.apachefriends.org/de/index.html or https://bitnami.com/it is not impossible.




IanH

Tried this a while back and couldn't get it to work.Just checked and it was almost a year ago!

Looked interesting so I'll have to give it another go. Particularly now that someone has succeeded.


Bethsalem

Got it working, but unfortunately as my laptop is a bit low spec and I've got Spanish broadband  :) it's just too slow to be useful. So I'll stick with VRS for the time being, but it does look an excellent project that has the potential to be a VRS beater.

mezoo

I've got it running on an refurbish HP business desktop which I got cheap on the internet (Win 7 Home Premium - 64bit)

CPU speed is not the main problem but increasing the RAM to 8GB definetely helped stabilise the SQL server
(But I am also running VRS and PP in parallel !!)

THe current version of FlightAirMap only shows aircraft with positions, so it is showing less data than VRS.
But Ysurac has promised an update for next week which should include positionless aircraft.

mezoo

Some screenshots from my Flight Map.

[Attachment deleted by Admin to save file space]

IanH

Still can't get it to work  :'(

On Debian 8 server with required extensions to PHP.

During install there is a MySQL error when downloading "airspace" but goes to completion (?) when refreshed.

FlightAirMap starts but the "Aircrafts Detected" just shows the rotating icon - nothing plotted.

Looks like I have other problems since the Search function goes to "search" and not "search.php" - hmmm

But having finally figured out how to keep PHP getting data from the SBS-1, the Statistics are being collected.

But still no plots.

IanH

Success!

Figured out that the "Search", etc not going to the correct php file was the problem.

Apache redirection was not working!

"a2enmod rewrite" won't have any effect unless the server configuration file is also set up to allow. In Debian /etc/apache2/apache2.conf was the file I altered.

mezoo

Have you started the script "daemon-spotter.php" ?
It is in the 'scripts' directory.
This script actually collects the data from your receiver and puts it in the database.
Without it running nothing happens.

I'm running the windows version  of XAMPP 7 with Apache and MySQL servers.



Breitling

I'm trying but this is all I get:

http://gilitadas.com/airmap/

Using WAMP, installation was successful. Any idea?

mezoo

#9
The parameter $globalURL in script settings.php is probably not set correctly, so FlightMap cannot find the css and other style files.
This parameter must point to the directory which contains the file index.php for the FlightMap site.
HTML looks for all other files relative to this directory.

I had the same problem  ;)

On my machine with XAMPP the the index.php is in the folder C:\xampp\htdocs\WebSite\FlightAirMap\index.php
So the $globalURL is "WebSite/FlightAirMap"

The default starting oint of the Apache server is set to C:\xampp\htdocs [XAMPP default value]
You can modify the $globaURL with the install script or directly with a text editor

IanH

I agree - that was the screen for my first attempt.

Install script is in FlightAirMap/require and called "settings.php"

As mezoo says, either edit directly or set the 1st variable to FALSE:

$globalInstalled = FALSE;

and run the install file again to make the change in the GUI

Breitling

Thanks so much you both. Now I see I have some other problems, probably map sources misconfiguration. I'll read a bit more and try again.

mezoo

Your site is looking better.
But it seems that your receiver is not connected (endlessly turning circle) or the script "daemon-spotter.php" is  not running

My "Radarcape" is connected as follows :
Port : 30003
Format : "Auto" or  "deltadbtxt"
Your FR24 rcvrs are similar, they only use a different port.

Dont forget to check ADS-B, SBS-1 format !

As a map I use "OpenStreetMap"

To get everything setup you can directly run populate.php which installs and fills all the databases.
This is found in the folder "install"

Or the "update_db.php" in the folder scripts which updates NOTAM, Metar, Routes and updates the statitics

Both take a looooong time for the initial downloads  ???

Breitling

Well...  making slow progress...  Now I see the map as expected.

Tried with two different sources (both on my LAN): FR24 box (Radarcape) and a S-Beast. When I start up daemon-spotter I get the attached result.

Still no plots:  http://gilitadas.com/airmap/



[Attachment deleted by Admin to save file space]

IanH

Looking at those error messages, did you enter values for all the latitude and longitude data?

As I recall there is a Max and Min required for each.

Also for the centre of your coverage (home?) and for the location of the receiver.