ang143 Posted Saturday at 03:58 PM Report Posted Saturday at 03:58 PM Hello, I'm hoping for a bit of nudge in the right direction, as the subject says I'd like VMSAcars to show the speed when certain events happen (gear raised/lowered flaps raised/lowered). I have read through the following pages, I managed to following the instructions and do the example, https://docs.phpvms.net/acars/customizing/customization & https://docs.phpvms.net/acars/customizing/tutorial To be honest I'm not really sure what I'm doing or if it is even possible. I have VMSAcars Premium & I am running the latest stable release of VMSAcars. Thank you for any help or pointers Quote
DisposableHero Posted Saturday at 05:58 PM Report Posted Saturday at 05:58 PM Hi @ang143 What you want or seek is already a part of vmsAcars log entries, you can see an example below from one of my old reports. Every logged action was being reported back to your phpVMS with location, heading, altitude and speed value. And this is what it looks like nowadays with latest version of vmsAcars. Technically speaking, the values are still reported back and saved in your database, just the textual display is removed (and i think this is better because it gives us more control over the display). Depending on your needs you can still reach them via some custom work (like displaying only, evaluating etc.) As an example, by editing your pireps/show.blade.php you can have something like this. I just added some fields to show you the possibilities, location is there too. @foreach($pirep->acars_logs->sortBy('created_at') as $log) <tr> <td class="col-md-3">{{ $log->created_at->format('d.M.Y H:i') }}</td> <td>{{ $log->log }}</td> <td>{{ $log->altitude_agl.'ft agl | '.$log->altitude_msl.'ft msl' }}</td> <td>{{ $log->gs.'kt gs' }}</td> <td>{{ $log->ias.'kt ias' }}</td> </tr> @endforeach Hope this helps, safe flights. Quote
ang143 Posted Saturday at 08:41 PM Author Report Posted Saturday at 08:41 PM Hello DisposableHero, The Hero part is certainly very accurate!! Thank you so much for turning me in the correct direction, I don't think I could have been more off track with the direction I was going if I had tried. I appreciate you taking the time out of your day with pictures and a code example to help me out. Thank You so so much!!! 1 Quote
DisposableHero Posted Saturday at 08:55 PM Report Posted Saturday at 08:55 PM My pleasure, glad it helped a little and gave you some direction If you need to use them for evaluation purposes, I mean like having a check for gear or flap operation speeds you have two options; 1. Custom rule (vmsAcars premium feature, still being enhanced by development) 2. Custom module (running at web, can run when a pirep gets filed and check log entries for some specific text and then compare speed/altitude, apply a penalty or write a comment etc.) Above example is for the web, to display stuff but can give you ideas about how to access the log entries. Good luck for the rest 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.