Jump to content

Recommended Posts

  • Members
Posted (edited)

For example if you want this pirep to b declined yo can add a criteria like -> maximum speed of this aircraft is very dangerous or -> forgot to call a mayday

it is copy paste the text from your log and the module will search for this words and if exist then the pirep is declined

As each acars tracker has diferent text then you must create new criteria

Edited by Vangelis
Posted (edited)

omg...i think we are talking about different things.... :-)

not one pirep will be accepted automatically. no xacars and also no clean FS-Passenger PIREP.

Also perfect really good flights are not working.

here a log from xacars: (i added a *.txt for uploading)

but i cant read anything inside the file....

F4B169.xap.txt

Edited by Melli
  • 2 weeks later...
  • 3 weeks later...
  • Moderators
Posted

Help!!

 

Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135

Settings Are Saved


Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 145


Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 147

 

When I put landing rate 800 and enabled the module (I'm using php 5.3)

  • Administrators
Posted
2 hours ago, joooseb said:

Help!!

 

Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135

Settings Are Saved


Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 145


Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 147

 

When I put landing rate 800 and enabled the module (I'm using php 5.3)

See my reply to your post 'Expense Error' here:

 

  • 2 weeks later...
Posted

Hello,

I want to use this autopirep. When I was completed install this.

I've some error when I tried to enable.

Pic:

67106ed653e342c1b4a3a9effb0b2f4e.jpeg

 

Any one can you help me?

 

For your information, our VA isnot using pilot client. I use IPS from Jasper Bussemaker to check our pilot online and record flight data automatically.

 

I want to use this Auto pirep to auto accepted or rejected when Pilot not Online in Network.

Just it, no other parameters.

 

 

Regards.

  • 2 months later...
Posted

I have a 15 year old VA company in Brazil recently I change for phpVMS control my VA but until now I can't finde how make a Auto pirep work.

Don't have errors message but don't work.

Can you help me

  • 3 months later...
Posted
On 23/03/2017 at 5:15 PM, sac001 said:

I have a 15 year old VA company in Brazil recently I change for phpVMS control my VA but until now I can't finde how make a Auto pirep work.

Don't have errors message but don't work.

Can you help me

I have a 15 year old VA company in Brazil recently I change for phpVMS control my VA but until now I can't finde how make a Auto pirep work.

Don't have errors message but don't work.

Can you help me

  • 3 weeks later...
Posted (edited)
On 05/12/2015 at 5:53 PM, danydj96 said:

Hello,

I have recently installed this module but once I submit the PIREP it says to me that:

post-47110-0-73018000-1449337980_thumb.png

Could you please help me?

Thanks a lot!

Hi 

 

 I get this error. Can anyone say if it was fixed. Cant seem to find a fix in this thread @Vangelis

 

Many thanks

Edited by AJCWebServices
Posted (edited)

Ok I have been doing a little investigating into this error and my smartcars logs come up with 

 Call to undefined method PilotData::UpdatePilotPay() in <b>/home/virtualei/crew.virtualei.net/core/common/PirepAcData.class.php</b> on line <b>170</b><br />

 

Any help please

I used @web541 zipped version of PirepAcData.class.php

I am missing a function I think in PirepAcData.class.php but I dont know how to find it :( 

 public static function approve_pirep_post($id)
        {
            $pirepid = $id;   

            if($pirepid == '') return;

            $pirep_details  = PIREPData::GetReportDetails($pirepid);

            # See if it's already been accepted
            if(intval($pirep_details->accepted) == PIREP_ACCEPTED) return;

            # Update pilot stats
            SchedulesData::IncrementFlownCount($pirep_details->code, $pirep_details->flightnum);
            PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted
            PilotData::UpdateFlightData($pirep_details->pilotid, $pirep_details->flighttime, 1);
            PilotData::UpdatePilotPay($pirep_details->pilotid, $pirep_details->flighttime);

            RanksData::CalculateUpdatePilotRank($pirep_details->pilotid);
            PilotData::GenerateSignature($pirep_details->pilotid);
            StatsData::UpdateTotalHours();



            # Call the event
            CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details);
        }

 

PirepAcData.class.zip

Edited by AJCWebServices
Added file
Posted

What version of phpVMS are you using?

If you're using phpVMS 5.5.x, try replacing that function with this one

public static function approve_pirep_post($id)
{
	$pirepid = $id;   

	if($pirepid == '') return;

	$pirep_details  = PIREPData::GetReportDetails($pirepid);

	# See if it's already been accepted
	if(intval($pirep_details->accepted) == PIREP_ACCEPTED) return;

	PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted
	LogData::addLog(Auth::$userinfo->pilotid, 'Approved PIREP #' . $pirepid);

	# Call the event
	CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details);
}

 

  • Thanks 1
  • 2 weeks later...
Posted
On 29/07/2017 at 9:06 PM, AJCWebServices said:

Hi web541

Yes I am using 5.5

That function has worked. Thank you very much for your help. Much appreciated

 

Alan

Could you make the updated module available for version 5.5 of phpvms?

Posted (edited)
On 25/01/2014 at 9:11 PM, Vangelis said:

You placed it in the wrong function it should in PirepData.class (That is correct)

under filereport function at some point in this function put it between


# Update any pilot's information
$pilotinfo = PilotData::getPilotData($pirepdata['pilotid']);
$pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
PilotData::UpdateLastPIREPDate($pilotinfo->pilotid);
 

 

and

 


# Send an email to the admin that a PIREP was submitted
$sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})";
$message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n"
."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n"
."Aircraft: {$pirepdata['aircraft']}\n"
."Flight Time: {$pirepdata['flighttime']}\n"
."Filed using: {$pirepdata['source']}\n\n"
."Comment: {$pirepdata['comment']}";

$email = Config::Get('EMAIL_NEW_PIREP');
if(empty($email))
{
$email = ADMIN_EMAIL;
}

Util::SendEmail($email, $sub, $message);


CentralData::send_pirep($pirepid);

// Reset this ID back
DB::$insert_id = $pirepid;
self::$pirepid = $pirepid;
return true;

}

 

 

so it should be something like this

 


# Update any pilot's information
 $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']);
 $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
 PilotData::UpdateLastPIREPDate($pilotinfo->pilotid);
  FacebookPost::FacebookPostFlight($pirepid);
	 PirepAcData::search($pirepid);

 # Send an email to the admin that a PIREP was submitted
 $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})";
 $message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n"
   ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n"
   ."Aircraft: {$pirepdata['aircraft']}\n"
   ."Flight Time: {$pirepdata['flighttime']}\n"
   ."Filed using: {$pirepdata['source']}\n\n"
   ."Comment: {$pirepdata['comment']}";

 $email = Config::Get('EMAIL_NEW_PIREP');
 if(empty($email))
 {
  $email = ADMIN_EMAIL;
 }

 Util::SendEmail($email, $sub, $message);


 CentralData::send_pirep($pirepid);

 // Reset this ID back
 DB::$insert_id = $pirepid;
 self::$pirepid = $pirepid;
 return true;

}

 

 

That is why it doesnt work

Make sure you have this correct. Also your landing rate should be minus eg -500

Edited by AJCWebServices
added minus tip
  • 2 weeks later...
Posted
# Update any pilot's information
 $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']);
 $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
 PilotData::UpdateLastPIREPDate($pilotinfo->pilotid);
----->  FacebookPost::FacebookPostFlight($pirepid);

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