Jump to content

DisposableHero

Members
  • Posts

    598
  • Joined

  • Last visited

  • Days Won

    93

Posts posted by DisposableHero

  1. 1 minute ago, JGK said:

    Thanks for your reply. 

    • PHPVMS version 7.0.0-beta.4
    • Experiencing the issues both on a local development environment as on a vps. 
    • I have installed DisposableBasic

    Further all default. 

     

    Honestly... beta.4 ? It is almost 3 years old and how on earth are you able to use Dispo Basic with it, I never tested my addons with beta.4 and they were never designed to work properly with it ;) Are you really on beta.4 or it was just a typo :)

     

    If this is not a typo, I would kindly and urgently advise to upgrade to at least beta.5 (I would say latest dev, but beta.5 is ok too), with module and themes being updated of course.

     

    Best wishes,

    • Thanks 1
  2. 7 hours ago, JGK said:

    in the meantime i was able to reduce the airports table down to 2700 airports and reduced the flights table down to 3000 flights, still extreme loading times, up to 32 seconds for an airport like Amsterdam with 500 inbound and 500 outbound flights. 

     

    Running the latest version of phpvms, php 8.1 and mariaDB. 

     

    Debugbar itself adds some more time to the process, but it is nice to see the queries being run. Considering that the flights page is paginated and loads up maybe max 20 flights, how you ended up 112 queries is strange. 

     

    Are you using an addon theme or default theme (not altered, pure default)? Are you using any modules being loaded at flights page, any custom widgets etc.? Why asking this, because I saw some addon themes loading up models in blades, doing direct database queries in loops, for some eye candy stuff which are already provided by v7 internally mostly.

     

    Example; I am using a custom theme, my airport details page loads up 4 additional widgets including a flights map, checking LTFM which has 600 inbound / 600 outbound flights and lots of pireps, page loads up fine in 2-3 seconds max, not something like your EHAM.

     

    image.png.fa6714f3d8936677eac4b1611ebfca3f.png

     

    image.thumb.png.79b10c4dddfa53bb8b01e522e7feb21b.png

     

    Airport Details Page; (+4 widgets)

    image.png.8f1c5de954d4eb6b6c74170f7eea3267.png

     

    Flights Page; (+2 widgets)

    image.png.3d769760c96afb6ebda1af6437efb778.png

     

    Profile Page; (+40 widgets or more, did not counted them one by one)

    image.png.e5061350f8f8e241d41accd8f501aec2.png

     

    All above pages do load around 3 seconds max, as an example the last one (profile) was loaded in 2.28 seconds including the debugbar's own load and time loses. In a live server where it is not being called, my results are much nicer.

     

    Some of the duplicated queries are from the widgets placed (Aircraft, Pilots, Flight Reports, Personal Stats, Maps etc), they may be a single widget being loaded several times with different configurations to get different data, so some of their db queries are same/duplicated etc.

     

    Anyway, if you can provide some more info maybe we can talk about possible solutions / improvements.

  3. 22 hours ago, notleks2411 said:

    Hi all,

     

    I am looking at the possibility of starting a VA using phpVMS (looks really good!). Is it possible and/or productive to run the software on a Raspberry Pi 4B? I have been able to run applications on it before like Apache2, MariaDB, php, WordPress, etc etc. I am not sure though if phpVMS has any other specific machine requirements. I wouldn't expect to be hosting a huge VA or even permanent on a Pi. But somewhere to start until such time an upgrade may be needed.

     

    (EDIT: another question. how much mass storage is ideal, either RP4 or a "normal" computer? How much storage expansion could I potentially expect to use overtime with PIREPs being stored?)


    Thanks! 😄

     

    As long as you can run a webserver on a device and fulfill server requirements, it can run... It does not require a specific hardware on the server, of course more cpu power and ram assigned to the servers will give you a better performance during runtime.

     

    Disk space depends on specially the database size, files on the server (phpvms v7, themes, modules etc) will not need that much space (say maybe max 100 mb for them), rest will be database space (which will be dynamic as you can imagine).

     

    If you did run apache, php8, mariadb etc. on your Raspberry device before, why not doing the same for v7 and start testing ;) Basic requirements are listed here

     

    Good luck

    • Like 1
  4. Why are you adding a new airport for an already existing real airport with a new non-standard (fake) icao code ? This is the main question.

     

    Just add LECH to your phpvms v7 database, either by lookup or manually then you can start using it with vmsAcars too.

     

    Good luck

    • Thanks 1
  5. 3 hours ago, CRAZYL0O7ER said:

    Is there any way to create your own language?
    For example: Hungarian? I saw the lang folder but what exactly do I have to do there?

     

    Translate as expected, nothing more... Check other folders (like de, fr, it, es-es) and replicate what is done there for your language :) That simple it is.

     

    Good luck and God speed

    • Thanks 1
  6. 8 hours ago, jonbeckett said:

    Hi all,

     

    We have just started an airline and went with pounds and dollars to begin with because it made everything straightforward. We're considering switching to kilograms and euros though - and wondered if anybody else has switched - and what was involved.

     

    I'm guessing we would need to take the airline offline while doing it, and run some queries to convert all of the weights, rates, etc across all of the affected tables.

     

    As I said - wondering if anybody else has already done it in the past.

     

     

    Why wondering, just do it and do it as much as you want and whenever you want.

     

    Critical values are always saved in internal units (like pirep distances, weights, fuel etc)

     

    What you see at admin settings are for display only, like displaying the distances in km or displaying the fuel values in kg etc. Not for database operations.

     

    Enjoy

    • Thanks 1
  7. 1 hour ago, perryfincher said:

    Is it possible that the flights table check for duplicates only comparing flight number, dep icao, arri icao, and subfleet?

    If that is the case, is it possible to have it include route code, leg, and dep time as well as arrival times?

     

    I kindly asked you the version you are running/using one week ago, and that had a reason :( In early builds we had a bug in that duplicate check and it was skipping some flights, latest build is ok. Both import and admin area uses same duplicate checks, which allows more flexibility for schedule planning.

     

    If you are not on the latest dev yet, consider updating your v7 and try again, it may help. Also check your logs for any clues about import problems, skips etc.

     

    Good luck

  8. Did you checked the log (for errors or notes during import) ?

    Which version you are on ?

    Did you checked the database (via phpMyAdmin or similar workbench tool) ?

     

    It is possible that some of those flights may be skipped (or updated).

     

    Latest dev build allows more flexibility during imports and duplicate checks (which will result an update instead of an insert on old versions like beta.5 or earlier)

     

    Hope this helps, good luck

  9. 1062 Duplicate entry 'KPVD' for key 'PRIMARY'

     

    Are you using KPVD both as destination and alternate in a flight you are trying to import. Or are you somehow using IATA codes somewhere in your schedule ? (Which can also cause problems)

     

    Looks like somehow it tries to insert it twice in a row (which is strange), normally we expect it to update or skip if an airport is known and in your database.

  10. Nope you are not missing anything :) 

     

    Fares based on distance or time (also expenses based on them) was something spoken about, but they never went into proper feature requests, thus never worked on.

     

    At the meantime, lots of us developed automated fare stuff for our selves, thus not thought about it in general anymore. I had something built in my module, technically based on distance, tried to implement it in v7 but latest changes done to fare logic was making it tricky to implement, so I stopped working on it.

    • Like 1
  11. I am using a similar logic (capable optimum range vs flight distance) and I think it is the "best acceptable" way to do auto assignments ;)

     

    And yes, if you want, you can add different airline subfleets to flights, and I do not think that this is a bug or "wrinkle" as you defined :) Imagine code sharing, subcharter flights, wet lease operations etc. As this is pretty much normal in real world, Airline A can operate Airline B's flights, no harm if this is based on an agreement between the two.

     

    If you want some automation protection, just check/match the airline_id's of subfleets and flights ;)

  12. Yeah, if you assign more than one subfleet to a flight, then your block time calculations should be able to cover all of those subfleets for that particular flight. We are getting into the same problem in real world too :) If a schedule is based on for our narrow body fleet, but in cases we use our wide body fleet, block times (thus airport slots etc) become a problem. Same applies to phpvms v7 too.

     

    It will be ok though for generic wide body fleets as they most fly with speeds close to each other. I am using some custom functions to generate block times (flight_time in phpvms v7) for my flights if they are no based on real world schedules.

     

    Back in time, someone was working on providing some auto created csv files to import flights which are based on real world airline schedules, but that project is trashed and he never finished it. So even if someone is working on something like that, it is not publicly known.

     

    Good luck

     

    PS;

     

    Block Time = taxi out + flight time + taxi in + some little margin/rounding

    Flight Time = pure flight time (EET, estimated elapsed time)

     

    I am using phpvms v7's flight_time as "block time" and consider my taxi times in it, opposite is possible of course but it may need some tricks in simbrief form to send proper block times to sb via api.

  13. Dear all,

     

    As of version v3.6.x I will be only updating my addons via GitHub, so there will be no future updates uploaded to download section of the forum. Sorry but it really takes time for me to sync two different sources and keep track of release notes on two different locations.

     

    Below you can find the repository links, release page links and finally how to get notifications when an update gets released.

     

    Disposable Theme

     

     

    Disposable Basic (Freeware Module Pack)

     

     

    Disposable Special (Donationware Module Pack, also known as Disposable Extended Pack)

     

          Above links will only work when you have access to the special module, because it is a private repository and a donation is required to gain access.

     

    What to download ;

     

    You only need the released zip file, no need to download source code files (even though the content is same, source code files will not install / work on phpvms v7 directly)

     

    image.png.83baf61fd8125654070810e8910b20c7.png

     

    How to follow updates, get notifications (via e-mail) ;

     

    • Go to the repository you want to follow,
    • Click Watch button,
    • Click Custom
    • Select Releases and apply the changes

     

    image.png.db07f16c0ba482684972a54ba1be96a0.png

     

    With this change, you will get an e-mail from GitHub directly when a new version gets released... No need to follow all activity, as it may be boring if you are not a freak or a developer :)

     

    Enjoy.

     

    PS: I am not explaining how to use .git and pull changes here as if you are using those features, you should be well aware of the structure and usage ;) It is possible to clone/fork my repositories, apply your changes and then integrate to your install via .git structure, also a basic pull to a proper location will work too if you are not editing my addons.

    • Thanks 1
  14. 6 hours ago, jonbeckett said:

    Do you ever get max_connections issues with your template?  I've just been digging through laravel to see how it arranges mysql connections - to see if they're pooling their connections or not - still digging lol

     

    No I don't, never got one.

     

    And honestly, I think this should be in a separate topic, not something under another problem.

  15. 12 hours ago, VUSAIR said:

    The only thing i need to figure out now is why the rest password emails never went out for either account, tokens were generated but nothing was received. I'll have to look at the documentation for email and sit down and learn how to set that up. 

     

    Probably you did not finished setup properly, go through docs and check how email is configured, then check your current setup and logs to see what is going on.

     

    There are forum posts about how to setup mails, be sure cleaning application cache after doing changes. 

     

    Good luck

  16. 4 hours ago, KevinStefanus said:

    How to change the map, like Mapbox, Google Maps, etc., and Where to place the api key ? in the Disposable PHPVMS 7 beta 5 skin?

     

    phpVMS uses "Leaflet" as the base of all maps, you can alter some of the features in respective blade files (mostly visual items and styling) like in `flights/map.blade.php` or `pireps/map.blade.php` (or in widgets folder, airspace and live maps)

     

    For the rest, like changing the core of the map, you may need to build assets and compile stuff according to provided data by controllers. If possible (by the map provider you choose), you can try using your own complete scripts in those blade files too.

     

    Hope this helps, good luck.

  17. On 2/4/2024 at 4:29 PM, LesJar said:

    A pilot flew on Vatsim today for a flight yet the pirep reports that it was flown off line.

    is there a correct point where you have to tell PHPVMS and Acars that you are on-line as the documentation does not seem to say anything about this 

     

    vmsACARS does not check flights if they are being online on a network or being operated offline, thus technically speaking issue has nothing to do with vmsACARS.

     

    Also phpVMS v7 does not provide a built in feature for this, thus this can not be related with v7 too.

     

    So simply, it needs to be a custom module doing that check. Better focus on the module/addon settings and your pilot's profile/info, also your logs about any errors related to that addon. Then you can request support from the developer of that addon.

     

    Good luck

  18. You can check your browser console for CORS errors, if it is there you need to be sure the url you are using.

     

    As an example, if your site is using https://... in your .env file, then you should be visiting your https:// site (or vice versa). Best way to understand this is the browser console (press F12 when the error occurs).

     

    APP_URL should point where your v7 root is, if it is installed under a folder called /phpvms then of course your APP_URL should point that folder. If you share your url we can check too.

     

    https://www.yoursite.com/phpvms => APP_URL = 'https://www.yoursite.com/phpvms'
    https://crew.yoursite.com => APP_URL = 'https://crew.yoursite.com' 

     

    That simple is the logic.

     

    Hope this helps

  19. 13 hours ago, N730AN said:

    Hi everyone! I am new to phpVMS and website creation, so please excuse me, but this is completely stumping me. I have added EGLL and KIAD in the airports section, but when I try to create new flights, I cannot find these airports in the dropdowns. I already checked that my .env APP_URL is correct for the mySQL databse, but I'm not sure what else could be causing this. Does anyone have any ideas? Your help is much appreciated.

     

    image.thumb.png.8d30a388390a760b1c91fa448e998a31.png

    image.png.f42885f009803a7f5963a6e6d48018c0.png

     

    Did you read this post ?

     

     

    It explains the possible causes and solutions. I bet it is just a CORS issue on your end.

     

    Good luck

  20. As an example, I have my own custom code for fare prices... I do define a base price and then alter it automatically according to distance (and of course flight type, aircraft configuration like business - first class options). This way I do not have to define flight specific fares or fleet specific adjustments, it is a solution too.

     

    You can do something similar for your cargo flights (or all flights) then there will be no need to worry about stuff anymore.

     

    If you are using Disposable Special, you can inspect the code I created for automated fare price calculation. If not I shared the basics at phpvms Discord or phpvms v7 GitHub repository. You can check those old messages :)

     

    Good luck

  21. Don't you have a specific fare applied for that fleet according to their cargo space (by weight), adjust the prices accordingly.

     

    Or develop something automatic, which will increase the price by range for example, you can overrule fare and or subfleet level definitions at flight level too.

     

     

×
×
  • Create New...