an fsuipc api to track simulator events via x-track which works on node. based on @fsuipc/api 🔗
$ yarn add @foxsys-xyz/fsuipc-api
import { FsuipcApi } from '@fsuipc/api';
const fsuipcApi = new FsuipcApi(Simulator.FSX);
fsuipcApi.init().then(() => {
fsuipcApi.listen(1000, [
'gs',
'altitude',
'comFreq',
'lights',
]).subscribe((result) => {
// Use the result here
console.log(JSON.stringify(result));
});
}).catch((e) =>
console.error(e)
);