1
0
Fork
You've already forked fh6
0
Easily read data from Forza Horizon 6's Data Out Telemetry
  • Python 100%
2026年06月23日 21:53:03 +02:00
src/fh6 init 2026年06月23日 21:53:03 +02:00
.gitignore init 2026年06月23日 21:53:03 +02:00
.python-version init 2026年06月23日 21:53:03 +02:00
LICENSE init 2026年06月23日 21:53:03 +02:00
pyproject.toml init 2026年06月23日 21:53:03 +02:00
README.md init 2026年06月23日 21:53:03 +02:00
uv.lock init 2026年06月23日 21:53:03 +02:00

fh6

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

Usage

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()