Advanced F1 racing with Elastic (part 2)
Retrieve all telemetry data from the PS4.
PS4 F1 Racing for Advanced Users! (Part 2)
At Puur Data's office there is a Sim Racing Rig with a PS4 and F1 2020. The F1 games from Codemasters offer the possibility to send telemetry data via the UDP protocol. For our simulator we have already worked with the telemetry data from F1 2017.
In the meantime, there have been a number of updates to this game and some things have changed in the telemetry package that the game sends. We have created a new configuration file for F1 2020. With the updated config file, you will receive approximately 10,000 log lines per minute. This includes the status of the car, damage, temperature, speed, lap and sector times. The .conf file makes it possible to index the telemetry data from F1 2020 in Elasticsearch. This data can then be visualized via a Dashboard or a Canvas, for example. If you were to simulate a race weekend, you would receive more than 150 million values!
We have created a Canvas workpad to give an example of visualizing the data. Read below how to make one yourself!
Necessities
– Linux server with Elastic, Kibana and Logstash;
– Playstation 4;
– Game F1 2020;
– Racing seat with steering wheel (that makes it more fun)
– The 'conf' file;
– Driver with ego who can take a dent (after all, everything can be analysed!).
Steps
Step 1 -> Install the Elastic server. Make sure you have a Linux server with at least 4GB of internal memory, a few cores and enough disk space. Install Elastic, Kibana and Logstash on it. How to do this is described on the website of elastic.
Step 2 -> Download the 'conf' file for Logstash (HERE) and modify it (e.g. username and password) and make sure Logstash is started with this file.
Step 3 -> Download our Canvas workpad to get a taste of what Canvas can do. You can (HERE) find. Just make sure that the data is indexed in: f1_data and that there is an index pattern called: f1*
Want to try our Canvas workpad? Set the auto-refresh interval to 1 or 5 seconds.
Step 4 -> On the Playstation, configure the UDP port and IP address in the game. This can be found on the screen when you press 'options' while driving. Make sure the IP address is the server address and the UDP port must match the one in the 'conf' file
The 'conf' file was created for F1 2020. This is a nice example of how to collect and analyze real-time data. Good luck and have fun!
Knowing more?
Do you want to know more or do you have a question about the possibilities, call us +31 (0)88 – 7887 328, go to Contact or fill in the form below!