Jump to content

DisposableHero

Members
  • Posts

    690
  • Joined

  • Last visited

  • Days Won

    111

Posts posted by DisposableHero

  1. 9 hours ago, ARV187 said:

    If someone want export the phpvms7 flights to volanta, can be done exporting database data to csv with the next sql script.

    NOTE: If you have flights currently in volanta and are the same of phpvms7 this isn't overwrite, so you will have duplicate flights in Volanta (Volanta + phpvms7 flights)

    SELECT dpt_airport_id AS Origin, arr_airport_id AS Destination, block_off_time AS DepartureTime, pireps.flight_time AS Duration, airlines.name AS Airline, flight_number AS FlightNumber, aircraft.icao AS AircraftType, registration AS AircraftRegistration, route AS Route, block_on_time AS ArrivalTime, distance AS Distance, fuel_used AS Fuel
    FROM `pireps`, `aircraft`, `airlines`
    WHERE aircraft.id = pireps.aircraft_id AND airlines.id = pireps.airline_id AND user_id=1
    ORDER BY block_on_time DESC;

     

     

    Do this with laravel relationships and by only using the `Pirep` model please :) Then add a csv export to that code, there you go, you have something built for phpvms v7 as an addon. (A widget will do the trick, no need to go for a full scale module)

     

    Condiser this as a learning target.

     

    Good luck

  2. There is a setting at admin side for this, works only if your cron is working properly.

     

    Admin > Settings ... Acars group, Live Time

     

    Set it to something like 2 or 3 (hours) according to your needs.

    • Like 1
  3. Hi @CartesianPixels

     

    The "issues" you mention are all related to your phpvms v7 settings and not theme or addon related (also not related with acars), therefore I would kindly request you to spare some time and pay attention to the guides published here in this forum about initial setup.

     

    Most probably you are restricting yourself with settings thus not able to see any flights or aircraft.

     

    Hope this helps :)

    • Like 1
  4. 13 minutes ago, CartesianPixels said:

    Hello, I just started setting up my VA and I am using 7.0.0-beta.5, I just installed the Disposable_v3 and it shows error 500, when I enabled debugging from .env I found many errors, as a novice with a basic background in web dev, I need your help resolving these issues as I think the theme fits well with my needs for my VA

    PhpVMS version : 7.0.0-beta.5

    Php : 8.1.29

    Laravel: 10.12.0

     

    link to my VA

     

    Screenshot_2024-07-11_20-30-37.png

     

    image.png.c18aa9ccda62af8b6eae2034158eff40.png

     

    It is clearly stated in theme readme (literally it is the third line), that it needs a much recent build compared to your phpvms v7 (which is beta.5 and almost a year old).

     

    So in theory, you have two options;

     

    1. Keep your current build (beta5) and stick with default theme (or you can use older builds of Disposable Theme which are compatible with beta5)

    2. Update your phpvms v7 to the latest development build and use latest addons/themes

     

    I would prefer the second option :)

     

    Good luck

    • Thanks 1
  5. No :) It is not possible at the moment (and I am not sure about future development for this).

     

    vmsAcars does not write values , it only reads them from the simulator whenever needed. It is a pilots responsibility to load his/her aircraft properly before starting a flight and releasing parking brakes for pushback (or similar in helicopter ops)

  6. Just now, vFAB said:

    I haven't received any emails since I initially installed PHPVMS, I checked the data with my provider and they are correct!

     

    Then either they are not telling the truth or you are missing something! Because when configured properly mails do work, I can say you that and provide evidence to prove that :)

     

    Check your logs for errors and please follow the docs for required details when requesting help.

     

    Good luck

    • Like 1
  7. https://docs.phpvms.net/config/email#smtp-configuration

     

    It simply says ;

     

    For detailed settings about host, port and encryption details please check your hosting control panel (or VPS). These settings are not generic and can differ between hosting companies, even on a custom VPS these settings are local to your install (packages installed etc.) Therefore there a no generic examples for SMTP and mail settings.

     

    Just don't forget to clear application cache when you make .env changes.

    • Like 1
  8. You need to do only one of them,

     

    Either you download the latest release manually and upload contents manually

    Or you pull everything from GitHub

    Or you use the phpvms module installer method with the downloaded file

     

    Pick only one method, not both or all :)

    • Like 1
  9. Hi, for this to happen you need to use API (best way) and external calls to those endpoints, or you need to load a laravel application instance in your homepage to get what you need (uses more server resources and less practical), also you can define an external connection and pull data out from the db directly (worst way, you will lose lots of stuff).

     

    For some basic examples and pre-built API solutions you can check DisposableBasic addon, it provides some endpoints for VA admins to pull data out of v7.

     

    LiveMap is a different subject, it runs with java/rivet calls, so it is already possible to implement it somewhere outside phpvms v7, check how the map widget works and mimic something outside.

     

    Good luck

    • Like 1
  10. Export/import is only two steps, which can be done easily via command line interface (aka command prompt) of the server or via your web based / graphical sql workbench. I would prefer using the command line interface (CLI) if possible, it is much faster and practical.

     

    // Exporting a DB
    mysqldump your-database-name-here > the-name-you-want-to-use-for-the-export.sql
    
    // Importing a DB
    mysql -u your-db-username -p < the-name-of-the-dump-file-you-exported.sql

     

    For GUI / workbench solutions you can find lots of guides (even videos to watch) via Google, your current hosting may have one matching the tools they offer. Using a GUI solution may be slow and risky due to timeouts, upload limits etc, therefore you may want to export each table separately and then import one by one. Takes time and effort but works.

     

    Editing the settings/config of phpvms v7 is again a one step task, just change the database server/user details in your .env file, save it, done. Nothing special needed except cleaning the application cache for the changes to take effect.

     

    Just be sure the database solution you are going after is allowing external connections and properly configured for it, you can (should) test it beforehand with a new/fresh install too to see it works and performance is acceptable for you.

     

    Good luck

    • Thanks 1
  11. For the WASM/LVAR module to be installed by FsUipc main package, it needs to be selected (or a full install needs to be completed). Therefore installing FsUipc does NOT mean that LVAR module is installed automatically.

     

    Be sure that user has "fsuipc-lvar-module" folder under the community folder @Alexan, if not it needs to be manually downloaded and installed as per docs.

    image.png.591c192dc482e893d01bfc7161635d39.png

     

    image.thumb.png.b21891997eec1d2776e72affccbecb4c.png

     

    If you are not debugging stuff "FsUipc WASM Module 1.0.4" is enough for download and install, otherwise the one + WAPI 1.0.4 is needed.

     

    Safe flights

  12. How ? :shock: 

     

    I checked the logs and saw exceptions about stuff not being downloaded, was it that simple and widget was not enabled at all! But again those exceptions should prevent the widget from working too.

     

    Anyway, if it is solved then it is ok :D

  13. Follow up for future reference:

     

    Even though the settings are correct and module is set to download data with cron, somehow the server is not able to get data from IVAO/VATSIM servers, exceptions were recorded at cron log. 

     

    Similarly server was not able to download discord widget data too.

     

    Both features use Guzzle HTTP client to get data from remote servers.

  14. Did you entered your IVAO ID to that field ? 

     

    Profile > Edit

     

    image.thumb.png.b9d49cbbfd7d63bdecf0085164bc9959.png

     

    image.png.ded9f25c8fbe754820ba7d5667ef4196.png

     

    Pilots can provide their info during registration too :)

     

    If it is still not working, please provide more info, like your laravel log as described in docs > Getting Help page.

     

    Good luck

  15. image.png.5b39c37edb7d0b2b933d2b9d85326681.png

     

    image.png.597d2833bc62ea9e62f4dad45c17c7e0.png

     

    image.png.85331b5752e6536a80d9791122f6de80.png

     

    Did you created custom profile fields for your pilots to fill with their IVAO/VATSIM ID's @Alexan ?

     

    If all names match, and your pilots enter their network ID's to those fields, then there is no reason for the module to fail. Please check your custom user fields.

     

    Good luck

×
×
  • Create New...