Metadata-Version: 2.1
Name: truck-telemetry
Version: 0.0.2
Summary: SCS Telemetry for EuroTruckSimulator 2 and AmericanTruckSimulator
Home-page: https://github.com/dreagonmon/truck_telemetry
Author: Dreagonmon
Author-email: 531486058@qq.com
License: UNKNOWN
Keywords: development
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# truck-telemetry
using [scs-sdk-plugin by RenCloud](https://github.com/RenCloud/scs-sdk-plugin)

SCS Telemetry for EuroTruckSimulator 2 and AmericanTruckSimulator

## Supported Version
Current supported [scs-sdk-plugin V.1.10.6](https://github.com/RenCloud/scs-sdk-plugin/releases/tag/V.1.10.6)

## Useage
Download supported version scs-sdk-plugin, and follow the [guide](https://github.com/RenCloud/scs-sdk-plugin#installation) to install.

```pip install truck-telemetry```

```python
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: [scs-telemetry-common.hpp(V.1.10.6)](https://github.com/RenCloud/scs-sdk-plugin/blob/V.1.10.6/scs-telemetry/inc/scs-telemetry-common.hpp)

