WebCockpit is a .NET Core web API wrapper for SimConnect.
.NET Core 3.1
First run MSFS and then
dotnet run --project .\WebCockpit\WebCockpit.API\WebCockpit.API.csproj --urls http://<ip>:<port>
You can send data to the simulator:
GET http://<ip>:<port>/API/Write?event=<KEY_EVENT_NAME>&data=<uint>
Example (Set autopilot heading bug to 175deg)
GET http://localhost:8080/API/Write?event=KEY_HEADING_BUG_SET&data=175
You can see the Complete list of events ids.
NOTE: Only a few events added. You can add more on Enums/SimEvents.cs
webcockpit-autopilot-example(https://github.com/sbernardotti/webcockpit-autopilot-example/)
- TODO: Read data from the simulator.
- Some events may not work on MSFS 2020.