All Projects → ppatierno → formula1-telemetry-kafka

ppatierno / formula1-telemetry-kafka

Licence: Apache-2.0 license
No description or website provided.

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to formula1-telemetry-kafka

dagger
Dagger is an easy-to-use, configuration over code, cloud-native framework built on top of Apache Flink for stateful processing of real-time streaming data.
Stars: ✭ 238 (+140.4%)
Mutual labels:  influxdb, apache-kafka
pm2-free-monitoring
Pm2 free monitoring with Grafana and InfluxDb!
Stars: ✭ 38 (-61.62%)
Mutual labels:  influxdb, grafana
influx4mqtt
Insert incoming MQTT values into InfluxDB. Follows mqtt-smarthome architecture.
Stars: ✭ 34 (-65.66%)
Mutual labels:  influxdb, grafana
solar-logger
A datalogger for a solar inverter. Stores data in influxdb and displays it in grafana. Has load diverting capability, to use the inverter's excess power
Stars: ✭ 53 (-46.46%)
Mutual labels:  influxdb, grafana
eseries-perf-analyzer
This project provides an automated installation and deployment of Grafana, NetApp E-Series Web Services, and supporting software for performance monitoring of NetApp E-Series Storage Systems.
Stars: ✭ 19 (-80.81%)
Mutual labels:  influxdb, grafana
tracker
Track your activities!
Stars: ✭ 14 (-85.86%)
Mutual labels:  influxdb, grafana
Sofar LSW3
Get MODBUS data from Sofar (K-TLX) inverter through LSW-3 or LSE module
Stars: ✭ 57 (-42.42%)
Mutual labels:  influxdb, grafana
Netdata
Real-time performance monitoring, done right! https://www.netdata.cloud
Stars: ✭ 57,056 (+57532.32%)
Mutual labels:  influxdb, grafana
jmeter-influxdb2-listener-plugin
Influx DB v2.0 listener plugin for Apache JMeter. Provides the possibility to see the online dashboard (aggregation table, errors, the response body of failures).
Stars: ✭ 64 (-35.35%)
Mutual labels:  influxdb, grafana
coronavirus-dresden
Collects official SARS-CoV-2 infection statistics published by the city of Dresden.
Stars: ✭ 19 (-80.81%)
Mutual labels:  influxdb, grafana
iot-edge-offline-dashboarding
Azure IoT Edge offline dashboarding/reporting sample. Guidance and sample dashboards
Stars: ✭ 31 (-68.69%)
Mutual labels:  influxdb, grafana
bme680 to influxdb
Simple script that sends your BME680 temp, pressure, humidity and gas sensor data to InfluxDB.
Stars: ✭ 21 (-78.79%)
Mutual labels:  influxdb, grafana
InfluxDB
App Metrics Extensions for InfluxDB reporting
Stars: ✭ 17 (-82.83%)
Mutual labels:  influxdb, grafana
docker-iot-dashboard
A complete IoT server for LoRaWAN IoT projects: node-red + influxdb + grafana + ssl + let's encrypt using docker-compose.
Stars: ✭ 79 (-20.2%)
Mutual labels:  influxdb, grafana
netdata-influx
Netdata ➡️ InfluxDB metrics exporter & Grafana dashboard
Stars: ✭ 29 (-70.71%)
Mutual labels:  influxdb, grafana
grafana-influx-admin
InfluxDB admin panels for grafana
Stars: ✭ 34 (-65.66%)
Mutual labels:  influxdb, grafana
Pfsense Dashboard
A functional and useful dashboard for pfSense that utilizes influxdb, grafana and telegraf
Stars: ✭ 208 (+110.1%)
Mutual labels:  influxdb, grafana
Icinga Vagrant
Vagrant boxes for Icinga 2, Icinga Web 2, modules, themes and integrations (Graphite, InfluxDB, Elastic, Graylog, etc.)
Stars: ✭ 248 (+150.51%)
Mutual labels:  influxdb, grafana
devops-kpi-chapter1
DevOps KPI in Practice - Chapter 1 - Source Code
Stars: ✭ 25 (-74.75%)
Mutual labels:  influxdb, grafana
air-quality
Air quality sensing and monitoring
Stars: ✭ 17 (-82.83%)
Mutual labels:  influxdb, grafana

Build Open in Visual Studio Code

Formula 1 - Telemetry with Apache Kafka

This project aims to use Apache Kafka in order to ingest Formula 1 telemetry data from the F1 202x game (by CodeMasters) running on Microsoft Xbox. It uses different products, projects and technologies:

  • F1 202x games (by CodeMasters) for getting the telemetry data via UDP;
  • Apache Camel project for routing telemetry events from UDP to Apache Kafka and to InfluxDB;
  • Apache Kafka as the core project for ingesting the telemetry events on different topics;
  • Kubernetes for deploying most of the components to run in the cloud;
  • Strimzi for deploying easily the Apache Kafka on Kubernetes;
  • InfluxDB for storing the telemetry time series as data source for dashboards;
  • Grafana for providing dashboards showing the real time telemetry data;

