Falcon BMS Forum
    • Register
    • Login
    • Search
    • Categories
    • Unread
    • Recent
    • Unsolved
    • Popular
    • Website
    • Wiki
    • Discord

    [Alpha] BMS RESTful Client/Server API

    Community Mods & Tools
    5
    11
    714
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bawki last edited by

      Github link

      Just a little project I worked on the last couple of hours. It utilises the shared memory of falcon bms to read the current player list and export it via HTTP as json. It could be used to show the current player count and player list for your squadron servers on the squadron homepage. Requires the client running this to be in 3d(which is common for most squadrons).

      Sample output:

      {
          "pilots": [
              {
                  "name": "bawki"
              }
          ],
          "pilotsOnline": 1
      }
      
      

      Can be used to read any value that is exported into shared memory, potentially could be used to also issue cockpit commands to the client running the server(not implemented). Let me know what type of values you would like to read, the list is available in your Falcon directory(FalconBMS\Tools\SharedMem\FlightData.h).

      1 Reply Last reply Reply Quote 0
      • hoover
        hoover last edited by

        Very interesting, bawki! it’s always good to see BMS improve on the cross-platform side…

        uwe

        System specs: win10pro / Linux Mint 20.x, 32GB RAM, nv 1070ti, 2x1 TB SSD, 1x4TB SATA; HOTAS Warthog (DX), TM MFDs, G25Shifter, T500RS wheel / pedals; CPU: AMD Ryzen 7 3700X 8-Core; MoBo: X570-A PRO (MS-7C37); Display: 43" LG nano 779pa (2560x1440), 19" Fujitsu-Siemens (1280x1024) used for DE; StreamDeck XL (ICP)

        coolhands 1 Reply Last reply Reply Quote 0
        • coolhands
          coolhands @hoover last edited by

          Yes very good idea.

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zeek @coolhands last edited by

            Interesting, the guys at FO appear to use live steaming from the server but this would be a lot more efficient. The currentTime would be a good one to include.

            B 1 Reply Last reply Reply Quote 0
            • B
              bawki @zeek last edited by

              @zeek:

              Interesting, the guys at FO appear to use live steaming from the server but this would be a lot more efficient. The currentTime would be a good one to include.

              Yeah that is sort of what made me start this little side project, also I added currenttime. See: https://github.com/bogie/Falcon-BMS-Server-Status/releases/tag/0.2

              X 1 Reply Last reply Reply Quote 0
              • X
                Xtacy @bawki last edited by

                Just wanted to say thanks to Bawki. We have implemented this on our website and it is working fantastic 🙂

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  zeek @Xtacy last edited by

                  Thanks Bawki for making this available to the community, as X said we have it up and running and it works great, one question though, do you know what change would need to be made to pull the day of the campaign in addition to the current time which is already there?

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bawki @zeek last edited by

                    Hmm can you check if the currenttime is seconds since 0:00 or if it is from the start of the campaign(5:00 day1 if i recall correctly). Otherwise the bms devs would have to export the current day in shared memory.

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      zeek @bawki last edited by

                      Unfortunately it is HH:MM:SS. Xtacy thought it may be what you said but wanted to check here also. Thanks for the response and putting this together. It is located here in the top right if you want to have a look.

                      http://www.72ndvfw.org/

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bawki @zeek last edited by

                        I had some hope, since in the campaign save files they use seconds since the start of the campaign, which is at 05:00(or 06:00?). But since this is cockpit data, they are probably just using time of day. I wonder if there is any date display in the f16 pit. If so then we could probably request for an export, but I have yet to see anything like this. It would be required for GPS guidance though, so the F16 should have the date saved SOMEWHERE.

                        Z 1 Reply Last reply Reply Quote 0
                        • Z
                          zeek @bawki last edited by

                          I would have to check the time page on the ICP next time I get on, I dont think there is a day but I could be wrong. We have a work around for now that does it externally, so that works for now.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          69
                          Online

                          10.6k
                          Users

                          21.0k
                          Topics

                          348.6k
                          Posts

                          Benchmark Sims - All rights reserved ©