Ysurac / FlightAirMap

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.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
522 stars 158 forks source link

List of minor bugs, missings or inexplicit behavior #341

Closed TomMuc1 closed 7 years ago

TomMuc1 commented 7 years ago

map side-bar menu: 'Display flight remaining route on click' and 'Display flight route on click' not deselectable

TomMuc1 commented 7 years ago

/install/header.php btw. preventing browser from caching often it is more reliable to add http headers in addition to html headers - because the http headers can depend on global php setup ... e.g. this way:

<?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
Ysurac commented 7 years ago

This doesn't really change anything if there is no proxy involved but why not.

TomMuc1 commented 7 years ago

:))) this totally bavarian style of humour

TomMuc1 commented 7 years ago

just one last question today. i saw you did something with the .htaccess for lighttpd - is there something i have to be aware of when making a test install of flightairmap on a dump1090 install with lighttpd - or should i wait some days until you finished this all?

Ysurac commented 7 years ago

Read this dirty wiki doc: https://github.com/Ysurac/FlightAirMap/wiki/Lighttpd

TomMuc1 commented 7 years ago

thanx - have a nice evening!

Ysurac commented 7 years ago

nice evening too.

TomMuc1 commented 7 years ago

side-bar-menu:

top menu:

install:

Ysurac commented 7 years ago

sidebar menu:

top menu:

install:

TomMuc1 commented 7 years ago
TomMuc1 commented 7 years ago

haha - thanks :) don't you also think it looks much better now - top-menu and side-bar-menu?

Ysurac commented 7 years ago

True, it's better. It was a bug in my CSS.

TomMuc1 commented 7 years ago

where do i find the lighttpd config file?

Ysurac commented 7 years ago

In install/flightairmap-lighttpd-conf.include. Read https://github.com/Ysurac/FlightAirMap/wiki/Lighttpd

TomMuc1 commented 7 years ago

i've read this - not the .include but the flightairmap.conf file itself is what i'm looking for

Ysurac commented 7 years ago

Lighttpd configuration is customized by Debian. I will add a Debian conf in tutorial.

TomMuc1 commented 7 years ago

the file that then resides in /etc/lighttpd/conf-availible/ to configure lighttpd via sudo lighty-enable-mod flightairmap

Ysurac commented 7 years ago

Yes, it's only for debian/raspbian. The conf I made is for all distribution. I will make a conf for Debian/Raspbian.

TomMuc1 commented 7 years ago

yep as this will be the most wanted version because lighttpd in my opinion makes only sense when flightairmaps installs on raspi with dump1090 that already uses lighttpd

Ysurac commented 7 years ago

Dump1090 also provide nginx conf, and it's far better.

TomMuc1 commented 7 years ago

i know and you are fully right! but at the moment about 95-100% of the feeders run pi with dump1090 and lighttpd. and it's all about making it as easy as possible for the majority to use your application. just flightaware has more than 10,000 feeders

Ysurac commented 7 years ago

It's available in latest commit and doc is updated: https://github.com/Ysurac/FlightAirMap/wiki/Lighttpd Should work.

TomMuc1 commented 7 years ago

the standard path for lighttpd is /var/www/html - i changed this - but:

pi@RaspPiADSB0:~ $ lighty-enable-mod 89-flightairmap-lighttpd.conf Ignoring unknown module: 89-flightairmap-lighttpd.conf Run "service lighttpd force-reload" to enable changes

seems to be an issue just on my side

TomMuc1 commented 7 years ago

aaah - problem is - when enabling module the '.conf' extension is not recognized. and in flightairmap-lighttpd-conf.include the path has to be /var/www/html/ instead of /var/www/

sudo apt-get install php5-cgi lighttpd
sudo cp /var/www/html/flightairmap/install/89-flightairmap-lighttpd.conf /etc/lighttpd/conf-available
sudo lighty-enable-mod 89-flightairmap-lighttpd
sudo /etc/init.d/lighttpd force-reload
Ysurac commented 7 years ago

Sorry, I updated the doc.

TomMuc1 commented 7 years ago

you don't have to say sorry - when you realize each and every wish from a single user within minutes. and moreover we all use your work for FREE!!! so i have to say a big THANK YOU for your help and patience and coding this nice application :)

cheers tom

TomMuc1 commented 7 years ago

p.s. in addition i'll ask the developer of dump1090-mutability why lighttpd is used to be the standard and not nginx - and what his future plan is ...

https://discussions.flightaware.com/t/nginx-instead-of-lighttpd-as-dump1090-mutability-fa-standard/26410

TomMuc1 commented 7 years ago

