Jump to content

Recommended Posts

Posted

Hi after reading V7 Guide How to set up fares I would like to set up my fares using the simbrief default profiles and 4 fares similar to the guide Economy,Business, First Class and Cargo.

 

Does anyone know how we can programatically retrieve the simbrief default profiles aircrafts data so I can build de fares by the aircraft ICAO.

 

Each subfleet maps to a default simbrief profile by the aircraft ICAO. 

 

Any Freighter aircraft would have its own subfleet.

 

I just want to avoid doing this one by one. 😬

 

Thanks for the assistance.

Posted

I don't think that I understood the main aim here, will try to provide some answers though :)

 

1. If you want to dynamically check the simbrief profile, thus the selected addon aircraft and read its capacity then apply it back to phpVMS (for automatic random payload generation), sorry this is not possible.

 

2. If you have subfleets defined for each ICAO type (which as you said are tied to some simbrief airframes) then you can (and have to) adjust their fare capacities manually once (as described in other guides). Sorry but this is admin work, needs to be done.

 

As the addons differ in capacities, it will not be logical to develop something to read simbrief profiles and then write them to phpVMS fares (to reduce admin work). Imagine a code reading iFly profile and adjusting the fares according to its seat config and then same code will read a Bredok profile which is totally different from iFly, same will happen while reading PMDG profiles and then reading a Zibo profile etc. 

 

Even if someone tries to spend some time to develop something for this, it will be practically useless and create more problems ;)

 

Hope this helps

  • Like 1
Posted (edited)

Hi @DisposableHero thanks for the reply.  I want to do #2 that initial fare setup.  I haven't tied the subfleets to specific simbrief airframes. When I do the briefing I get the dropdown.

 

I would like to at least design generic subfleets which have fares based on the simbrief default profiles. Later as specific subfleets get defined for specific add ons I can work the setup just for that. 

 

I mainly wanted to do an initial setup like this for example

 

Here is and idea of what I'm trying to achieve https://github.com/aerocaribbeanva/phpvms-utilities/tree/main/phpvms7-fares

 

What I'm trying is to read the default simbrief profiles to define the fares. For subfleets for specific add ons I can create the fares with that specific aircraft simbrief profile

 

Edited by a7c12a5
Posted

As far as I know SimBrief does not have seat configuration definition and it can differ from airline to airline, and again as far as I know you do not need an API key to fetch the default profiles.

 

I do define my fares according to the airline I simulate, I do not care what the addon provides at that stage because they do try to provide a single layout which can suit most of their users.

 

Imagine it like Fenix providing a 220 seat A321, but the airline I do simulate has 20+180 for example, thus 200 seats max. Also opposite can be faced, the airline you try to simulate can have a special config of 230 pax (all economy on an A321, terrible config but there are companies using that), but the addon can give you 219 only.

 

Thus reading something from SimBrief and then converting it to v7 fares is something I would never do (even if I can, I would not go that way), I do define my fares according to the real airline, then advise my pilots to match the Traffic Load or ZFW (if the addon is not providing enough seats or cargo space).

 

Good luck with the script :)

  • Like 1
Posted

Yes that is what I wanted just define some basic fares and at least do them programmatically. Since the briefing would pick up the default profiles most of the time that would work great. 

 

The seat configuration is something I defined outside of simbrief and based on the max pax from simbrief I can adjust the fare for the subfleet.

 

The information I need is available but I probably need to use php to use the simbrief api. Unless simbrief can provide me a json endpoint where I can retrieve the aircraft data by the icao or internal id.

 

Thanks for the input @DisposableHero. I'll let you know if I'm able to do something. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...