Logo

The formula 1 telemetry library, used to decode the UDP packets, works with the F1 2020 game format. It's possible to have the project working with F1 2021 game by selecting the "2020" UDP packet format in the Telemetry settings on the game.

Overview

Following an overall picture of how these technologies are used together. A couple of short introduction videos are available here and here.

You can also find some material from conference presentations:

  • Let's code a motorsport telemetry processing pipeline - slides demo video
  • Formula 1 telemetry processing using Kafka Streams - slides demo video
  • Formula 1 telemetry processing using Quarkus and OpenShift Streams for Apache Kafka - slides demo video

Overview

F1 202x Xbox UDP to Kafka

In order to ingest the telemetry events into Apache Kafka, the Apache Camel project is used with:

  • a route getting the raw UDP packets from the F1 202x game (by CodeMasters) on Microsoft Xbox and dispatching these events to three more routes;
    • a route just forwarding the raw UDP packets to a corresponding Apache Kafka topic;
    • a route to filter only the EVENT type raw UDP packets and forwarding them to a corresponding Apache Kafka topic;
    • a route to aggregate the raw UDP packets data for producing drivers related data and forwarding them to a corresponding Apache Kafka topic;

UDP to Kafka

Kafka Streams API

The Kafka Streams API based application shows an example of real-time analytics on the telemetry data. The application processes the average speed in the last 5 seconds.

Kafka Streams API

It has a source node reading from the topic with drivers related messages, filtering the ones not containing valid telemetry data. Extract and group the driver's speed by corresponding driver's id using in a tumbling window of 5 seconds. Next, it sums speeds and counts them in order to process the corresponding average value. Finally, the sink node writes to the destination topic.

Kafka Streams API Topology

Kafka to InfluxDB

In order to provide the telemetry data to Grafana dashboards, InfluxDB is used as data source and the telemetry events are stored through Apache Camel with:

  • a route getting drivers related data for storing telemetry, motion and car status data;
  • a route getting the EVENT type raw UDP packets for storing fastest lap and speedtrap events;

Kafka to InfluxDB

Repository structure

Contains different components for ingesting and handling Formula 1 202x game (by CodeMasters) telemetry data through Apache Kafka.

  • udp-kafka: Apache Camel application bridging the telemetry packets got on UDP from the Formula 1 202x game to Apache Kafka to different topics:
    • f1-telemetry-packets contains the raw Packet(s);
    • f1-telemetry-events contains only the raw Packet(s) of EVENT type;
    • f1-telemetry-drivers contains the Driver messages as result of aggregating Packet(s) in the same frame with telemetry data for all drivers;
  • consumer: Apache Kafka client application consuming Driver messages from Apache Kafka;
  • streams-avg-speed: Apache Kafka Streams API based application getting raw Driver(s), processing them in real time to get average speed in a 5 seconds window and writing to Apache Kafka to the f1-telemetry-streams-avg-speed topic;
  • streams-laps: Apache Kafka Streams API based application getting raw Driver(s), processing them in real time to get the best overall times in the three track sectors and writing to Apache Kafka to the f1-telemetry-best-overall-sector topic;
  • common: common library providing model classes and related Apache Kafka serializer/deserializer;
  • kafka-influxdb: Apache Camel application writing driver/car's telemetry data to InfluxDB as time series;
  • webui: A sample Web application showing the race ranking in real time getting Driver(s) from Apache Kafka;
  • dashboard: folder containing Grafana dashboard showing driver/car's telemetry data;
  • deployment: folder containing Kubernetes deployments for all the provided applications;
  • documentation: folder containing documentation about how to deploy the entire solution;

The Formula 1 2020 game UDP packets specification is here. The library used for decoding the packets is here.

Documentation

You can find more information about building, deploying and running the solution in the documentation here

Dashboards

The telemetry dashboard shows information like speed, engine (rpm), throttle and brake.

Telemetry

The motion dashboard shows information about the car in motion like the G-force.

Motion

The car status dashboard shows information mostly related to the status of each car, for example wings damages and fuel in tank.

Car Status

The events dashboard shows race events like max speed trap and fastest lap.

Events

The driver dashboard allows to get data for a single driver, selecting one through the corresponding drop down list. It has a top bar with information about current lap, position, distance and lap times.

Driver

It also has some graphs showing specific driver data related to throttle/brake, engine/speed, gear/clutch, brakes and steering.

Driver

Driver

It also shows specific information about tyres like, for example, the compound, the age laps, wear, surface temperature and damage

Driver

Driver

The streams dashboard shows data about processed telemetry data through Kafka Streams application. The first one is about the average speed during the last 5 seconds.

Streams

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].