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.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dcs_bios_connector-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bc165c421ff02ac52ca5d2f90836f5417bac46f4a88c5d4427b9c5cb969d0eb6
MD5 f133fe6f0d6024db758266bdd4d8a0a8
BLAKE2b-256 759e149f6aaf9f4f6f578af53fadba5b2514584cf36d3346e15b41d7c371ecda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dcs_bios_connector-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96a61fa64d3aae27bfad32bf7f5f01390a0e280ca582b4707fff566c40602ec2
MD5 1057feacdb479dc04154f396726eca57
BLAKE2b-256 12c976a0fa92db338e901b4e13957f434876c45327145e604138a0d6fb87b2b0

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