Advanced F1 Racing with Elastic (Part 2)
Get all telemetry data from the PS4
PS4 F1 Racing for Advanced! (Part 2)
At Puur Data in the office 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 changes have been made in the telemetry package that the game sends. We have made a new configuration file for F1 2020. With the updated config. file you will receive approximately 10,000 log lines per minute. Think of the status of the car, damage, temperature, speed, lap and sector times. Via the .conf file it is possible to index the telemetry data from F1 2020 in Elasticsearch. This data can then be visualized, for example, via a Dashboard or a Canvas. If you simulate a race weekend you will receive more than 150 million values!
We have created a Canvas workpath to give an example of visualizing the data. Read below how you can make this yourself!
– 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!).
Step 1 -> Install the Elastic server. Provide a, preferably, Linux server with at least 4 GB internal memory, a few cores and sufficient disk space. Install Elastic, Kibana and Logstash on it. How this should be done is described on the website of elastic.
Step 2 -> Download the 'conf' file for Logstash (HERE) and edit it (eg username and password) and make sure Logstash is started with this file.
Step 3 -> Download our Canvas workpad, so that you have an example of the possibilities of Canvas. You can (HERE) find. Just make sure that the data is indexed in: f1_data and that there is an index pattern called: f1*
Would you like to try our Canvas workpad? Then set the auto-refresh interval to 1 or 5 seconds.
Step 4 -> configure the UDP port and IP address on the Playstation in the game. This can be found in the screen when you press 'options' while driving. Make sure the IP address is the address of the server and the UDP port must match the one in the 'conf' file
The 'conf' file was created for F1 2020. This is a great example of how to collect and analyze real-time data. Good luck and have fun!
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!