CPC900 Posted March 5, 2014 Report Share Posted March 5, 2014 Yes, I will try the module again; it might help because I get logged off all the time when trying to approve pireps Quote Link to comment Share on other sites More sharing options...
Atherton Posted March 15, 2014 Report Share Posted March 15, 2014 Thank you very much! Quote Link to comment Share on other sites More sharing options...
Atherton Posted March 22, 2014 Report Share Posted March 22, 2014 How do I put criteria for different aircraft? Quote Link to comment Share on other sites More sharing options...
VirtualTCX Posted March 23, 2014 Report Share Posted March 23, 2014 Works great! Is it possible to make it reject manual PIREPS? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted March 24, 2014 Author Members Report Share Posted March 24, 2014 How do I put criteria for different aircraft? What do you mean ? can you give an example ? Quote Link to comment Share on other sites More sharing options...
Atherton Posted March 25, 2014 Report Share Posted March 25, 2014 Example: The aircraft B777 limit of the flap 5 is 235 knots and the limit of the A340 flap 2 is: 225 knots! Thanks! Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted March 26, 2014 Author Members Report Share Posted March 26, 2014 The criteria reads the log file if your acars exports this the you can add it as a normal criteria Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted March 26, 2014 Report Share Posted March 26, 2014 Hi Vangelis, Thanks for your work Some issues: Bids are is always present and tour doesn't increment Pirep Have you an idea for that ? Regards Fred Quote Link to comment Share on other sites More sharing options...
kkoseoglu Posted March 26, 2014 Report Share Posted March 26, 2014 Thank you very much. Tested and It is working. Now, Happy Wings Va is using AutoPIREP system. Regards, Kıvanç Quote Link to comment Share on other sites More sharing options...
kkoseoglu Posted March 26, 2014 Report Share Posted March 26, 2014 Also, I changed all tpl extension files to .php I also edit pirepAutoAccept.php file find and replace all tpl to php. Regards, Kıvanç Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted March 28, 2014 Author Members Report Share Posted March 28, 2014 Hi Vangelis, Thanks for your work Some issues: Bids are is always present and tour doesn't increment Pirep Have you an idea for that ? Regards Fred AutoPirep has nothing to do with the bids so unfortunatly i have no idea what the problem might be. Also, I changed all tpl extension files to .php I also edit pirepAutoAccept.php file find and replace all tpl to php. Regards, Kıvanç Nice to hear that Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted March 28, 2014 Report Share Posted March 28, 2014 AutoPirep has nothing to do with the bids so unfortunatly i have no idea what the problem might be. part of my PIREPData.class.php # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); PirepAcData::search($pirepid); if (Config::Get('EMAIL_SEND_PIREP') === true) { # 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); } /* Add this into the activity feed */ $message = Lang::get('activity.new.pirep'); foreach($pirepdata as $key=>$value) { $message = str_replace('$'.$key, $value, $message); } # Add it to the activity feed ActivityData::addActivity(array( 'pilotid' => $pirepdata['pilotid'], 'type' => ACTIVITY_NEW_PIREP, 'refid' => $pirepid, 'message' => htmlentities($message), )); /* Now send data to vaCentral */ //CentralData::send_pirep($pirepid); // Reset this ID back DB::$insert_id = $pirepid; self::$pirepid = $pirepid; return true; } Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted March 28, 2014 Report Share Posted March 28, 2014 Sorry for double post an Moderator can remove this message please ? Regards Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted March 28, 2014 Author Members Report Share Posted March 28, 2014 If you uncomment this line PirepAcData::search($pirepid) and you file a pirep what will happen ? will the bid deleted or not ? if still the bid is there then i would sugest you open a new post as this will indicate that the fault is not of Autopirep ps i am now looking how the delete bid is normaly working but havent find it yet Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted March 28, 2014 Report Share Posted March 28, 2014 If you uncomment this line PirepAcData::search($pirepid) and you file a pirep what will happen ? will the bid deleted or not ? yes all working well the tour update and the bid is deleted Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted March 28, 2014 Author Members Report Share Posted March 28, 2014 Can anybody else please report if they are expirencing the same problem ? also what version of phpvms are you using ? Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted March 28, 2014 Report Share Posted March 28, 2014 2.1.936 Quote Link to comment Share on other sites More sharing options...
kkoseoglu Posted March 29, 2014 Report Share Posted March 29, 2014 Hello Vangelis, I experience the same bid problem. Bids are not deleted. Also, We are using customized kacars. When I put PirepAcData::search($pirepid) as well as yours and when I send my PIREP to the website, the PIREP is sended but we face this error. Do you have any idea? I use Simpilotgroup Extended Version 1.3 . Thanks Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted April 2, 2014 Author Members Report Share Posted April 2, 2014 Somewhere while filing the pirep there is an error the only thats comes to my mind that you might paste it in the wrong line Quote Link to comment Share on other sites More sharing options...
kkoseoglu Posted April 3, 2014 Report Share Posted April 3, 2014 Hello here is my file // Add the comment if its not blank if ($comment != '') { self::addComment($pirepid, $pirepdata['pilotid'], $comment); } # Update the financial information for the PIREP, true to refresh fuel self::PopulatePIREPFinance($pirepid, true); # Do other assorted tasks that are along with a PIREP filing # Update the flown count for that route self::UpdatePIREPFeed(); # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); PirepAcData::search($pirepid); if (Config::Get('EMAIL_SEND_PIREP') === true) { # 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" ."Landing Rate: {$pirepdata['landingrate']}\n"."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$comment}\n\n" ."Click to approve this pirep (admin must be signed in):\n" .adminurl('/pirepadmin/approvepirep/'.$pirepid); $email = Config::Get('EMAIL_NEW_PIREP'); if (empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); } /* Add this into the activity feed */ $message = Lang::get('activity.new.pirep'); foreach($pirepdata as $key=>$value) { $message = str_replace('$'.$key, $value, $message); } # Add it to the activity feed ActivityData::addActivity(array( 'pilotid' => $pirepdata['pilotid'], 'type' => ACTIVITY_NEW_PIREP, 'refid' => $pirepid, 'message' => htmlentities($message), )); /* Now send data to vaCentral */ CentralData::send_pirep($pirepid); // Reset this ID back DB::$insert_id = $pirepid; self::$pirepid = $pirepid; return $pirepid; } Quote Link to comment Share on other sites More sharing options...
CedGauche Posted May 4, 2014 Report Share Posted May 4, 2014 I like this addon, but is it possible to disable auto pirep with a switch in the admin menu in the next versions? I need this for maintenance options when I dont want that pilots send their pireps. Also it would be a nice feature if auto pirept could check the aircraft.bin fileinformationen with the scheduled aircraft, so if a C172 ist filed and the airfile in kacars reports a B737, the flight will be reejected. Thank you for your work Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted May 7, 2014 Author Members Report Share Posted May 7, 2014 A new version is up and a switch in the admin interface is included in order to enable or disable the module. You will find it at http://baggelis.com/index.php?option=com_jdownloads&Itemid=0&view=viewcategory&catid=4 I like this addon, but is it possible to disable auto pirep with a switch in the admin menu in the next versions? I need this for maintenance options when I dont want that pilots send their pireps. Also it would be a nice feature if auto pirept could check the aircraft.bin fileinformationen with the scheduled aircraft, so if a C172 ist filed and the airfile in kacars reports a B737, the flight will be reejected. Thank you for your work This is not possible as it depends on the acars software that you are using the module just reads the filed pirep and the aircraft.bin gives not the same name in all airplanes. Quote Link to comment Share on other sites More sharing options...
CedGauche Posted May 7, 2014 Report Share Posted May 7, 2014 Thank you Vangelis Quote Link to comment Share on other sites More sharing options...
clock Posted June 6, 2014 Report Share Posted June 6, 2014 Can you please advise as to where you get the information for setting the criteria - I have searched high and low and cant find it anywhere? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 6, 2014 Author Members Report Share Posted June 6, 2014 the criteria is created by copying thet text output of you acars for example if acars says 1123 landing gear down and you want to decline the pirep based of that then you will make a new criteria with value gear down Quote Link to comment Share on other sites More sharing options...
Gabriel Fernandez Posted September 19, 2014 Report Share Posted September 19, 2014 I just install this module, but the pirep still waiting for approval. Any sugestion? I need change the value of auto acepted pirep in local config .php to true? Quote Link to comment Share on other sites More sharing options...
jusromaine Posted September 20, 2014 Report Share Posted September 20, 2014 what am I doing wrong, I have downloaded your V2 "I think it is..." and got every thing installed did it by hand not by the plugin manager. and also installed the sql file in the data base now. I put in the link for the module in my admin tpl in the preps section. I click on it. and it shows me the screen to Module Enabled, Admin code etc...... I would fill all that in and click save. Now it will show that it has been saved but when i click again it will show the same showing the extra settings as if i haven't done it... Then also I can click the add criteria and put in for sim rate and do all that and click add or save.... It will show that it did but when i click again it will still say no criteria have been added and check in the data base and nothing is there so nothing was saved at all. What and I doing wrong I have re-uploaded twice and nothing..... Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 20, 2014 Author Members Report Share Posted September 20, 2014 I just install this module, but the pirep still waiting for approval. Any sugestion? I need change the value of auto acepted pirep in local config .php to true? There is no need to edit anything in local.config.php Just make sure that you have followed the information . Quote Link to comment Share on other sites More sharing options...
Gabriel Fernandez Posted September 21, 2014 Report Share Posted September 21, 2014 I get this error trying instal on DB. consulta SQL:DROP TABLE IF EXISTS `phpvms_autopirep` ; Mensagens do MySQL : #1046 - No database selected Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 22, 2014 Author Members Report Share Posted September 22, 2014 Make sure you have selected your database . Have a look on this answer http://stackoverflow.com/questions/19161219/no-database-selected-when-running-procedures Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.