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
523 stars 158 forks source link

Sidebar display old values #72

Closed tonkepen100 closed 9 years ago

tonkepen100 commented 9 years ago

Since the last review I think we have a little problem, is that when you click on the flight in the gusrda tab always the first flight, I mean for example a driver who makes its first flight with a Cessna and then performs another with a concorde its tab always goes the cessna.

I mean, does not erase the data and makes the new, and looked at the table and data go well, I bo that may be.

captura

Ysurac commented 9 years ago

You mean if the aircraft change for a same flight (same ident) ?

tonkepen100 commented 9 years ago

And discovered it is when you put ...

// INFO DISPLAY OF FLIGHTS IN A POPUP $ globalMapPopup = FALSE;

If you put it so works well ...

// INFO DISPLAY OF FLIGHTS IN A POPUP $ globalMapPopup = TRUE;

tonkepen100 commented 9 years ago

FALSE...

captura2

BAD

TRUE

captura

GOOD

tonkepen100 commented 9 years ago

Ycarus, Do you think you could fix this bug?

Thank You

Ysurac commented 9 years ago

maybe

Ysurac commented 9 years ago

mmm I think I didn't understand the bug.... Popup or sidebar always display the latest data in live table.

tonkepen100 commented 9 years ago

See I'll explain:

  Settings have that line that says what kind of sample we select popup:

// INFO DISPLAY OF FLIGHTS IN A POPUP $ GlobalMapPopup = FALSE;

Well if we put the option to TRUE things are going well, but if we put it in FALSE HERE COMES THE PROBLEM, and is as follows.

For example I make a flight with concorde, well and reached its destination, the program closes the flight, right now I change the flight plan and instead of concorde lame for example, a Cessna, since the lateral Poppup continues data continuously the first flight, I mean does not change the image or the model for the next flight or the nEXT you or those who do later, however if you put it to true, then if it goes well change the picture and model of aircraft, including or change the squack.

Look at the photos above mmm I think I didn't understand the bug.... Popup or sidebar always display the latest data in live table.

Yes lateral bad.

Ysurac commented 9 years ago

If you keep the sidebar open ? Sidebar never refresh if you don't click again on the plane or another plane. I can make it refresh sometimes.

tonkepen100 commented 9 years ago

I've tried but it does not, the first flight made by the pilot always remains.

Ysurac commented 9 years ago

This should not be possible, at least if $globalDaemon is set to FALSE in settings.php

tonkepen100 commented 9 years ago

Look for example now change squawk to 7004, with the lateral popup previous stays, but if this changed the table, if instead put the other popup, if you change either

captura2

captura

Ysurac commented 9 years ago

hum ok, maybe the page used for sidebar is put in the cache of your browser. I will make cache not possble for this.

tonkepen100 commented 9 years ago

whether it will be for sure, because the db goes well

Ysurac commented 9 years ago

Should be ok with build 336d127eca1df9c3cd884e4ec3ee9d41d1db2c4f I will add sidebar auto refresh later...

tonkepen100 commented 9 years ago

Well, I think that's not it, and it changed and does not change, plus I'm setting and the data do not go well on the side, with the popup if you look ...

captura

captura2

captura3

tonkepen100 commented 9 years ago

captura

WHIT POPPUP IS CORRECT

Ysurac commented 9 years ago

Strange... did you refresh the page after update ?

tonkepen100 commented 9 years ago

Yes Ycarus i refresh

Ysurac commented 9 years ago

what is your browser ?

tonkepen100 commented 9 years ago

chrome

Ysurac commented 9 years ago

coordinates of flight change when plane move and you click again on it ?

tonkepen100 commented 9 years ago

1

2 MINUTES LATER

2

No no change Ycarus

tonkepen100 commented 9 years ago

Buff and see altitude and velocity

Ysurac commented 9 years ago

Should be fixed in commit eab36cd. This is a problem with hours added in DB. You will not see if it's working before tomorrow.

tonkepen100 commented 9 years ago

Aja, Thankssss Ysurac

tonkepen100 commented 9 years ago

Ysurac, I think you got it, now speeds and heights are correct the squack changes, coordinates also change.

The only thing missing me to check if changing the flight is also changed the profile of the plane and the flight plan.

captura1

Merci beaucoup champion

tonkepen100 commented 9 years ago

Ysurac do not close it out now another problem, I think fatter.

Now do not go on the ad photos, and also the airport of departure and arrival are all wrong.

Look ....

captura3

captura

captura3

passes on all flights

tonkepen100 commented 9 years ago

It is not, that does not leave any photo, it is as if all had gone.

captura

Ysurac commented 9 years ago

Paste your settings.php (without passwords)

tonkepen100 commented 9 years ago

<?php //INSTALLED OR NOT ? $globalInstalled = TRUE;

//GLOBAL SITE NAME $globalName = 'AirPiro Radar';

// GLOBAL URL $globalURL = '';

// Logo URL $logoURL = '/images/airpiroradar.png';

// Activate debug $globalDebug = TRUE;

// LANGUAGE $globalLanguage = 'EN'; // Used only for wikipedia links for now

// MAP PROVIDER $globalMapProvider = 'MapQuest-OSM'; // Can be Mapbox, OpenStreetMap, MapQuest-OSM or MapQuest-Aerial $globalMapboxId = 'tonkepe.md76aj2h'; // Mapbox id $globalMapboxToken = 'pk.eyJ1IjoidG9ua2VwZSIsImEiOiJuZkI2SWRZ4NeEsjF7UpAgZBg'; // Mapbox token

