Aerofly FS4 UDP Flight Data recorder and Replay - Rewinger

  • Hi SageMage

    Apologies for the delay.

    I keep getting a syntax error even though there isn’t one.

    I have been able to use rewinger by using vscode but this is the only way I can open rewinger. I am also finding that when I create a flight plan using online flight planner.org it doesn’t seem to follow the flight plan. Is there any other way I can match the in game flight route to display on rewinger?

    Thank you for the help with this.

    No worries! Sorry if I may have seen to be a bit pushy but today I had time to have a look at the code if there was the need.

    Regarding the syntax error, can you send me a screenshot of the VSCode terminal? Could be that on my version of python everything works, but on other machines it causes issues.

    About the flight plan: unfortunately Aerofly FS has an older database that is not compatible with the newest flight planners. For this reason, I added the functionality to import a KML file, as it’s a flexible format that is not simulator dependent. My understanding is that you’re planning a flight (e.g. SimBrief) and then use missiongerät or manually recreate it in Aerofly?
    If I’m wrong, please let me know your use-case and the toolchain used, as different users have created different tools and not always we are 100% compatible with each other.

  • Hi SageMage


    On vscode the syntax error doesn’t appear it’s only when I try to open the Rewinger Python script without vscode it opens for like a millisecond and then closes immediately. When I open the script via IDLE it then shows the syntax error on the colon after the latitude code.

    Regarding the flight plan issue, I used the missiongerät as mentioned above and it’s now working perfectly, thank you!

  • Hi SageMage


    On vscode the syntax error doesn’t appear it’s only when I try to open the Rewinger Python script without vscode it opens for like a millisecond and then closes immediately. When I open the script via IDLE it then shows the syntax error on the colon after the latitude code.

    Regarding the flight plan issue, I used the missiongerät as mentioned above and it’s now working perfectly, thank you!

    Understood - sorry to ask you more info, but I would need when you have the time for the following:
    - please add a screenshot or a copy-paste of the error so I know the module and the line where this happens.
    - (optional) In a terminal, run the following:
    python -c "import sys; print(f'Python {sys.version}'); from dataclasses import dataclass; print('✓ dataclasses'); from PIL import Image; print('✓ Pillow'); from tkintermapview import TkinterMapView; print('✓ tkintermapview')"

    This will try to import certain modules required for rewinger.py to run, and check the python version installed. If one of those is not installed, it will trigger an error.

    One last question, how did you obtained the code?
    e.g. do you have only the rewinger.py code or you have the entire GitHub copied? Have you downloaded the zip from flight.sim?

    About the .exe version, I may look into it as I am on a Mac machine and would need to see if making the binary for windows works correctly or not.

    Best regards,

  • Hi SageMage ,

    Your app is working great, but it is not detecting any traffic for me; I noticed when looking at the raw telemetry data that there are no packets with XTRAFFIC. Traffic is turned on in my Aerofly settings; is the app sending such packets at all?

    Hello max3max ,

    No the traffic is not generated (as far as I know) from Aerofly.

    The possibility is there to have the full ForeFlight protocol and to allow the replay without colliding with the simulator.

  • Just a quick update I'm working on.
    I saw some requests from the mobile forum about multiplayer map.
    Well... I made it.
    Aerofly UDP -> Uplink client -> Server (XGPS to XTRAFFIC)-> Rewinger Traffic visualisation
    Currently I'm working to get a free tier Oracle machine to test the cloud functionality...

    Wish me luck!

  • A small update on the progress:

    • Changed architecture from UDP streams to API calls (still comms with Aerofly via UDP)
    • API keys manage access to the API with rate limiting, distance filtering
    • “observer” mode API call allows to access the traffic without participating actively (e.g. Tower)
    • Oracle Cloud machine is up and running!
    • rewinger now manages the connection to the server to receive the traffic provided the API key


    Next steps:

    • creating documentation
    • switch from “dev” code to “prod” (no debug messages in console)
    • creation of binary files
    • naming and landing page

    best regards,

    SageMage

  • Wow, this looks great. As soon as I come out of my rabbit hole (did not even find time to appreciate the recent update, let alone have any flying time for the last few weeks) I will definitely check this out.

    Sorry for being out of sync. Next year will be full steam again.

    By the way: I like the multiplayer part, especially the URL. ;)