Giter Club home page Giter Club logo

ysurac / flightairmap Goto Github PK

View Code? Open in Web Editor NEW
515.0 69.0 156.0 155.93 MB

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.

Home Page: https://www.flightairmap.com/

License: GNU Affero General Public License v3.0

PHP 22.49% CSS 0.92% Shell 0.06% JavaScript 0.67% HTML 0.12% TSQL 75.75%
vatsim ivao aircraft crash cesium acars airport glidernet phpvms notam metar airline modes ads-b sbs vessel ship tracker 3d-map flight

flightairmap's Introduction

Build Status Codacy Badge

FlightAirMap

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.

Satellites can be displayed on 3D map.

On december, you can track Santa's flight.

For vessels, AIS is a supported source, so ships can be displayed on both 2D and 3D map, statistics are generated,...

For trackers, APRS is a supported source, so cars, trucks, mobile phones,... can be displayed on both 2D and 3D map, statistics are generated,...

Official Website

https://www.flightairmap.com/

Demo

Documentation

A wiki is available here: https://github.com/Ysurac/FlightAirMap/wiki

System Requirements

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

  • PHP version 5.4 or greater (>= 5.5.1 recommanded)
  • MySQL version 5.6.1 or greater, MariaDB or PostgreSQL with PostGIS
  • An HTTP Server such as:
    • Apache 2.0+
    • Nginx (include install/flightairmap-nginx-conf.include in server part of the config)
    • Lighttpd

Required Extensions

The follwing is a list of PHP extensions that must be installed on your server in order for this web app to run properly:

Install

Check https://github.com/Ysurac/FlightAirMap/wiki/Installation for detailed installation instruction.

Web install/Update

git clone --recursive https://github.com/Ysurac/FlightAirMap or get latest release https://github.com/Ysurac/FlightAirMap/releases

Use install/index.php

(You can always keep scripts/settings.php when you update)

Data Sources

ADS-B in SBS1 (BaseStation) format (real flights)

  • You can use dump1090 https://github.com/mutability/dump1090 with a RTL dongle, Radarcape deltadb.txt or aircraftlist.json, or wazzup file, or /action.php/acars/data of phpvms...
  • run scripts/daemon-spotter.php

ACARS (only messages from real flights)

APRS (real flights)

  • You can use APRS server from glidernet like aprs.glidernet.org:14580 (or port 10152 without APRS filter)

IVAO (virtual flights)

VATSIM (virtual flights)

Virtual Airlines Manager (virtual flights)

  • You need to copy the file install/VAM/VAM-json.php in your VAM directory, and use it as source

AIS NMEA (real ships)

License

FlightAirMap is licensed under GNU Affero General Public License (AGPL) version 3. "The GNU Affero General Public License is a modified version of the ordinary GNU GPL version 3. It has one added requirement: if you run a modified program on a server and let other users communicate with it there, your server must also allow them to download the source code corresponding to the modified version running there."

Some work can be used under other licenses, check file CREDITS

Contribution

When submitting a pull request for the first time, you will need to agree to the contributor license agreement (for individuals or entities). To do this, in the pull request please create a file with a name like /contributors/{github_username}.md, and in the content of that file indicate your agreement. An example of what that file should contain can be seen in example agreement file.

