using scs-sdk-plugin by RenCloud
SCS Telemetry for EuroTruckSimulator 2 and AmericanTruckSimulator
Current supported:
Download supported version scs-sdk-plugin, and follow the guide to install.
pip install truck-telemetry
import truck_telemetry
truck_telemetry.init()
# read data, it`s slow... cache what you need.
data = truck_telemetry.get_data() # type: dict
# using data
speed = data["speed"] # type: float
More dict keys: