Skip to main content

Riviamigo Metrics Reference

Compiled from Teslamate (open-source, most comprehensive), Tessie, and Rivian Roamer. Used to ensure full parity with the best-in-class EV trackers.


1. Battery Health

MetricUnitSourceNotes
State of Charge (SoC)%Time-seriesRaw + smoothed
Estimated rangemi / kmTime-seriesBased on reported DTE
Battery capacity (rated)kWhStaticFrom vehicle config
Battery capacity (usable)kWhDerivedFrom charge session data
Degradation %%DerivedUsable/rated × 100
Phantom drain rate%/hrDerivedSoC lost while parked/asleep
Phantom drain daily total%DerivedAggregated per day
Charge limit%Time-seriesUser-set limit
Preconditioning activeboolTime-seriesBattery thermal prep
HV battery thermal eventenumTime-seriesNone/Reduced/Forced
12V battery healthenumTime-seriesNormal/Warning/Critical
Cell voltage min/maxVOptionalNot always exposed by Rivian

2. Charging

MetricUnitSourceNotes
Charger typeAC/L2/DCFCPer session
Charger power (live)kWTime-seriesPeak and live
Energy addedkWhPer session
SoC start → end%Per session
DurationminPer session
Charge cost$Per sessionCalculated from rate × kWh
Charge curvekW @ SoC%Time-seriesFor charge speed visualization
Time to fullminLive
Charge rate (avg)kWPer sessionenergy_added / duration
Location (home / away)bool + namePer sessionGeo-reverse or home radius
Sessions per weekcountAggregate
Energy per weekkWhAggregate
Cost per week / month$Aggregate
DC fast charge countcountAggregateCounts DCFC use
Charge efficiency%DerivedAC-in vs kWh-added (if AC inlet measured)
Peak charge speedkWPer session
kWh added at home vs awaykWhAggregateSplit by location

3. Trips / Driving

MetricUnitSourceNotes
DistancemiPer trip
DurationminPer trip
Start / end SoC%Per trip
Energy usedkWhPer trip
EfficiencyWh/miPer trip
Max speedmphPer trip
Avg speedmphPer trip
Drive modeenumPer tripSport / All-Purpose / Conserve / Off-Road
Outside temp°C / °FPer tripSnapshot at trip start
Elevation gainft / mPer tripFrom GPS track
Route map (GPS track)pathPer tripLat/lng polyline
Speed profilemph over timePer tripFor speed-over-elapsed chart
Altitude profileft over distPer tripElevation vs distance
Signed net power (estimated)kW over timePer tripDerived from bounded SoC changes and median battery capacity when direct power is unavailable; positive = pack discharge, negative = net regeneration
Direct traction / regen powerkW over timePer tripNullable upstream fields; used when at least two valid direct samples are present
Regen braking %% of energyPer tripregen_kWh / total_kWh
Trips per weekcountAggregate
Miles per weekmiAggregate
Efficiency trendWh/mi over timePer tripEvery completed trip plus a distance-weighted rolling 24-hour line
Efficiency by drive modeWh/miAggregateGrouped
Efficiency vs tempWh/mi @ tempAggregateScatter / binned
Efficiency vs speedWh/mi @ speedAggregateBinned speed buckets

4. Live / Real-Time Vehicle Status

MetricUnitSourceNotes
Power stateenumLiveSleep / Ready / Go / Drive / Charging
SpeedmphLive
GearenumLiveP / R / N / D
OdometermiLiveCumulative
Latitude / LongitudedegLiveCurrent position
AltitudemLive
HeadingdegOptional
Is onlineboolLive
Last seentimestampDerived
Cabin temp°CLive
Driver set temp°CLive
Outside temp°CLiveIf reported
HVAC modeenumOptionalHeat / Cool / Auto / Off
HVAC runningboolOptional
Doors lockedboolOptional
Windows statusenumOptional
Tire pressure (per wheel)PSIOptionalFront-L/R, Rear-L/R
Center display versionstringOptionalSoftware version

5. Efficiency & Performance

MetricUnitSourceNotes
Avg efficiency (period)Wh/miAggregateConfigurable window
P10 / P90 efficiencyWh/miAggregateDistribution percentiles
Efficiency by drive modeWh/miAggregateGrouped bar chart
Efficiency vs temperatureWh/miAggregateCold/warm correction insight
Avg outside temperature°CTrip weather timelineTime-weighted merged vehicle/Open-Meteo samples; estimated provenance is shown in the UI
Efficiency trend (rolling)Wh/miPer trip time-series24-hour distance-weighted rolling average
Cost per mile$/miDerivedFrom kWh rate setting
Energy cost total (period)$Aggregate
Regen recovered (period)kWhAggregate
Regen as % of consumption%Derived

