*** CURRENTLY IN DEVELOPMENT ***
Microsoft Flight Simulator 2020 SimConnect SDK wrapper for NodeJS.
Works on 64 bit version of NodeJS. Currently, for Windows only.
msfs-simconnect-nodejs uses a native NodeJS addon and therefore, it must be compiled first before you can use it as module within your project.
npm install msfs-simconnect-nodejs
You need to copy your own SimConnect SDK files to msfs-simconnect-nodejs. 64 bit version is also supported.
Default, the SimConnect SDK installed in C:\MSFS SDK\SimConnect SDK. Copy this SimConnect SDK directory and paste it in the root of msfs-simconnect-nodejs.
Compile the library:
npm run build
Once compiled, at the moment you need to copy your SimConnect.dll file from the SimConnect SDK directory into the build/Release directory. You need to this everytime you've done a rebuild.
Import the module:
const simConnect = require('msfs-simconnect-nodejs');
Calls to requestDataOnSimObject
and requestDataOnSimObjectType
will return the simulation ObjectID for the object in the callback data object in addition to the requested Simulation Variables.
ObjectID 1 is the user.
- NodeJS v12.18 64 bit
- NPM v6.14
- Microsoft Visual Studio 2019 (Community)
- Python 3 (for compilation)
- SimConnect SDK
- Works with SimConnect SDK 0.7.1
Inspired by https://github.com/EvenAR/node-simconnect