Session

The full inventory of session related properties.

P Available in Team Pro S Available in Team Starter

Properties

Property Name Type Definition Tier
Session.GameId string SimHub’s id of the running game (IRacing, LMU, AssettoCorsaCompetizione…) P S
Session.Type string Session name as the game reports it P S
Session.TypeNormalised string P, Q, R or [NULL] P S
Session.AirTemp double Air temperature, in Unit.Temp P S
Session.TrackTemp double Track surface temperature, in Unit.Temp P S
Session.WetnessTrend int 1 while the track is getting wetter, -1 while it’s drying, 0 when steady or not known. It stays for 5 minutes after the wetness last changed that way. iRacing, LMU, rFactor 2 and ACC (from the grip status: greasy to flooded); 0 in other sims P S
Session.TrackId string The game’s id of the track P S
Session.TrackLength double Track length, in meters P S
Session.TrackName string Track name, from the Lovely track data P S
Session.TrackSegment string Name of the turn or straight the player is on, from the Lovely track data; empty when the track has no data P S
Session.TrackTurn int Number of the turn the player is in, from the Lovely track data; empty on a straight or when the track has no data P S
Session.TimeLeft TimeSpan Time left in the session P S
Session.TotalLaps int Total laps in a lap-limited session P S
Session.SectorsCount int Number of sectors on the track P S
Session.MultiClass string True when the session has more than one car class P S
Session.IsSimhubReplay int 1 while SimHub plays back one of its own recordings, 0 otherwise. A game’s own replay viewer isn’t detected (it looks live to SimHub) P S

Units

Property Name Type Definition Tier
Unit.Speed string Unit used for speeds, as set in SimHub P S
Unit.Fuel string Unit used for fuel, as set in SimHub P S
Unit.Pressure string Unit used for tyre pressures, as set in SimHub P S
Unit.Temp string Unit used for temperatures, as set in SimHub P S
Unit.OilPressure string Unit used for oil pressure, as set in SimHub P S

Flags

Each flag is 1 while it’s shown to the player, 0 otherwise.

Property Name Type Definition Tier
Flag.Black int Black flag P S
Flag.Blue int Blue flag P S
Flag.Checkered int Chequered flag P S
Flag.Green int Green flag P S
Flag.Orange int Orange (meatball) flag P S
Flag.White int White flag P S
Flag.Yellow int Yellow flag P S

Pit Loss

What a pit stop costs the player’s class at the current track, learned by the plugin from every pit lane visit of the cars in the player’s class (in any session, kept on the PC and used again in later sessions). The time spent in the pit lane is learned from the visits; the time the same stretch of track takes on a normal lap is timed live in the current session, so the values follow rain, a drying track and pace. Times are text in seconds, in invariant format (33.4), and stay empty until the class has at least 3 pit visits at the track (or the track data has an estimate). Members also get the values other drivers share from their online races, so at tracks the PC hasn’t learned yet they show once a few cars of the class have driven past the pit lane (PitLoss.Source says which are used).

Property Name Type Definition Tier
PitLoss.DriveThrough string Time lost by driving through the pit lane without stopping, compared with staying on track. From the class’s drive-throughs, or estimated from its stops until it has 3 P S
PitLoss.Stop string Time lost by a typical pit stop of the class (the pit lane plus the usual time standing in the box), compared with staying on track P S
PitLoss.Standing string The usual time the class stands still in the box (refuelling, tyres, driver change); included in PitLoss.Stop P S
PitLoss.Stretch string Time the class takes to drive the stretch of track the pit lane bypasses, from pit entry to pit exit: timed live in the session, or as learned before until 3 cars of the class have driven it P S
PitLoss.Samples int Pit visits (stops and drive-throughs) the values are based on; with PitLoss.Source shared, the races they’re from. Until there are values, the visits kept so far (0: none seen yet) P S
PitLoss.Source string Where the values come from: session (3 or more pit visits of the class in this session; 5 or more for members when shared values exist), shared (what other drivers’ online races share, for members, until this session has enough), local (the visits learned on this PC before), track (the track data’s basic estimate, whole seconds, no standing time; when nothing else is known). Empty until known P S
PitLoss.Spent string While the player is in the pit lane: the time the visit has cost so far, compared with staying on track. It grows by a second a second while standing in the box and more slowly at the pit speed limit, and reaches the visit’s whole loss at the pit exit; subtract it from PitLoss.Stop or PitLoss.DriveThrough for the time still to come. Empty outside the pit lane P S
PitLoss.Stood string While the player is in the pit lane: how long they’ve stood still in the visit so far. Once they drive out of the box, it’s what this stop’s standing actually took: use it in place of PitLoss.Standing (PitLoss.Stop - PitLoss.Standing + PitLoss.Stood) for what this stop costs. Empty outside the pit lane P S