Node bindings to FSUIPC for Windows x64.
This repository contains two packages:
fsuipc
: Node bindings to FSUIPC for Windows x64.fsuipc-wasm
: Node bindings to the FSUIPC WASM interface for Windows x64.
The
fsuipc
package can be used to read and write data from and to FSUIPC.
npm install --save fsuipc
Or
yarn add fsuipc
const fsuipc = require('fsuipc');
const obj = new fsuipc.FSUIPC();
obj.open()
.then((obj) => {
console.log(obj.add('clockHour', 0x238, fsuipc.Type.Byte));
console.log(obj.add('aircraftType', 0x3D00, fsuipc.Type.String, 256));
console.log(obj.add('lights', 0x0D0C, fsuipc.Type.BitArray, 2));
return obj.process();
})
.then((result) => {
console.log(JSON.stringify(result));
return obj.close();
})
.catch((err) => {
console.error(err);
return obj.close();
});
The
fsuipc-wasm
package can be used to read and write Lvars from and to FSUIPC using the WASM interface. Only for Microsoft Flight Simulator.
npm install --save fsuipc-wasm
Or
yarn add fsuipc-wasm
const fsuipcWasm = require('fsuipc-wasm');
const obj = new fsuipcWasm.FSUIPCWASM();
await obj.start();
console.log(obj.lvarValues);
obj.flagLvarForUpdate("A32NX_IS_STATIONARY");
obj.setLvarUpdateCallback((newLvars) => {
console.log(newLvars);
});
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/koesie10/fsuipc-node
- Fork it (https://github.com/koesie10/fsuipc-node/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- Run
yarn lerna version
to bump the version of all packages - Create a release on GitHub with the new version number
- GitHub Actions will automatically publish the new version to NPM