F1 Live Timing TUI for all F1 sessions with variable delay to sync to your TV. Supports replaying previously recorded sessions.
F1 Live Timing TUI for all F1 sessions with variable delay to sync to your TV. Supports replaying previously recorded sessions.
undercut-f1 is an open source F1 Live Timing client.
undercutf1 is a TUI application which uses UndercutF1.Data to show a Live Timing screen during sessions, and records the data for future session replays.
F1 live broadcasts are usually delayed by some indeterminable amount (usually 30-60 seconds), so the TUI allows you to delay the data being displayed so that you can match up what you see on your screen to what you see on your TV.
The UndercutF1.Data library is provided to facilitate connectivity with the F1 Live Timing data stream, and handle all the processing of the incoming data. It also allows for "simulated" streams, where previously recorded data streams can be played back to allow for easy development/testing.
Feature Highlights:
[!WARNING] Since the 2025 Dutch GP, the F1 Live Timing feed no longer freely publishes some of the data we need to provide all existing functionality.
The following functionality is now only available to those who have an active F1 TV subscription:
- Driver Tracker (live position of each car is unavailable)
- DRS Indicator in Timing Screens
- Team/Drivers championship tables
- Pit Stop times (in box and in pitlane)
Importing a session after it finishes still fetches all the data, so all functionality is available if you use undercut-f1 after a race finishes.
Linking your F1 TV account with undercut-f1 is as simple as running
undercutf1 loginbefore starting your session, and following the instructions displayed. See F1 TV Account Login for details.
undercutf1
This project is heavily inspired by the FastF1 project by theOehrly. They did a lot of the work understanding the SignalR stream coming from the F1 Live Timing service. Visit their project if you'd like to do any sort of data analysis on past F1 events, or gather live timing data using their module.
Monitor sector times and gaps, see recent race control messages, capture position changes, observe pit strategies, and more with the standard Timing Tower view.
Use the cursor controlled by the ▼/▲ Cursor actions in the O Timing Tower screen to select a specific driver (in this case Norris) to see the relative interval between that driver and all other. This is useful for determining where a driver will fall to after a pit stop, or looking at pit windows during under cuts.
Additionally, the gap between the selected drivers and those around them over the last four laps will be displayed at the bottom of the screen. This allows you to easily see evolving gaps over time and evaluate how soon a driver may catch up or pull away.
Similar to the above comparison feature, you can also select two drivers to enter a persistent comparison mode, by using the C Select for Compare action when your cursor is over a particular driver. Selecting two drivers in this way will replace the normal comparison panel with a persistent comparison between the two selected drivers.
This allows you to easily monitor the gaps between two drivers who are not next to eachother on track, for example if they are on contra tyre strategies or to monitor a driver pit window against another driver.
Once you select the two driver to compare, move your cursor back to the top (position 0) to have the Compare column show relative gaps to the first selected driver.
Monitor live/best sector times, gaps, tyres, and lap deletions easily with the specialized timing tower for non-race sessions.
The Race Control page shows all Race Control Messages for the session, along with other session data such as the Weather.
The Driver Tracker page shows a track map overlaid with selected drivers. Use the ▼/▲ Cursor actions to choose drivers, then use the ⏎ Toggle Select action to toggle the inclusion of the driver on the track map. The driver under the current cursor position will also be highlighted on the map, and timing gaps will switch to interval between that driver and all other drivers.
[!NOTE] The Driver Tracker and Timing History charts work using terminal graphics protocols. UndercutF1 supports three protocols:
Between these three protocols, UndercutF1 should support a wide variety of terminals. I personally try to test on iTerm2, Ghostty, WezTerm, and Kitty. Windows Terminal should be supported via Sixel, but is rarely tested.
Run
undercutf1 infoto see if UndercutF1 detects graphics protocol support in your terminal.If the terminal you use doesn't show the graphics, please raise an issue and I'll try to implement support!
The Tyre Stint page shows the tyre strategy for all the drivers. At a glance, see what tyres the drivers have used, how old they are, and if they are on an offset strategy to any other drivers. Each stint contains the pit stop time and pit lane time for the pit stop at the start of the stint.
Use the ▼/▲ Cursor actions to view more information for a particular drivers strategy.
In the Timing by Lap page, you can use the cursor controlled by the ▼/▲ Cursor actions to view historical snapshots of the timing tower at the end of every lap. This view will show position changes during that lap, and relative changes in Gap and Interval. Scrolling through laps allows you to build a picture of how the race is unfolding.
Charts on the right display how Gap to Leader and Lap Time for all selected drivers over the last 15 laps, letting you see trends and catch strategies unfolding.
A Delta to Average Lap chart on the bottom shows each drivers relative gap to the average lap time on each lap. This gives a slightly cleaner understanding of the pace of each car on each lap, accounting for overall race pace changes where the entire field slows down for e.g. a safety car of changing conditions. Big spikes are usually pit laps which make it easy to see how a drivers strategy is playing out.
You can show/hide drivers here by using the D Select Drivers action and then hitting enter on the drivers you have to show/hide. The drivers hidden here will also be hidden on the Driver Tracker page.
Listen to team radio clips from anytime in the session, and use a local ML model (Whisper) to transcribe the audio on demand. Transcription accuracy is fairly low, depending on the that days audio quality and driver. Suggestions welcome for improving this!
See Prerequisites to ensure you are able to playback audio.
undercutf1UndercutF1 tries to statically link as many dependencies as possible to make installation and usage easy. There are however some utilities that may need to be installed for some functionality:
mpg123 available on the PATH. For apt-based systems, you can install with apt install mpg123afplay available on the PATH. This should be installed by default.ffplay) - see below for installation instructions.preferFfmpegPlayback configuration to use ffplay instead of mpg123/afplayapt install ffmpegbrew install ffmpegwinget install ffmpeglibfontconfig which may not be installed on your system by default.apt install libfontconfigbrew install fontconfigNo open issues yet, or sync has not completed.