b4mad / racing

Community-driven SimRacing data collection and analysis
https://b4mad.racing
GNU General Public License v3.0
22 stars 13 forks source link

SimHub plugin to publish telemetry to MQTT endpoint #1

Closed durandom closed 2 years ago

durandom commented 2 years ago

User Story

As a SimHub user I can install a plugin to publish live game data to an MQTT endpoint

Acceptance Criteria

In order to avoid saturation of upload bandwidth and improve the compression ratio, we don't want to stream the JSON payloads, but instead, collect samples for a certain period (e.g. 10 seconds), then compress the payload and then publish the payload to the topic (upload).

local development

Use the docker-compose setup to develop locally

Use case

Racing teams and individual drivers are able to stream their telemetry data to the platform. They can visualize the data in existing and customized dashboards and execute functions provided by the data storage engine.

Architecture

SimHub is able to read telemetry from a multitude of games and unifies the format, it also provides a plugin architecture in C#. MQTT is a messaging standard. Telegraf can interface to the MQTT broker and send the data into an Influx database, which in turn can be visualized by Grafana dashboards. See b4mad.racing architecture

goern commented 2 years ago

/kind feature /priority critical-urgent

durandom commented 2 years ago

it's done. Thanks so much to @SHWotever and @LukasLichten

egranto commented 1 year ago

can you explain me how to do it i follow your steps and i was able to do it with telegram and crewchief, but i rather prefer simhub (F123)