/f1-telemetry-oracle

Oracle connection to F1 2021 Telemetry (PlayStation and Steam versions)

Primary LanguagePythonMIT LicenseMIT

Telemetry-F1-2021

Info

Currently the project is setup to obtain and insert only weather data from the PacketSessionData struct. Deserialization has kindly been done in CodeMasters by an anonymous poster and implemented as an open-source project by chrishannam.

Credits

Much of the code used in this repository is taken from this repository and this CodeMasters thread!

Make sure to check the links and give them the credit that they deserved! I decided to reuse most of their code since it removes the complexity of handling packet encoding/decoding issues and lets me focus in the things I need to focus on, which is, to connect this to an Oracle Autonomous Database for data collection purposes.

Installing

This references Chris' pip module, which you can use instead of the source code present in parts of this repository:

pip install Telemetry-F1-2021

Simplest usage

from telemetry_f1_2021.listener import TelemetryListener

listener = TelemetryListener(port=20777, host='localhost')
packet = listener.get()