Crates.io | simetry |
lib.rs | simetry |
version | 0.2.3 |
source | src |
created_at | 2023-01-12 13:17:44.923759 |
updated_at | 2024-02-16 11:54:28.628018 |
description | Interface with telemetry of various racing and driving sims |
homepage | |
repository | https://github.com/adnanademovic/simetry |
max_upload_size | |
id | 757121 |
size | 353,914 |
Rust library for interfacing with telemetry of various racing and driving sims.
The library is under active development, and the generic interface for handling all sims is yet to be designed.
Currently supported sims:
Beyond that, an interface for a generic HTTP server exists, allowing you to easily emulate any sim to see the functionality of your software that way, instead of having to run the sim and replicating scenarios manually.
All implementations provide a Client
which retries connections forever with Client::connect()
and
generates its own SimState
.
Besides that, iRacing provides a DiskClient
for reading recorded telemetry data,
and commands
for sending commands to iRacing.
Examples of capabilities are available in examples
.
The most generic way of use is using simetry::connect
to connect to whatever
sim is currently running with a generic client, and querying that way.
That generic way currently only supports some basic capabilities, and if you need more than what's present there, you can use the interface of the individual sims.
Requires adding the DLLs from https://github.com/TheIronWolfModding/rF2SharedMemoryMapPlugin.
Requires adding the DLLs from https://github.com/RenCloud/scs-sdk-plugin.
Alternatively supporting also https://github.com/Funbit/ets2-telemetry-server
via simetry::truck_simulator::json_client::Client
.