phpvms / phpvms_v2

Virtual Airline Management (not maintained)
http://www.phpvms.net
BSD 3-Clause "New" or "Revised" License
41 stars 46 forks source link

FSKEEPER sends PIREPS with fuel in kg, but phpvms converts to lbs #87

Open macmonty opened 11 years ago

macmonty commented 11 years ago

Hello, i use fskeeper like ACARS service, but always the fuel in phpvms it's on lbs converted.

When export the flight in keeper, the weight fuel it's on kg, but when it's imported in phpvms they convert this value to lbs.

I modified the local.config.php and the admin.config.php with this settings:

Units settings

Config::Set('WeightUnit', '0'); # 0=Kg 1=lbs Config::Set('DistanceUnit', '2'); # 0=KM 1= Miles 2=NMiles Config::Set('SpeedUnit', '1'); # 0=Km/H 1=Kts Config::Set('AltUnit', '1'); # 0=Meter 1=Feet Config::Set('LiquidUnit', '2'); # 0=liter 1=gal 2=kg 3=lbs Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message Config::Set('LIQUID_UNIT_NAMES', array('liter','gal','kg','lbs'));

But the phpvms PIREPS the fuel stay in lbs.

Regards

Oxymoron290 commented 11 years ago

Where is admin.config.php? or did you mean app.config.php

macmonty commented 11 years ago

Sorry, it's app.config.php, i write my own code to select the gross unit.

Regards

2013/2/4 Timothy Sturm notifications@github.com

Where is admin.config.php? or did you mean app.config.php

— Reply to this email directly or view it on GitHubhttps://github.com/nshahzad/phpVMS/issues/87#issuecomment-13095659.

Oxymoron290 commented 11 years ago

I would recommend, instead of changing the values in app.config.php, to move them to local.config.php and change the values there.

Oxymoron290 commented 11 years ago

has the issue been resolved?