Jump to content

Recommended Posts

Posted

I'm wondering how to get an altitude and speed chart on pirep_viewreport.php like the one in vataware? I know data can be extracted but dunno the implementation of the code. Any help?

Posted

Do you have the data in the row of the PIREP?

If so, it should be fairly easy. Check out Chart.js. It's a good library for making all sorts of charts/grahps etc.

Posted (edited)

Take your most recent pirep from the DB. What is in the raw_data column?

If there is data there, you can get it working. Take a look at the exaple Chart.js charts and you'll see the format it requires. It should be a simple JS array format

data = [1,2,3,4] etc.

And then each element of the array should have an associated element in the labels array. But check the docs for this.

A quick solution would be to just generate a script that creates a properly formatted string, and call it inside the .tpl/.php file. I guess the better way would be to perform some sort of AJAX call to get the data then do a $.each() on the array.

 

Did this for a VA.

Take a look at the part of the code

graph.JPGdata.JPG

Edited by Sava
  • Like 1
Posted (edited)

You are so good buddy! Thanks for your help. This is the thing I wanted! +1 for you ;)

 

Sincerely

Aaryan Kapoor

Edited by Aaryan
  • 1 month later...
Posted
On 2017/6/23 at 4:12 AM, Sava said:

Take your most recent pirep from the DB. What is in the raw_data column?

If there is data there, you can get it working. Take a look at the exaple Chart.js charts and you'll see the format it requires. It should be a simple JS array format

data = [1,2,3,4] etc.

And then each element of the array should have an associated element in the labels array. But check the docs for this.

A quick solution would be to just generate a script that creates a properly formatted string, and call it inside the .tpl/.php file. I guess the better way would be to perform some sort of AJAX call to get the data then do a $.each() on the array.

 

Did this for a VA.

Take a look at the part of the code

graph.JPGdata.JPG

This message is great if you can share the code
we need flight map, please share this code to us also
k922365@gmail.com

 

  • Like 1
  • 2 weeks later...
Posted
On 2017/6/24 at 0:02 AM, Aaryan said:

You are so good buddy! Thanks for your help. This is the thing I wanted! +1 for you ;)

 

Sincerely

Aaryan Kapoor

This message is great if you can share the code
we need flight map, please share this code to us also
 
  • 3 weeks later...
  • 2 months later...
Posted
1 hour ago, shakamonkey88 said:

OK, so I now have data in the "rawdata" column.  I need some help creating the altitude and speed graphs. Can anyone give me a hand please?

 

Regards,

 

Pete

How did you get the data in the rawdata column?

  • Moderators
Posted

Just a quick question - does anyone know what page calls the pirep view and route_map on /index.php/pireps/view/XXXX?

I am trying to change the layout but the routemap is being called from somewhere other than pirep_viewreport.php

  • 2 years later...
Posted
1 hour ago, zacmia said:

Any chance someone can help me out with this? Not very good at coding. 

Do you get rawdata from your ACARS system?

OR

Do you have Flight Position Tracker module by CrazyCreatives?

  • Like 1
  • 3 months later...
  • Administrators
Posted
1 hour ago, DarlanFernandes said:

Does anyone have any idea how to do this? I have the Crazy Creatives module

 

Be aware that the Crazy Creatives module is payware. We can not address your issues in this public forum. If you have issues, you will need to go to the CC forum (yes, we know that a response there is unlikely) or you can hope that a member here sees your post and sends you a PM.

Posted
16 hours ago, ProAvia said:

 

Be aware that the Crazy Creatives module is payware. We can not address your issues in this public forum. If you have issues, you will need to go to the CC forum (yes, we know that a response there is unlikely) or you can hope that a member here sees your post and sends you a PM.

You say it everywhere. Crazy creatives have no active support you are complaining about.

  • Moderators
Posted
18 minutes ago, DarlanFernandes said:

You say it everywhere. Crazy creatives have no active support you are complaining about.

It's not a complaint. It's a rule here and respecting a payware developers code. Just because they have no active support, doesn't give people the right to openly discuss, share, post code here from their payware modules. 

 

Sava's comment above tells you how to do it. 

 

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...