/rfactor2api

Simple project to create an HTTP server to read live data from rFactor2

Primary LanguagePython

rFactor2 HTTP API

This project exposes an HTTP server to read rfactor2 live data.

It relies on different projects with some changes to adapt them to this use case:

Runtime dependency

This depends on The Iron Wolf’s rF2 Shared Memory Map Plugin, download it from here: https://forum.studio-397.com/index.php?threads/rf2-shared-memory-tools-for-developers.54282/

Run it [in progress]

It is recommended to create a virtualenv to run this.

Run rfactor2.

For the moment, use this command to launch it. In a future, an exe file will be created.

uvicorn main:app

It will create a HTTP server at http://localhost:8000 with two relevant endpoints: