Skip to main content

Allows easy access to dcs bios state and sending of commands

Project description

DCS Bios Connector [Python Library]

This is a python library that allows you to listen to DCS Bios events. This can be imported into any python and used for projects.

This library uses DCS Bios Skunkworks

A helpful tool is DCS Bort to see button/switch names for each piece of data for a given aircraft. In the Usage section below, I am using the FLAPS_SW for the F/A-18_Hornet. Bort helps you see the name in DCS Bios for every piece of data, it also shows the values in realtime to help debug and see what data you are looking for.

Installation

pip install dcs-bios-connector

Usage

from dcs_bios_connector import DcsBiosConnector
bios = DcsBiosConnector()
bios.connect()

# Example: Detect when the FLAP_SW in the F/A-18 Hornet goes to position 1
bios.on("FLAP_SW:1", lambda: print("Flaps are at position 1"))

# Example of calling a function anytime the FLAP_SW changes
def  handle_flaps_switch_moved(dcsValue, controlInformation, dataInformation):
	print("Detected flap switch changed: ", dcsValue, controlInformation, dataInformation)
bios.on("FLAP_SW", handle_flaps_switch_moved)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcs_bios_connector-1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

dcs_bios_connector-1.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file dcs_bios_connector-1.0.tar.gz.

File metadata

  • Download URL: dcs_bios_connector-1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for dcs_bios_connector-1.0.tar.gz
Algorithm Hash digest
SHA256 3d9970db5c6cbc4e0778eff48c747fd5ae9f7a047f1badd88d2e36d18fed244f
MD5 8b08bb46995730478c1ff3d54b3213a3
BLAKE2b-256 e7778f58367ad43b632311444f21d4a569f583c4349c3dd1e9bdf71194c00c1a

See more details on using hashes here.

File details

Details for the file dcs_bios_connector-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dcs_bios_connector-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 775c618bcb4a24276586f0e8bf9d13b192b5d3618f2428c90bb0da367be887ef
MD5 dcdb227571418379abf6fe94bb7a030b
BLAKE2b-256 33b8c9a377119ceb75ce1584b1c05cdf91b02e9b657db57b0fb4814c3801e40e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page