AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Report generator  (Read 4299 times)

0 Members and 1 Guest are viewing this topic.

viking9

  • Hero Member
  • *****
  • Posts: 823
    • Aircraft Photography
Report generator
« on: November 05, 2008, 05:09:16 PM »
Why does Reporter not produce all the information that is in MyLog? Is it a bug or a 'feature'?

Tom
Tom
Bury St Edmunds, Suffolk UK
15 miles SE of EGUN
32 miles SE of MAM > DIKAS track
http://www.viking9.co.uk

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
Re: Report generator
« Reply #1 on: November 05, 2008, 05:51:17 PM »
What else would you like to see in Reporter?

viking9

  • Hero Member
  • *****
  • Posts: 823
    • Aircraft Photography
Re: Report generator
« Reply #2 on: November 05, 2008, 06:21:10 PM »
How about first time seen as well as last time and the last squawk?

Those would be useful in pinning down non-positional aircraft seen overhead.
Tom
Bury St Edmunds, Suffolk UK
15 miles SE of EGUN
32 miles SE of MAM > DIKAS track
http://www.viking9.co.uk

HMN851X

  • New Member
  • *
  • Posts: 25
Re: Report generator
« Reply #3 on: November 06, 2008, 07:13:03 AM »
One thing I would like to see in the Report generator is all flights. I try to track flights in and out of my local Airport but the Report only shows the first flight of the day by the Aircraft for example

NPT501 crosses the Isle of man at 01:00 in the Morning but then arrives in the Isle of Man at 06:15 but this flight is not showen in the report :-(

this also is the same for Flybe flights as well

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Report generator
« Reply #4 on: November 06, 2008, 08:12:44 AM »
HMN851X, yes, that's been asked for before - see http://www.airnavsystems.com/forum/index.php?topic=1399.msg11189#msg11189

I've posted SQL in that thread that will give you all flights for all aircraft for the previous day.  Attached is my report for yesterday, created using SQLite Maestro.

Here's the SQL I currently use for my daily report:
SELECT DISTINCT
  Aircraft.Registration,
  Flights.Callsign,
  Flights.Route,
  Aircraft.AircraftTypeSmall,
  Aircraft.Airline,
  Aircraft.AircraftTypeLong,
  Flights.StartTime,
  Flights.EndTime,
  Aircraft.ModeS,
  date('now','-1 day') AS FIELD_1,
  substr(Flights.StartTime,1,4)||"-"||substr(Flights.StartTime,6,2)||"-"||substr(Flights.StartTime,9,2) AS FIELD_2
FROM
 Aircraft
 LEFT OUTER JOIN Flights ON (Aircraft.ModeS=Flights.ModeS)
WHERE
  (FIELD_1 = FIELD_2)
ORDER BY
  Aircraft.Registration,
  Flights.StartTime,
  Flights.EndTime,
  Aircraft.ModeS
« Last Edit: November 06, 2008, 12:49:12 PM by tarbat »

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Report generator
« Reply #5 on: December 12, 2008, 10:40:45 AM »
I've been working on a new SQL query that lists ALL aircraft received yesterday, including those without a Flight ID.  SQL listed below, and example report attached.

SELECT DISTINCT
  Aircraft.Registration AS "Reg",
  Flights.Callsign AS "Flight ID",
  Flights.Route AS "Route",
  Aircraft.AircraftTypeSmall AS "ICAO Type",
  Aircraft.Airline AS "Airline",
  Aircraft.AircraftTypeLong AS "Aircraft",
  substr(Flights.EndTime,12,5) AS "Flight Ended",
  Aircraft.ModeS AS "Mode S"
FROM
 Aircraft
 LEFT OUTER JOIN Flights ON (Aircraft.ModeS=Flights.ModeS)
WHERE
  ((date('now','-1 day') = substr(Aircraft.LastTime,1,4)||"-"||substr(Aircraft.LastTime,6,2)||"-"||substr(Aircraft.LastTime,9,2)) AND
  (Flights.StartTime IS NULL)) OR
  ((date('now','-1 day') = substr(Flights.EndTime,1,4)||"-"||substr(Flights.EndTime,6,2)||"-"||substr(Flights.EndTime,9,2)))
ORDER BY
  Reg,
  Flights.EndTime,
  Aircraft.ModeS
« Last Edit: December 12, 2008, 11:04:31 AM by tarbat »