6. Climate & Environment

MetricUnitSourceNotes
Cabin temp history°CTime-seriesWhen online
Outside temp correlation°C vs Wh/miDerivedUses the same route-aware trip summary as the timeline and efficiency buckets
Preconditioning eventscount/durationAggregate
Cabin overheat protectionboolOptional

7. Odometer & Lifetime Stats

MetricUnitSourceNotes
Total lifetime milesmiLive odometerDashboard should use latest odometer_miles first, with trip-distance sum only as a fallback.
Total lifetime tripscountCumulative
Total lifetime energy usedkWhCumulative
Total lifetime charge sessionscountCumulative
Total lifetime energy chargedkWhCumulative
Total cost (energy)$Cumulative
Avg efficiency (lifetime)Wh/miDerived
Longest tripmiLifetime best
Highest speedmphLifetime best

8. Gaps vs Current Implementation

Schema additions needed (timeseries.telemetry)

  • heading_deg FLOAT8
  • Raw outside_temp_c acquisition remains unavailable from the current Rivian subscription; the normalized column is retained so vehicle readings can supersede estimates if upstream support appears.
  • hvac_active BOOLEAN
  • regen_power_kw FLOAT8 (direct upstream field when available)
  • power_kw FLOAT8 (direct net traction power when available; positive = consuming, negative = regen)
  • Signed net power is also derived at read time from SoC deltas when direct fields are absent; it is not written back into telemetry.
  • elevation_gain_m FLOAT8 (per-event or derived from altitude delta)
  • tire_pressure_fl_psi FLOAT8
  • tire_pressure_fr_psi FLOAT8
  • tire_pressure_rl_psi FLOAT8
  • tire_pressure_rr_psi FLOAT8

Trip record additions needed (riviamigo.trips)

  • avg_speed_mph FLOAT8
  • energy_wh FLOAT8 (rename from efficiency_wh_per_mile → add absolute)
  • regen_wh FLOAT8
  • elevation_gain_m FLOAT8
  • outside_temp_c FLOAT8 (already in schema ✓)
  • outside_temp_source TEXT and route-aware trip_weather_samples (implemented)

Time-series API density

  • POST /v1/metrics/batch accepts density: "full" for dashboard chart and sparkline requests. Full responses contain every retained source point in the requested timeframe and omit max_points; compact retains the legacy capped response for compatibility callers.
  • GET /v1/efficiency/trend returns per-trip ts, trip_efficiency_wh_mi, and rolling_24h_wh_mi values. It does not group trips by local day.
  • Battery and charge-curve time-series routes return their direct normalized telemetry samples when retained. Cross-session DC curves preserve raw session/SoC evidence, collapsing only duplicate readings at the same SoC in the same session. Charge curves identify storage provenance with sample_source and rate provenance with power_method: recorded is a Rivian-supplied kW reading, while soc_delta is calculated from observed SoC, capacity, and elapsed time. rivian_charge_curve_points use interpolated SoC and are estimated history rather than true-curve inputs.

Historical API inventory

  • GET /v1/battery/degradation — capacity trend over time
  • GET /v1/efficiency/vs-temp — efficiency binned by temperature
  • GET /v1/efficiency/vs-speed — efficiency binned by avg speed
  • GET /v1/efficiency/trend — per-trip Wh/mi with a rolling 24-hour trend
  • GET /v1/stats/lifetime — lifetime cumulative stats
  • GET /v1/trips/:id/elevation — altitude profile for a trip
  • GET /v1/vehicles/:id/raw-data — raw telemetry coverage and recent samples for acquisition debugging

New chart components needed

  • DegradationChart — capacity % over odometer or time
  • EfficiencyVsTempChart — scatter/binned bar
  • EfficiencyTrendChart — rolling avg line
  • ElevationProfileChart — altitude vs distance for a trip
  • ChargingHeatmap — day-of-week / hour-of-day charge frequency

UI layout needed

  • MetricTabs primitive — pill tabs or segmented control, collapses to dropdown at N > 5
  • Battery page: tabs for SoC / Range / Phantom Drain / Degradation
  • Efficiency page: tabs for By Mode / vs Temp / vs Speed / Trend
  • Charging page: tabs for Sessions / Curve / Summary / Heatmap
  • Trips page: tabs for List / Map / Stats