//COVERAGE AREA (its based on a box model. i.e. top-left | top-right | bottom-right | bottom-left) $globalLatitudeMax = ''; //the maximum latitude (north) $globalLatitudeMin = ''; //the minimum latitude (south) $globalLongitudeMax = ''; //the maximum longitude (west) $globalLongitudeMin = ''; //the minimum longitude (east)

$globalCenterLatitude = '20.38'; //the latitude center of your coverage area $globalCenterLongitude = '5.29';//the longitude center of your coverage area

$globalLiveZoom = '3'; //default zoom on Live Map

// FLIGHTS MUST BE INSIDE THIS CIRCLE $globalDistanceIgnore = array(); // ^^ example for 100km : array('latitude' => '46.38','longitide' => '5.29','distance' => '100');

// DATABASE CONNECTION LOGIN $globalDBdriver = 'mysql'; // PDO driver used. Tested with mysql, maybe pgsql or others work... $globalDBhost = 'localhost'; //database connection url $globalDBuser = ''; //database username $globalDBpass = ''; //database password $globalDBname = ''; //database name $globalTransaction = TRUE; //Activate database transaction support

//FLIGHTAWARE API INFO $globalFlightAware = FALSE; //set to TRUE to use FlightAware as data import $globalFlightAwareUsername = ''; //FlightAware Username $globalFlightAwarePassword = ''; //FlightAware Password/API key

// TIMEZONE $globalTimezone = 'Europe/Madrid';

// DAEMON $globalDaemon = FALSE; // Run cron-sbs.php as daemon (don't work well if source is a real SBS1 device) $globalCronEnd = '0'; //the script run for xx seconds if $globalDaemon is disable in SBS mode

// FORK $globalFork = TRUE; // Allow cron-sbs.php to fork to fetch schedule, no more schedules fetch if set to FALSE

// DISPLAY FLIGHT INTERVAL ON MAP (in seconds) $globalLiveInterval = '60';

// LIVE MAP REFRESH (in seconds) $globalMapRefresh = '60';

//IVAO $globalIVAO = FALSE;

//ADS-B, SBS1 FORMAT $globalSBS1 = TRUE; //set to FALSE to not use SBS1 as data import $globalSBS1Hosts = array('http:','http:','http:','http://piro.biz/lib/skins/skyline/js/recentpireps.php',''); // ^^ in the form array('host1:port1','host2:port2','http://xxxxx/whazzup.txt'); Use only sources you have the rights for. $globalSBS1TimeOut = '15'; $globalSBS1update = '1260'; //Put data in DB after xx seconds/flight

//ACARS Listen in UDP $globalACARS = FALSE; $globalACARSHost = ''; // Local IP to listen $globalACARSPort = '';

// DISPLAY INFO OF FLIGHTS IN A POPUP $globalMapPopup = FALSE;

// To display Squawk usage we need Squawk country for now $globalSquawkCountry = 'US';

//BIT.LY API INFO (used in the search page for a shorter URL) $globalBitlyAccessToken = ''; //the access token from the bit.ly API

//BRITISH AIRWAYS API INFO $globalBritishAirwaysKey = 'u88an5thh5mwc';

//ignore the flights during imports that have the following airports (departure/arrival) associated with them $globalAirportIgnore = array();

//Archive all data $globalArchive = TRUE;

//NOTAM $globalNOTAM = TRUE; $globalNOTAMSource = 'http://notaminfo.com/feed?u=tonkepen'; //URL of your feed from notaminfo.com

//Retrieve Image from externals sources $globalAircraftImageFetch = TRUE; //Sources for Aircraft image $globalAircraftImageSources = array('ivaomtl','wikimedia','deviantart','flickr','bing','jetphotos','planepictures','planespotters'); $globalAircraftSize = '25';

//Retrieve schedules from externals sources (set to FALSE for IVAO or if $globalFork = FALSE) $globalSchedulesFetch = FALSE; //Sources for airline schedule if not official airline site $globalSchedulesSources = array('flightmapper','costtotravel','flightradar24','flightaware');

//Retrieve translation from external sources (set to FALSE for IVAO) $globalTranslationFetch = FALSE; //Sources for translation, to find name of flight from callsign $globalTranslationSources = array('planefinder'); $globalMapAltitudeColor = TRUE; $globalMapHistory = TRUE; ?>

Ysurac commented 9 years ago

$globalIVAO = FALSE; -> should be TRUE

tonkepen100 commented 9 years ago

Ojjjjjjjj already happened, be wrong to change the true, rather than change in popup, change it in IVAO, Ysurac sorry, sorry and thank you again.

Ysurac commented 9 years ago

For silhouette and pics of "specials" aircraft I opened issue #73

tonkepen100 commented 9 years ago

captura

captura2

OK Well, I took several days without seeing popup continues avion.routes errors etc etc, suddenly works well, and poof suddenly goes crazy and puts all evil

Ysurac commented 9 years ago

$globalIVAO is set to TRUE ?

tonkepen100 commented 9 years ago

Yes yes is true Ycarus

Ysurac commented 9 years ago

Strange... I will try to reproduce the issue on my computer.

tonkepen100 commented 9 years ago

Okay thanks Ysurac

Ysurac commented 9 years ago

Fixed in commit a6f1bb2.

tonkepen100 commented 9 years ago

Gooddddd Now, it seems that already goes well, sensational sensational