Metadata-Version: 2.4
Name: fh6
Version: 1.0.1
Summary: Read data from Forza Horizon 6's Data Out Telemetry
Author: pea
License-Expression: AGPL-3.0-only
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.14
Project-URL: Homepage, https://codeberg.org/pea/fh6
Project-URL: Issues, https://codeberg.org/pea/fh6/issues
Description-Content-Type: text/markdown

# fh6

Easily read data from Forza Horizon 6's Data Out Telemetry

## Usage

```python
from fh6 import Telemetry
import time

# Callback called each time a packet is received
def my_function(data):
    speed_mph = data.speed * 2.236936
    print(f"Speed: {speed_mph:6.1f} mph | Gear: {data.gear}")

# Start the listener
telemetry = Telemetry(port=6767)
telemetry.start(callback=my_function)

try:
    # Keep the script running with your own loop
    while True:
        time.sleep(1)
except KeyboardInterrupt:
    # Clean up, closes socket and stops the listener thread
    telemetry.stop()
```