haha - and btw. this time i set up the mysql not on the raspi i run flightairmaps but on a 4-core i7 mac-mini server with 16gb ram. now everything is lightningfast :)

TomMuc1 commented 7 years ago

an issue i was runnuning into again and again - see example above - and now when activating the system-service for daemon-spotter.php is the path problem. in so many files across the app /var/www/flightairmap/... is hardcoded into the files. how about having this path in one distinct variable so if one has to change to e.g. /var/www/html/flightairmap/... all other files pick up the path from there?

TomMuc1 commented 7 years ago

in addition here was 'Web_App' in the path too - never saw this directory anywhere ???

TomMuc1 commented 7 years ago

see flightairmap/install/init/flightairmap.service.systemd

[Unit]
Description=FlightAirMap
Requires=mysql.service
After=mysql.service

[Service]
ExecStart=/var/www/flightairmap/Web_App/scripts/daemon-spotter.php
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
TomMuc1 commented 7 years ago

a lighttpd problem i've found is with link from top menu explore->latest accident/incident all browsers say 'too much redirects' instead of showing the page. this does not appear when apache is used as webserver. same problem with todays activity.

Ysurac commented 7 years ago

Web_App removed in latest commit. No real other choices than hardcoding path in init, if I put a file with the variable I will have to hardcode the path to this file...

TomMuc1 commented 7 years ago

sorry i was unclear above :) i thought the user inputs his path in the install script -> then the installer generates or rewrites the files in /flightairmaps

TomMuc1 commented 7 years ago

GEOID HEIGHT CALCULATOR:

Exception: Can't open /var/www/html/flightairmap/require/../data/egm96-15.pgm in /var/www/html/flightairmap/require/class.GeoidHeight.php:47 Stack trace: #0 /var/www/html/flightairmap/tools-geoid.php(6): GeoidHeight->__construct() #1 {main}
Ysurac commented 7 years ago
TomMuc1 commented 7 years ago
Ysurac commented 7 years ago
TomMuc1 commented 7 years ago

git pull-> lighttpd restart->WORKS LIKE A CHARM :) you are unbelivable!!!

TomMuc1 commented 7 years ago

what i wanted to ask is if there maybe in future could be a way to display whether or not position/altitude data was computed with mlat by displaying mlat in the aircraft data popup-window

TomMuc1 commented 7 years ago

posted some pix - as i'm so happy with the new tool i have now :) https://discussions.flightaware.com/t/one-hell-of-a-ride-flightairmaps-the-way-better-virtualradarserver/26122?u=tommuc https://discussions.flightaware.com/t/one-hell-of-a-ride-flightairmaps-the-way-better-virtualradarserver/26122/41?u=tommuc

Ysurac commented 7 years ago

MLAT flag is only in dump1090.json format, putting this in a new source name this may be possible but not really accurate because I don't save every coordinates, I can merge several sources,...

I redirected MLAT to another port and use that as another source, I should put the config in the doc.

TomMuc1 commented 7 years ago

just show up in the aircraft popup on map-window were great - no need to flag this in database data

TomMuc1 commented 7 years ago

you will see over time that most users will use the aircraft.json input as it already holds all mlat without loop-back prone port 30003 mlat tinkering. in addition there is no way to get the anonymized mlat from flightaware to port 30003. moreover a much better source than basestation is the beast-binary format but again more cpu-intensive to process with php ...

Ysurac commented 7 years ago

beast binary doesn't really change anything over basestation format. I will make some test for mlat, I didn't play with this since a long time...

TomMuc1 commented 7 years ago

beast binary doesn't really change anything over basestation format.

starts with that you can determine whether or not mlat :)

what is a major problem with basestation-format as fa, fr24, planefinder etc. are not able to detect if someone by accident loops them (foreign) mlat data back ...

Ysurac commented 7 years ago
TomMuc1 commented 7 years ago

to be honest i do not know either :))) never looked into the data - i was just the parrot who repeated what i once read from mutability developer. but it must be there as i combine adsb/mlat on one pi - then fetch via socat from another pi the combined beast-stream and then this pi produces the aircraft.json that again clearly differentiates in subkey 'mlat' of each aircraft.json row ...

Ysurac commented 7 years ago

I looked in dump1090, and found this: #define MAGIC_MLAT_TIMESTAMP 0xFF004D4C4154ULL, so it is using a special timestamp.

TomMuc1 commented 7 years ago

you are unbelievable and lightning-fast :) and what i understood from what i once read - doing things like this with basestation format is hard or impossible e.g. flightawares ~at the beginning of transponder hex code of their anonymized mlat feedback