MarcG
Active Member
I just looked into how Tesla transmits data to the app via API for the aggregate Safety Score page, and I found some very interesting information that may not have been shared here before.
I'm including a snippet of the data params below, but here are some takeaways I gathered:
I'm including a snippet of the data params below, but here are some takeaways I gathered:
- There's possibly a "drive rating" metric coming, though it's currently showing 0
- Besides miles driven, Tesla is potentially counting hours driven, though it's currently showing "null"
- The "raw" numbers for each metric are transmitted with lots of decimals via API, but truncated to 1 decimal in the app
- Tesla is also able to report which decile for each metric I'm sitting in (top 20% for most, 10% for braking for me)
- However the xxxDisplayDecile params are all "null" for now, so perhaps they will eventually show up in the app
- "Aggressive turning" is referred to as "harsh cornering" in the API, which is interesting choice of words
- Tesla is likely already tracking longitudinal acceleration variance, but it's currently showing up as "null"
- There are also metrics for ABS events including one triggered by user (likely the driver), also both "null" for now
Code:
"driveRating":0
"safetyScore":99
"milesDriven":550
"driveHours":null
"autoSteerStrikeoutsCount":0
"autoSteerStrikeoutsDecile":0
"autoSteerStrikeoutsRaw":0
"forwardCollisionWarningsDecile":0.2
"forwardCollisionWarningsCount":null
"forwardCollisionWarningsAvg":1.8
"forwardCollisionWarningsMedian":10.2
"forwardCollisionWarningsRaw":1.81891
"headwayRatioAvg":2.5
"headwayRatioDecile":0.2
"headwayRatioDisplayDecile":null
"headwayRatioMedian":15.8
"headwayRatioRaw":2.46292
"harshBrakingPercentAvg":0.2
"harshBrakingPercentDecile":0.1
"harshBrakingPercentDisplayDecile":null
"harshBrakingPercentMedian":1.8
"harshBrakingPercentRaw":0.206897
"harshCorneringPercentAvg":0.8
"harshCorneringPercentDecile":0.2
"harshCorneringPercentDisplayDecile":null
"harshCorneringPercentMedian":2.8
"harshCorneringPercentRaw":0.837775
"longitudinalAccelVariance":null
"absEvents":null
"userAbsEvents":null
Last edited: