Jump to content

Recommended Posts

Posted

Hi all,

I am trying to improve my ugly flightboard and I'd like to add a field with arrival info such as "on time", "delay", "early".

As I am using kACARS for flight logging I have looked into the config file and found out a certain "FLIGHTTIME" entry which I think is my real flight time logged by client.

Now the problem is, how to make a code to control/compare the flight time recorded by kACARS with the one I have set in my schedules so that let's say if the compared time is (+) / (-) 5 minutes it will tell "ON TIME", if more than 5 minutes it will tell "DELAY" or if less than 5 minutes it will tell "EARLY".

Can anyone help me with this?

Cheers,

Arslan

PS. For anyone willing to help me... I am just a translator and photographer and my knowledge about this coding stuff is slightly over zero :)

  • 2 months later...
Posted

Hi

I have somehow managed to do what I wanted. For now I am able to check if the flight is "on time" ( - + 15 minutes), "early" ( < 15 minutes), "delayed" (> 15 minutes) or "not scheduled" (any flights other than P type).

But my version needs an additional column (a flight time column) in schedules database which should be entered as "time" directly into the database.

What I would like to know if it is possible to integrate this column in the admin panel or change the Flight Time entry to be able to enter it as "time" instead of "float".

Cheers,

Arslan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...