(This method of CLA "signing" is borrowed from Medium's open source project.)

flightairmap's People

Contributors

aimfederal avatar dannycork avatar mtrunz avatar sayzard avatar scenix007 avatar sinager avatar struart88 avatar ysurac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flightairmap's Issues

Flightaware and Links not working

I have installed and configured Flightaware as data source and also tried SBS (30003) but see no flights?

Secondly, when selecting a menu option from index.php page all I get is:

Not Found
The requested URL /statistics was not found on this server.

The url has the page name but no .php extension.

How does the Flightaware/SBS data get in?
How do I move from one page to another?

Running on Win7 with all the necessary modules loaded so on index.php I see a map with airports and options and also a menu at the top.

When I did the install I got this error when running install/index.php:

error : SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters

Thanks,
Michael
hfaero.com

Settings.php

the installation fails because it lacks a ;

// FLIGHTS MUST BE INSIDE THIS CIRCLE
$ globalDistanceIgnore = array () <------ HERE

Install REV 408

Hello again dear friend Ysurac.

Now I have new reseller with more trnsferencia and all, download the fix 408 and put all the necessary libraries as well as config PHP 5.4, and MySQL correct.

to put the cms is the perfect site, but installing the error log jumps this ....

[29-May-2015 12:52:17 UTC] PHP Parse error: syntax error, unexpected '$ globalDBdriver' (T_VARIABLE) in /home/airpiro/public_html/require/settings.php on line 38

and is all in white can not do anything else.

No see Planes

OK Ycarus the installation is correct, The cron is good the tables are data to ivao correct, and statictis are gooddd.... see you...

captura2

But in home no see planes..

captura

any ideas?

Thanks

connect Db phpvms

Good to know that already works perfectly taking data wazzup, my question now is this ...

In my website http://piro.biz grabs data from registrants of wazzup file and sent to a database, which sends the data to the Web itself.

It is possible that such data grab db and send them FlightAir Map ?.

Osease in the config file, which you would have to put so that only data cojiera db my website.

Thanks Ysurac

PD. It is storing data that is phpvms db, with some changes ...

captura1

Thanks again

.htaccess problem again

i can click what i want... i only see the main page from the stats.

left upper corner... is the current url.

fam_2
fam_3
fam_1

Install/Update/Check Databases

During the install of the current latest revision, at least the routes table and aircraft_modes table are not created which causes all other updates and checks of the database to fail! I'm not sure which other tables are not created.

No Flights on Map

I now have a database and cron-sbs is running with data going in to the tables, yahoo!

But........I have no planes on the map and when I click on EXPLORE >> LATEST ACTIVITY I get an 404 error. No other PHP pages load from clicking on the menu items. If I click on STATISTICS I get a 404 error but if I append .php I get some nice statistics.

I have changed from nginx to apache2 but don't thing the configuration is set up correctly. Any ideas?

Cheers,
Michael

Cron-db Stop

But now the cron is to just start to grab data basestation.

Connecting to SBS ... Connection in progress to 87.222.37.143:30003.... Connected! SCAN MODE *********** New aircraft hex : 47A46E *********** CATACRASH//// STOP

Initial Zoom

Hello again ...

The point is this when I open the web map with this zoom out ...

captura1s

there would be some way to tell you want to display zoom to load the map ?.

for example instead of the first.

captura2s

thanks

Connect

Hi Mario:

Sorry for my English is very bad but ...

They put up the web following the steps, loaded the tables perfectly ...

captura

But nothing comes out, my radar is a kinetic puck, and works with basestation through the port 30003, so that when I run 127.0.0.1:30003, see the data, but on the web does not leave anything.

212123

The truth and tried everything but I stay here, the truth is not followed.

http;//tres,piro.biz

Could I please take a hand, it would be very important for me to work.

My web ivao... http://piro.biz
My probe FlightAirmap: http://tres.piro.biz
My Teamspeak3: ts.piro.biz - No pass

Thanks

Base Airport

Base Airport

If this is not provided for, but this is my idea ....

In my case the airport is based on my radar LEZG (Zaragoza). While the next question would be, in settings it is decided that airport or airports are bases.

In one section the program notes that flights arrive or depart from this airport and stores or reflects in that section, you could also make those flights that leave or arrived avioncito color change color on the map.

And finally if I have not explained well.

Thank you.

Shared idea

To me an idea that could not be the solution to send data to a reseller by planeplotter.

captura

the question is sharear through it to the server ip and catch data.

I not if I'm talking nonsense but to me happened.

Light the subject would create a script to understand the data, no I do not understand.

Installation Issues / Latest Schema / Basestation Not Available

Hi @Ysurac

I just pulled the latest from git , and am facing the following issues , and am unable to run FlightAirMap

1. Basestation Not Available
http://pp-sqb.mantma.co.uk/basestation_latest.zip is 404 now , I checked the main website and it seems that the supplier has taken this offline , do you happen to have a latest copy? If not , any other source to get it?

2. Latest Schema Issue
Whenever I am running cron-sbs.php after installation, I am getting the following error

php cron-sbs.php
You MUST update to latest schema. Run install/index.php

3. Installation Issues

Due to #1 in this list , The installation script fails , It also looks for install/tmp directory which doesn't exist.

The URL field in require/settings.php is important as otherwise rules / css doesn't load.

Please help.

Thanks,

Today's Activity

Hello again,

For me in NZ time the Today's Activity reports that the date doesn't exist in the database between NZ midnight and NZ 11:59 am. This is because the Port 30003 data is converted to UTC on import.

So, either on import the date/time should be local (that's what modesdeco2 is sending) i.e. no UTC conversion, or the PHP page that pulls the date should convert from UTC to NZ time.

Thanks,
Michael

Scripts error.log

when the cron want to update the tables again fills the server error.log ...

captura

Installation hangs during DB Import

Hi,
i've tried yesterday to install FlightAirMap, but Installation hangs at the DB Installation (we importing....!) and no DB will be created.

Further Question:
During Installation sqlite is a prerequisite, but later you only use mysql/postgresql - ?!? For what you need Sqlite?

Kind regards

Torsten

Populate database with externals data... forever

It said "can be very slow" Waited 30min.
install/index.php just spinning. No error messages.
Ubuntu 14.04, apache2, mysql5.6, fresh install.

apache error log shows, dunno if it helps.
[Fri May 08 22:24:42.911869 2015] [:error] [pid 4402] [client myip:62591] PHP Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in /var/www/FlightAirMap/install/index.php on line 536, referer: http://myhost/FlightAirMap/install/

Working On RPi2!

I have the app working on my RPi2 but have a couple of issues. I'm using some port 30003 (SBS) data so how do I keep the flow of data coming to the web? I have a cron job ever 1 minute running the cron-sbs.php file but I'm not sure that's working. When I run cron-sbs.php in my browser it eventually times out so no further data unless I manually refresh the page!

Secondly, the aircraft points the wrong way! Mostly they are in the correct quadrant but definitely not pointing the same as the heading.

And lastly, the airport of arrival is always NA on the routing.

I'll keep the app going so you can see this at http://hfaero.no-ip.org/index.php

Thanks,
Michael
hfaero.com

7700.7600.7500

Again heavy ..

It is not exactamnte to this section but I think it could be done in a section for reporting of codes 7700, 7600 and even 7500.

I leave photos of the idea ...

captura2

captura

So anyone SQ to occur during data collection is reflected.

Date Issue

I have a mostly working system but the date information is a bit strange.

I have the Port 30003 data set for local time (modesdeco2 setting) and the database is storing in local time (spotter_live & spotter_output tables).

When I "Explore" today's activity the right hand column shows the time +2.00 hours.
Spotter TV has the time as UTC!

Where should I go to change all dates/times to local?

Cheers,
Michael

Popup data flight

Popup

By clicking on the map on a flight, get the popup that flight, but as the plane moves, said data poppud vanishes and is very difficult to see the data. sensational serious that was punctured once more open time without disappear.

thanks

Oh Oh - Departure Arrival...

Ysurac Houston we have a problem:

Watch this'm flying start and finish watching ...
captura

and watch my flight plan ....

captura2

Mismatch airports of departure and arrival

cron-sbs.php hangs after a little while

Hi,

I have noticed that cron-sbs.php hangs after a little while. The only way to recover it is to kill the process and run it again , Is there any way I can enable debugging for troubleshooting this issue?

Thanks,

Map Box

Back to load ...

  1. Create an account on MapBox, create the map and put the ID in setting, so it looks something seems to be something wrong, or not shoots.

captura

captura1

captura3

On the other hand impressive your work, I congratulate you.

2.- could somehow create a cron so that it can run via cron job and would act as the cron-db.php?

thanks

Installation fails

When running install/index.php and going forward I get only blank page. It seems /require/settings.php $globalSBS1Hosts = array('ip:port') is missing semicolon (;) which is why it's failing.
Tested with RPi with lighttpd and Ubuntu 14.04.2 LTS with apache2.

Button Home

When you click on the home button, it stays on the same page you were previously viewing. The web address is the same does not change and remains at the last visit.

captura

NA

Somehow possible to tell that the NA would not the compute ?.

captura

typing -error in /js/map.js.php

Hello , detected a error in /js/map.js.php
line 220 look like this
url: "live/geojson?"+Math.random()+"&coord="+bbox,

if we leave this as is , you will never get any routes or anything your map , because
/live/geojson? does not exist in your path !
you should change it to this

  url: "live-geojson?"+Math.random()+"&coord="+bbox,

only change the / character to -
if you have changed that , the webserver can find live-geojson.php and draw the routes ,planes ,etc
Have a nice Day !

db performance etc

do you got a hint for better mysql performance or a good howto for maria db? mysql kills my server. got a load of 4 - 6...

File error.log

scripts/error.log skips this error, and filled both the server suddenly overflows.....

[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: gzeof() expects parameter 1 to be resource, boolean given in /home/airpiro/public_html/install/class.update_db.php on line 30
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Notice: Undefined variable: argv in /home/airpiro/public_html/scripts/cron-sbs.php on line 265
[29-May-2015 18:02:23 UTC] PHP Warning: pcntl_exec() expects parameter 2 to be array, null given in /home/airpiro/public_html/scripts/cron-sbs.php on line 265

Table to Text .. and shot that touches me

Well after my greatest success of my computer science, continuous history with another equally important challenge.

This time I return to the fray with my tracker website htttp: //piro.biz .....

As we know the web grabs 5 wazzup.txt data files on different servers, which are compatible with airmap it confirmed since this works,

Web grabs that data and enters them into a table only if the flight is registered on the web.

captura

Airmap grabs no data tables, so here comes the big question:

  1. It is technically possible that this table send the data to a txt file format compatible with airmap?
  2. We need to be a computer engineer to be able to do?
  3. If you can technically there where you can see how compatible data file for that notation ?.

And as always, thanks.

Data

I have an issue or two and some questions.

The spotter_live table retains old data, I have some records going back to the day I installed my current version, 6 days ago! Is the spotter_live only supposed to keep the flights that are live?

I assume that the spotter_output should be recording one row per flight once they stop from becoming 'live' flights, is that correct?

Why do I have no records in the spotter_archive table? Is there a purpose to this table?

When updating a route record in the routes table or an aircraft in the aircraft_modes table there's no retrospective update for the flight info in the spotter_output table meaning I have to update all the records in there as well.

Is there a possibility that non ADS-B data could be databased, i.e. Mode-S? I get quite a few interesting aircraft fly around my QTH that don't have ADS-B but can be identified with their Mode-S code.

Thanks,
Michael
hfaero.com

Install today

Hello today is not to install and yesterday if I skip this now .....

captura

Thanks

Error_Log

The error_log file in the Install folder fills up and overflows the sevidor ....

captura

mobile menu

device: oneplus one
android: 5.02

could you move the statistic menu, a little bit to the left?

can't see the menu button.

image

planes are not shown on the map

i get my data from dump1090-mutability (port 30003) and the planes are not shown on the map. but the statistics are working.

N/A

Hello again:

On maps of statistics to grab many flights no data creates a huge circle N / A, still difficult to see the rest of data.

It could displace that point, so that they look if they have information that ?.

See attached capture

asdsda

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.