Open rstroom opened 6 years ago
What is the source used and what is the value of $globalLiveInterval ?
$globalLiveInterval = 200 I used the last one, downloaded a week ago
I mean the source of data: ADS-B, OGN, some virtual airlines,... ? And you can increase globalLiveInterval.
Sorry my source is VRS Json. I increase it to 2000
on 2000 it isn't working. When I set it to 200, it's working for about 1 minute. When i go after it to the URL with the planes, I won't see any plane. No one is plot on the map
2000 should work. Do you run daemon-spotter.php as daemon or cronjob ? If you run it as daemon, what is the output of daemon-spotter.php run in a console ? If you run it as cronjob, $globalDaemon is set to false ? how often do you run it ?
New flight... New aircraft hex : 738324 Check if aircraft is already in DB... Not in DB. \o/ Add in archive DB : Not found :'( SuccessDelete old values and update latest data... DATA : hex : 738324 - ident : - ICAO : NA - Departure Airport : NA - Arrival Ai rport : NA - Latitude : 32.000614 - Longitude : 34.878326 - waypoints : - Altit ude : - Heading : 121 - Speed : 8 - Departure Airport Time : - Arrival Airport time : - Source Name : \o/ Add from aircraftlistjson in Live DB : -- Delete previous data -- (Add to S potter archive : success)success New flight... New aircraft hex : 3DE6F0 Getting schedule info... Check if aircraft is already in DB... Not in DB. \o/ Add DHHSA in archive DB : Try to find an aircraft image for D-HHSA...Not fou nd :'( SuccessDelete old values and update latest data... DATA : hex : 3DE6F0 - ident : DHHSA - ICAO : R22 - Departure Airport : NA - Arri val Airport : NA - Latitude : 48.783487 - Longitude : 9.206109 - waypoints : - Altitude : 24 - Heading : 16 - Speed : 76 - Departure Airport Time : - Arrival Airport time : - Source Name : \o/ Add DHHSA from aircraftlistjson in Live DB : -- Delete previous data -- (Add to Spotter archive : success)success New flight... New aircraft hex : A6E6E2 Getting schedule info... DATA : hex : A6E6E2 - ident : RDN879 - ICAO : CL60 - Departure Airport : - Arrival Airport : - Latitude : 47.508514 - Longitude : -122.284522 - waypoints : - Altitude : 12 - Heading : 151 - Speed : 195 - Departure Airport Time : - Arrival Airport time : - Source Name : !! Too far -> Distance : 8625 New flight... New aircraft hex : A1FCC0 Getting schedule info... -> get arrival/departure airport info for N227TW DATA : hex : A1FCC0 - ident : N227TW - ICAO : C172 - Departure Airport : KOJC - Arrival Airport : KOJC - Latitude : 38.853092 - Longitude : -94.73672 - waypoints : - Altitude : - Heading : 214 - Speed : 7 - Departure Airport Time : - Arrival Airport time : - Source Name : !! Too far -> Distance : 8207 New flight... New aircraft hex : 5083DF Getting schedule info... Check if aircraft is already in DB... Not in DB. \o/ Add KUP7032 in archive DB : Try to find an aircraft image for UR-SQB...Not found :'( SuccessDelete old values and update latest data... DATA : hex : 5083DF - ident : KUP7032 - ICAO : B738 - Departure Airport : NA - Arrival Airport : NA - Latitude : 29.896406 - Longitude : 31.364189 - waypoints : - Altitude : 360 - Heading : 6 - Speed : 467 - Departure Airport Time : - Arrival Airport time : - Source Name : \o/ Add KUP7032 from aircraftlistjson in Live DB : -- Delete previous data -- (Add to Spotter archive : success)success New flight... New aircraft hex : 4D0353 Getting schedule info... -> get arrival/departure airport info for LXSRD Check if aircraft is already in DB... Not in DB. \o/ Add LXSRD in archive DB : Try to find an aircraft image for LX-SRD...Found !
I use deamon-spotter. After I clicked on one plane on the screen, al the planes are gone and when I opn a new broser there are stil no plains, even when I look on a different laptop or tablet.
When I use cron-job or deamon spotter, the script stops plotting on the screen after about 3 minutes. When you use cron-job, and start after 1 or 2 minutes a new deamon, after 2 hours you receive a message to many connections.
When run as cronjob, $globalDaemon is set to false ? If you want to know what append when running as daemon (and $globalDaemon set to true), check what is displayed on screen. Only aircraft with new data are displayed after sometimes.
Ok $globalDeamon is OK. When I lost al the planes on the screen I see this in the terminal:
New flight... New aircraft hex : 505FC3 Check if aircraft is already in DB... Already in DB. DATA : hex : 505FC3 - ident : - ICAO : NA - Departure Airport : - Arrival Airport : - Latitude : 48.751171 - Longitude : 22.339491 - waypoints : - Altitude : 124 - Heading : - Speed : - Departure Airport Time : - Arrival Airport time : - Source Name : Glob1 \o/ Add from aircraftlistjson in Live DB : success !!! Date is too old 2018-08-27 05:09:12 for 447AC7 - format : aircraftlistjson!!! Sleeping...
Sleeping is for about 30 seconds en then I lost my planes. After about 2 minutes ik see planes again till a new message Sleeping...
No problems here. It's defined by $globalMinFetch for HTTP sources. You can increase $globalLiveInterval more.
After one minut you lost all the planes in the screen, bud deamon spotter is still running and updating the database. I run on a debian 9 machine, plesk and MySQL