Socket
Socket
Sign inDemoInstall

dcs-bios-api

Package Overview
Dependencies
3
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dcs-bios-api

DCS BIOS export parser that returns JSON data


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
40.5 MB
Created
Weekly downloads
 

Readme

Source

DCS BIOS API

DCS BIOS API is a library that converts the binary export format from DCS BIOS into JavaScript objects.

const DcsBiosApi = require('dcs-bios-api');

var api = new DcsBiosApi({ logLevel: 'INFO' });

api.on('SC_MASTER_CAUTION_LED', (value) => {
  console.log('Master caution LED is', value ? 'on' : 'off');
});

api.on('ML_MASTER_ARM:1', () => {
  console.log('Master arm light is on');
});

api.on('ML_MASTER_ARM:0', () => {
  console.log('Master arm light is off');
});

api.sendMessage('WEAPONS_MASTER_ARM 1').then(() => {
  console.log('Master arm switch turned on');
});

Controls Browser

To see a list of controls that DCS BIOS can interact with, checkout the controls browser here: https://danieltian.github.io/dcs-bios-api. Some controls are not available in DCS BIOS. For example, closing the cockpit door is not, and neither are the throttle levers on the Ka-50.

API

More in-depth guide is WIP, but you can take a look at the jsdoc here: https://doclets.io/danieltian/dcs-bios-api/master

Keywords

FAQs

Last updated on 20 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc