Jump to content

Auto Accept/Reject Pirep


Vangelis
 Share

Recommended Posts

Here is a complete Pirep with the criteria in brackets I need.

smartCARS version 2.1.16.0, 2015/8/21 UTC

[06:18:31] Preflight started, flying offline

[06:18:32] Flying UNITED Airlines-POSKY Boeing 757-200WL (USING WRONG LIVERY or AIRCRAFT)

[06:18:32] Engine 1 is on

[06:18:32] Engine 2 is on

[06:19:15] Flaps set to position 2

[06:19:27] Pushing back with 36063 lb of fuel

[06:20:35] Taxiing to runway

[06:24:01] Taking off

[06:24:24] Climbing, pitch: 6, roll: level, 157 kts (REJECT IF CLIMB PITCH IS MORE THAT 12)

[06:24:27] Gear lever raised at 41 ft at 167 kts

[06:24:33] Flaps set to position 0 at 137 ft at 174 kts

[06:48:56] Cruising at 34000ft, pitch: 2, 487 kts

[11:59:51] Descending

[12:12:10] Approaching

[12:12:33] Exceeded 250 KIAS below 10,000 feet MSL (EXCEED OVER 250 KNOTS BELOW 10,000 FT)

[12:15:03] Speed corrected at 6968 ft after a max speed of 309 kts

[12:29:09] Flaps set to position 1 at 3232 ft at 196 kts

[12:29:24] Flaps set to position 2 at 3273 ft at 181 kts

[12:30:43] Flaps set to position 3 at 3406 ft at 186 kts

[12:31:21] Sim paused

[03:41:14] Simulator connection reestablished

[03:41:29] Sim unpaused

[03:49:46] Flaps set to position 5 at 5220 ft at 172 kts

[03:49:58] Gear lever lowered at 5291 ft at 169 kts

[03:51:03] Final approach, 165 kts

[03:52:31] Touched down at -237 fpm, gear lever: down, pitch: 5, roll: 1 degrees right, 110 kts (LANDING PITCH MORE THAN 10)

[03:52:45] Flaps set to position 6

[03:53:19] Flaps set to position 0

[03:53:28] Landed in 5232 ft, fuel: 0 lb, weight: 206850 lb (LANDED WITH 0 LBS FUEL OR OVER 12000 LBS OF FUEL)

[03:53:28] Taxiing to gate

[03:53:51] The flight may now be ended

[03:53:51] Arrived, flight duration: 06:18

[03:54:15] Engine 1 is off

[03:54:15] Engine 2 is off

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

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!

Was it working before you installed this module? Can you check to see if the PIREP actually filed and verify that your smartCARS web scripts have been installed in the appropriate location.

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

I have this error

PirepAutoAccept/sidebar_PirepAutoAccept.tpl

Strict Standards: Non-static method PirepAcData :: get_criteria () Should not be called statically, $ this from incompatible Assuming context in / home / mundoairlines / www / admin / modules / PirepAuto Accept / PirepAuto Accept.php on line 52

PirepAcData.class.php was the core / common

the file

sidebar_PirepAutoAccept.tpl

I have not installed it

I do not button appears

ADD Criteria

1da061456dfa6fe61278404ccf527988o.jpg

1da061456dfa6fe61278404ccf527988o.jpg[/img]

Link to comment
Share on other sites

  • Moderators

Replace this:

public static function get_settings() {
$query = "SELECT *
FROM ".TABLE_PREFIX."autopirep_settings";
return DB::get_row($query);
}

with this one:

static function get_settings() {
$query = "SELECT *
FROM ".TABLE_PREFIX."autopirep_settings";
return DB::get_row($query);
}

Link to comment
Share on other sites

the problem continues

1bb5806d60d5be677127eb4d7cd82d1bo.jpg

/**
   * Pirep Auto Accept & Decline for PHPvms
   * For more information, visit www.baggelis.com
   *
   * Pirep Auto Accept & Decline is licenced under the following license:
   *   Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
   *   View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/
   *
   * @author Vangelis Boulasikis
   * @copyright Copyright (c) 2014, Vangelis Boulasikis
   * @link http://www.baggelis.com
   * @license http://creativecommons.org/licenses/by-nc-sa/3.0/
   * version released 7/5/2014
   */
   class PirepAcData extends Codondata {
    public function get_criteria() {
	    $query = "SELECT *
	    FROM ".TABLE_PREFIX."autopirep";
	    return DB::get_results($query);
    }
		    static function get_settings() {
    $query = "SELECT *
    FROM ".TABLE_PREFIX."autopirep_settings";
    return DB::get_row($query);
    }
    public static function getCriteriaById($id)
    {
	    $criteria = DB::get_row('SELECT * FROM '.TABLE_PREFIX.'autopirep
		    WHERE `id`=\''.$id.'\'');
	    return $criteria;
    }
    public function editSettings($setting_id,$moduleenabled,$landing_rate, $send_mail_to_admin, $send_mail_to_pilot, $admin_code)
    {
	    /*  $sql = "UPDATE ".TABLE_PREFIX."autopirep_settings
	    SET `landing_rate`='$landingrate', `sendmail_to_admin`='$sendmailtoadmin',`sendmail_to_pilot`='$sendmailtopilot', `admin_rejecting`=$admincode
	    WHERE setting_id=1";
	    $res = DB::query($sql);
	    if(DB::errno() != 0)
	    return false;

Link to comment
Share on other sites

  • Members

emm the error says about the function PirepAcData:get_criteria and not PirepAcData ::get_settings change this

public function get_criteria() {
				    $query = "SELECT *
				    FROM ".TABLE_PREFIX."autopirep";
				    return DB::get_results($query);
		    }

to

public static function get_criteria() {
				    $query = "SELECT *
				    FROM ".TABLE_PREFIX."autopirep";
				    return DB::get_results($query);
		    }

Link to comment
Share on other sites

Go to

admin/modules/PirepAutoAccept/PirepAutoAccept.php

and on line 20 change this

$this->set('sidebar', 'PirepAutoAccept/sidebar_PirepAutoAccept.tpl');

to this

$this->set('sidebar', 'PirepAutoAccept/sidebar_PirepAutoAccept.php');

then change the file

admin/templates/PirepAutoAccept/sidebar_PirepAutoAccept.tpl

to

admin/templates/PirepAutoAccept/sidebar_PirepAutoAccept.php

PirepAutoAccept - PHP.zip

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

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

×
×
  • Create New...