CPC900 Posted March 5, 2014 Report 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
Atherton Posted March 22, 2014 Report Posted March 22, 2014 How do I put criteria for different aircraft? Quote
VirtualTCX Posted March 23, 2014 Report Posted March 23, 2014 Works great! Is it possible to make it reject manual PIREPS? Quote
Members Vangelis Posted March 24, 2014 Author Members Report Posted March 24, 2014 On 3/22/2014 at 6:31 PM, Atherton said: How do I put criteria for different aircraft? What do you mean ? can you give an example ? Quote
Atherton Posted March 25, 2014 Report 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
Members Vangelis Posted March 26, 2014 Author Members Report 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
FSX30HD Posted March 26, 2014 Report 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
kkoseoglu Posted March 26, 2014 Report 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
kkoseoglu Posted March 26, 2014 Report 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
Members Vangelis Posted March 28, 2014 Author Members Report Posted March 28, 2014 On 3/26/2014 at 5:15 PM, FSX30HD said: 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. On 3/26/2014 at 10:00 PM, kkoseoglu said: 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
FSX30HD Posted March 28, 2014 Report Posted March 28, 2014 On 3/28/2014 at 2:02 PM, Vangelis said: 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
FSX30HD Posted March 28, 2014 Report Posted March 28, 2014 Sorry for double post an Moderator can remove this message please ? Regards Quote
Members Vangelis Posted March 28, 2014 Author Members Report 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
FSX30HD Posted March 28, 2014 Report Posted March 28, 2014 On 3/28/2014 at 6:29 PM, Vangelis said: 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
Members Vangelis Posted March 28, 2014 Author Members Report 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
kkoseoglu Posted March 29, 2014 Report 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
Members Vangelis Posted April 2, 2014 Author Members Report 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
kkoseoglu Posted April 3, 2014 Report 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
CedGauche Posted May 4, 2014 Report 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
Members Vangelis Posted May 7, 2014 Author Members Report 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 On 5/4/2014 at 9:41 AM, CedGauche said: 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
clock Posted June 6, 2014 Report 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
Members Vangelis Posted June 6, 2014 Author Members Report 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
Gabriel Fernandez Posted September 19, 2014 Report 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
jusromaine Posted September 20, 2014 Report 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
Members Vangelis Posted September 20, 2014 Author Members Report Posted September 20, 2014 On 9/19/2014 at 5:11 AM, Gabriel Fernandez said: 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
Gabriel Fernandez Posted September 21, 2014 Report Posted September 21, 2014 I get this error trying instal on DB. Quote consulta SQL:DROP TABLE IF EXISTS `phpvms_autopirep` ; Mensagens do MySQL : #1046 - No database selected Quote
Members Vangelis Posted September 22, 2014 Author Members Report 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
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.