Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

undercut-f1

> 数据库
Open source

F1 Live Timing TUI for all F1 sessions with variable delay to sync to your TV. Supports replaying previously recorded sessions.

901 stars0 likes2 views
WebsiteGitHub

About

F1 Live Timing TUI for all F1 sessions with variable delay to sync to your TV. Supports replaying previously recorded sessions.

undercut-f1

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:

  • Timing Tower showing for each driver:
    • Live sector times, with colouring for personal/overall fastest
    • Last & Best Lap
    • Current tyre
    • Age of current tyre
    • Interval to driver in front
    • Gap to leader
    • Gap between a selected driver and all other drivers (useful for monitoring pit windows)
  • Pit Stop Strategy gives you at-a-glance information about all the drivers strategies
  • Race Control messages including investigations, penalties, lap deletions, and weather
  • Driver Tracker shows the position of selected drivers on a live track map
  • Lap-by-lap Timing History to observe gaps over time
  • Pause the session clock when you pause external video players (such as Kodi), so that your timing screen remains in sync with your feed.

[!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 login before starting your session, and following the instructions displayed. See F1 TV Account Login for details.

Table of Contents

  • Inspiration
  • UndercutF1 in Action
    • Timing Tower during a Race
    • Using a Cursor to Display Relative Gap for a Specific Driver
    • Track Gaps between Two Drivers Over Time
    • Timing Tower during Practice/Qualifying
    • Race Control Page
    • Driver Tracker
    • Tyre Stint / Strategy
    • Using a Cursor to View Timing History by Lap
    • Listen to and Transcribe Team Radio
  • Getting Started with undercutf1
    • Installation
      • Prerequisites
      • Install and run as a dotnet tool
      • Install from Homebrew
      • Install and run the standalone executable
      • Run using the docker image
        • Known Issues with Docker
      • Run directly from Source
    • Start Timing for a Live Session
    • Start Timing for a Pre-recorded Session
    • Download a previous session data for replay
    • During the Session
      • Managing Delay
      • Using the Cursor
  • Configuration
    • Default Directories
    • F1 TV Account Login
  • Logging
  • Alternate Key Binds
  • Data Recording and Replay
  • API
    • Control API
    • Data API
  • External Session Clock Sync
  • Notice

Inspiration

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.

UndercutF1 in Action

Timing Tower during a Race

Monitor sector times and gaps, see recent race control messages, capture position changes, observe pit strategies, and more with the standard Timing Tower view.

Using a Cursor to Display Relative Gap for a Specific Driver

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.

Track Gaps between Two Drivers Over Time

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.

Timing Tower during Practice/Qualifying

Monitor live/best sector times, gaps, tyres, and lap deletions easily with the specialized timing tower for non-race sessions.

Race Control Page

The Race Control page shows all Race Control Messages for the session, along with other session data such as the Weather.

Driver Tracker

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:

  • Kitty Graphics Protocol
  • iTerm2 Inline Image Protocol
  • Sixel

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 info to 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!

Tyre Stint / Strategy

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.

Using a Cursor to View Timing History by Lap

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 and Transcribe Team Radio

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.

Getting Started with undercutf1

Installation

Prerequisites

UndercutF1 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:

  • Team Radio audio playback uses platform-specific command-line executables to play audio files.
    • On Linux, you need mpg123 available on the PATH. For apt-based systems, you can install with apt install mpg123
    • On Mac, you need afplay available on the PATH. This should be installed by default.
    • On Windows, we only support audio playback via FFmpeg (ffplay) - see below for installation instructions.
    • On Linux/Mac, you can use the preferFfmpegPlayback configuration to use ffplay instead of mpg123/afplay
  • Team Radio transcription relies on FFmpeg and Whisper. Whisper models are downloaded on demand (after user confirmation) in the app. See the FFmpeg download page for details on how to install.
    • On Linux apt-based systems, you can install with apt install ffmpeg
    • On Mac with brew, you can install with brew install ffmpeg
    • On Windows with WinGet, you can install with winget install ffmpeg
  • Terminal graphics rely on SkiaSharp. I've statically linked all the skia libs, so you shouldn't need to download skia. However, skia does rely on libfontconfig which may not be installed on your system by default.
    • On Linux apt-based systems, you can install with apt install libfontconfig
    • On Mac with brew, you can install with brew install fontconfig
  • Guided F1 TV sign in (see F1 TV Account Login) uses the library to launch a WebView and guide you through sign in. This isn't r

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#f1formula1formula1-analysisformula1-data-analysis

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库