Data Explanation - Asviix/F1Manager2024Logger GitHub Wiki

Available Properties

Below is a list of all available properties, divided into categories. These properties can be accessed using SimHub's Jint scripting engine.

Game Properties

Property Name Type Description Example Access (Jint) Historical Data Access
CameraFocusedOn string The name of the car the camera is currently focused on. See Car Focus Data return JSON.parse($prop('F1ManagerPlotter.History.' + '$prop('F1ManagerPlotter.CameraFocusedOn')' + '.Lap<LapNumber>)).Turns[<TurnNumber>].Speed')

Session Properties

Property Name Type Description Example Access (Jint) Historical Data Access
TimeSpeed float Time Fast-Forward Multiplicator return $prop('F1ManagerPlotter.TimeSpeed') NOT AVAILABLE
TimeElapsed float Time Elapsed in the session (seconds) return $prop('F1ManagerPlotter.TimeElapsed') NOT AVAILABLE
TrackName string Track Name return $prop('F1ManagerPlotter.TrackName') NOT AVAILABLE
BestSessionTime float Best Time in the session return $prop('F1ManagerPlotter.BestSessionTime') NOT AVAILABLE
RubberState int Rubber on Track return $prop('F1ManagerPlotter.RubberState') NOT AVAILABLE
SessionType string Type of the session return $prop('F1ManagerPlotter.SessionType') NOT AVAILABLE
SessionTypeShort string Short Type of the session return $prop('F1ManagerPlotter.SessionTypeShort') NOT AVAILABLE
AirTemp float Air Temperature in the session return $prop('F1ManagerPlotter.AirTemp') NOT AVAILABLE
TrackTemp float Track Temperature in the session return $prop('F1ManagerPlotter.TrackTemp') NOT AVAILABLE
Weather string Weather in the session return $prop('F1ManagerPlotter.Weather') NOT AVAILABLE

Car Properties (replace with actual car name, e.g. "Ferrari1")

Property Name Type Description Example Access (Jint) Historical Data Access
<CarName>_Position int Car's position in the race return $prop('F1ManagerPlotter.Ferrari1_Position') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].Position'
<CarName>_DriverNumber int Driver's number return $prop('F1ManagerPlotter.Ferrari1_DriverNumber') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].DriverNumber'
<CarName>_DriverFirstName string Driver's first name return $prop('F1ManagerPlotter.Ferrari1_DriverFirstName') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].DriverFirstName'
<CarName>_DriverLastName string Driver's last name return $prop('F1ManagerPlotter.Ferrari1_DriverLastName') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].DriverLastName'
<CarName>_DriverTeamName string Name of the Driver's Team return $prop('F1ManagerPlotter.Ferrari1_DriverTeamName') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].TeamName'
<CarName>_PitStopStatus string Pit Stop Status return $prop('F1ManagerPlotter.Ferrari1_PitStopStatus') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].PitStopStatus'
<CarName>_TurnNumber int Current turn number return $prop('F1ManagerPlotter.Ferrari1_TurnNumber') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].TurnNumber'
<CarName>_CurrentLap int Current lap number return $prop('F1ManagerPlotter.Ferrari1_CurrentLap') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].CurrentLap'
<CarName>_CurrentLapTime float Current lap time (seconds) return $prop('F1ManagerPlotter.Ferrari1_CurrentLapTime') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].CurrentLapTime'
<CarName>_DriverBestLap float Driver's best lap time (seconds) return $prop('F1ManagerPlotter.Ferrari1_DriverBestLap') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].DriverBestLap'
<CarName>_LastLapTime float Last lap time (seconds) return $prop('F1ManagerPlotter.Ferrari1_LastLapTime') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].LastLapTime'
<CarName>_LastS1Time float Last Sector 1 time (seconds) return $prop('F1ManagerPlotter.Ferrari1_LastS1Time') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].LastS1Time'
<CarName>_LastS2Time float Last Sector 2 time (seconds) return $prop('F1ManagerPlotter.Ferrari1_LastS2Time') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].LastS2Time'
<CarName>_LastS3Time float Last Sector 3 time (seconds) return $prop('F1ManagerPlotter.Ferrari1_LastS3Time') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].LastS3Time'
<CarName>_Speed int Speed (km/h) return $prop('F1ManagerPlotter.Ferrari1_Speed') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].Speed'
<CarName>_Rpm int RPM return $prop('F1ManagerPlotter.Ferrari1_Rpm') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].RPM'
<CarName>_Gear int Current gear return $prop('F1ManagerPlotter.Ferrari1_Gear') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].Gear'
<CarName>_Charge float ERS Charge return $prop('F1ManagerPlotter.Ferrari1_Charge') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].Charge'
<CarName>_Fuel float Current fuel return $prop('F1ManagerPlotter.Ferrari1_Fuel') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].Fuel'
<CarName>_TireCompound string Tire Compound return $prop('F1ManagerPlotter.Ferrari1_TireCompound') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].TireCompound'
<CarName>_flTemp float Front Left tire temperature return $prop('F1ManagerPlotter.Ferrari1_flTemp') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].FLTemp'
<CarName>_frTemp float Front Right tire temperature return $prop('F1ManagerPlotter.Ferrari1_frTemp') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].FRTemp'
<CarName>_rlTemp float Rear Left tire temperature return $prop('F1ManagerPlotter.Ferrari1_rlTemp') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].RLTemp'
<CarName>_rrTemp float Rear Right tire temperature return $prop('F1ManagerPlotter.Ferrari1_rrTemp') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].RRTemp'
<CarName>_flDeg float Front Left tire wear return $prop('F1ManagerPlotter.Ferrari1_flDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].FLWear'
<CarName>_frDeg float Front Right tire wear return $prop('F1ManagerPlotter.Ferrari1_frDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].FRWear'
<CarName>_rlDeg float Rear Left tire wear return $prop('F1ManagerPlotter.Ferrari1_rlDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].RLWear'
<CarName>_rrDeg float Rear Right tire wear return $prop('F1ManagerPlotter.Ferrari1_rrDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].RRWear'
<CarName>_PaceMode string Pace Mode return $prop('F1ManagerPlotter.Ferrari1_PaceMode') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].PaceMode'
<CarName>_FuelMode string Fuel Mode return $prop('F1ManagerPlotter.Ferrari1_FuelMode') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].FuelMode'
<CarName>_ERSMode string ERS Mode return $prop('F1ManagerPlotter.Ferrari1_ERSMode') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].ERSMode'
<CarName>_DRSMode string DRS Mode return $prop('F1ManagerPlotter.Ferrari1_DRSMode') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].DRSMode'
<CarName>_EngineTemp float Engine Temperature return $prop('F1ManagerPlotter.Ferrari1_EngineTemp') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].EngineTemp'
<CarName>_EngineDeg float Engine Wear return $prop('F1ManagerPlotter.Ferrari1_EngineDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].EngineWear'
<CarName>_GearboxDeg float Gearbox Wear return $prop('F1ManagerPlotter.Ferrari1_GearboxDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].GearboxWear'
<CarName>_ERSDeg float ERS Wear return $prop('F1ManagerPlotter.Ferrari1_ERSDeg') return JSON.parse($prop('F1ManagerPlotter.History.Ferrari1.Lap<LapNumber>)).Turns[<TurnNumber>].ERSWear'

Formatting Data

Some properties may require formatting for better usability:

  • TimeElapsed: This value is in seconds. To convert it to minutes:seconds format:

    let timeElapsed = $prop(F1ManagerPlotter.TimeElapsed);
    let formattedTime = Math.floor(timeElapsed / 60) + ":" + (timeElapsed % 60).toFixed(0).padStart(2, "0");
  • Other Time Values (e.g., CurrentLapTime, LastLapTime, DriverBestLap): These values are in seconds.milliseconds. To convert them to minutes:seconds:milliseconds format:

    let timeValue = $prop(F1ManagerPlotter.<CarName>_CurrentLapTime);
    let minutes = Math.floor(timeValue / 60);
    let seconds = Math.floor(timeValue % 60);
    let milliseconds = Math.round((timeValue % 1) * 1000);
    let formattedTime = `${minutes}:${seconds.toString().padStart(2, "0")}.${milliseconds.toString().padStart(3, "0")}`;
  • Using SimHub's Built-in Function: SimHub provides a built-in function secondstotimespan(seconds) for converting any time value into a readable format. For example:

    let formattedTime = secondstotimespan($prop(F1ManagerPlotter.<CarName>_CurrentLapTime));
  • Truncating Decimals: To truncate a number to a specific number of decimal places:

    function truncateToDecimals(value, decimals) {
      let factor = Math.pow(10, decimals);
      return Math.floor(value * factor) / factor;
    }
    let truncatedValue = truncateToDecimals($prop(F1ManagerPlotter.<CarName>_Charge), 2); // Example: Truncate to 2 decimals

Note

To use this plugin to its full potential, a basic understanding of JavaScript is recommended.

⚠️ **GitHub.com Fallback** ⚠️