Git Product home page Git Product logo

pmacars's Introduction

pmacars

simple python ACARS utility for x-plane

background

after x-plane and vatsim flights, it would be great to have an automated way to submit your flight detals to your virtual airline using simple and lightweight, non-intrusive command line utility, based on existing data fields from x-plane and vatsim

sample usage

  1. Set the x-plane data output to file (Data.txt) for following data fields as documented at https://www.x-plane.com/kb/data-set-output-table/
    real_time,totl_time,missn_time,timer_time,zulu_time,local_time,hobbs_time,
    Vind_kias,Vind_keas,Vtrue_ktas,Vtrue_ktgs,Vind_mph,Vtrue_mphas,Vtrue_mphgs,
    gear_0/1,wbrak_set,lbrak_add,rbrak_add,wbrak_part,N1_1_pcnt,N1_2_pcnt,N2_1_pcnt,N2_2_pcnt,
    fuel1_lb,fuel2_lb,fuel3_lb,fuel4_lb,fuel5_lb,fuel6_lb,
    empty_lb,payld_lb,fuel_totlb,jetti_lb,curnt_lb,maxim_lb,cg_ftref,gear_lb,gear_lb,gear_lb
  1. Optionally, connect to Vatsim, file your flight plan, do the Vatsim things...

  2. Fly

  3. Land. Possibly in one piece. Shut down the engines. Have a cigar. Stay connected to the Vatsim.

  4. Start the pmacars: python pmacars.py <full_path_to_xplane_data_txt> <your_vatsim_pilot_id>. Pmacars will read your vatsim flight data. DO NOT exit pmacars. It still has to read xplane data file...

  5. Exit X-Plane. This is mandatory, for X-Plane to flush and complete the Data.txt file. This will also disconnect from Vatsim, at least for some vatsim clients. That is ok, we already have vatsim flight data.

  6. As prompted by still running pmacars, press ENTER and have pmacars read the xplane data.txt

  7. Observe the output and use it to submit your flight details to your virtual airline

  8. To be continued... See Issues under this project...

pmacars's People

Contributors

rsimac avatar

Stargazers

 avatar

Watchers

 avatar

pmacars's Issues

Well, implement it

Implement an command line utility to process the xplane data.txt output file, after the flight, and to have the human readable, pretty output, containing data fields required by your favourite virtual airline.

Also make the code open enough to allow modifying such output and forwarding to virtual airline's automated flight log server or web page.

Document the xplane data fields and the procedure on how to set them and where to look for data.txt file.

Add aavirtual form data and try to push it

My virtual airline aavirtual.com has a neat web form to submit our flight log. Although the page is very simple, this issue should cover the effort to automate this table filling and possibly posting to the site using the data parsed in pmacars.py

These are the form fields and sample data found at https://aavirtual.com/pages.php?name=Submit_FREP&frepaction=submit

_Month: NOV
_Day: 10
_Year: 2021
Flight_Number: AALTEST
Aircraft_Used: Airbus A320-200
Departure_Airport: KDFW
Arrival_Airport: KRDU
PB_HH: 21
PB_MM: 21
SD_HH: 11
SD_MM: 11
Gfi_Flight: NO
Vatsim_Flight: NO
vatsim_id: 904506
Total_Block_Time: 13.8
Comments: testing
EmailCopy: no
YourEmail: testin@email
add: Submit FREP

Calculate fuel efficiency

After each flight, calculate the fuel efficiency.

Define fuel efficiency as...

  • amount (volume/weight?) of fuel used
  • per distance : flown, direct (to compare various flight plans etc)
  • per weight of useful weight transported, that is both pax and cargo

If really picky, consider starting dark and cold, or external power only, and ending the measuring after all is shut down, including apu.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.