API Referenceveextensions
MQTT Grafana Demo
Streams vehicle telemetry data to an MQTT broker for real-time visualization in Grafana dashboards. Demonstrates integration between BeamNG and external monitoring tools.
Streams vehicle telemetry data to an MQTT broker for real-time visualization in Grafana dashboards. This is a demonstration extension showing how to integrate BeamNG vehicle data with external monitoring and visualization tools.
State Fields
M.reset -- function reference for resetting the MQTT connection stateHooks
| Hook | Description |
|---|---|
onExtensionLoaded | Establishes the MQTT connection and begins streaming telemetry data. |
Usage Example
-- Load the extension (requires an MQTT broker running)
extensions.load("mqttGrafanaDemo")
-- Reset the connection if needed
extensions.mqttGrafanaDemo.reset()See Also
- Telemetry Logger — File-based telemetry logging
- Vehicle Stats Logger — CSV data logging
- OutGauge — UDP telemetry protocol
Input Analyzer
Detects specific user input sequences such as cheat codes or button combos. Monitors controller and keyboard inputs each frame to match predefined patterns.
Odometer
Persistent distance tracking and statistical reporting. Tracks total distance driven and provides trip meter functionality for the vehicle UI.