fleet-telemetry icon indicating copy to clipboard operation
fleet-telemetry copied to clipboard

some vehicle data questions`

Open idonkeyliu opened this issue 1 year ago • 8 comments

  1. How can I determine the total battery capacity from the vehicle data?
  2. How can I obtain the energy consumption information?
  3. How can I distinguish between the new Model 3 and the old Model 3?
  4. How can I differentiate between the long-range version and the standard version?

idonkeyliu avatar May 17 '24 02:05 idonkeyliu

  1. You could extrapolate from vehicle_data's charge_state.battery_range / charge_state.battery_level * 100
  2. This is very vague, you can aggregate data however you need. The API provides up-to-date data.
  3. You should be able to find a field in vehicle data's vehicle_config object which indicates. I haven't tested between the two to see the differences.
  4. Check out the vehicle options endpoint

patrickdemers6 avatar May 24 '24 16:05 patrickdemers6

Hi @patrickdemers6

Another question about vehicle_data: is the field drive_state.power available on Telemetry? Can't find it.

jlestel avatar May 30 '24 23:05 jlestel

I don't think it's available at this time. I'll create a note to consider adding it in a future firmware version.

patrickdemers6 avatar May 31 '24 00:05 patrickdemers6

Hi @patrickdemers6 where can i find details about units of every field in charge_state ? And also details like battery capacity(in kwh) and vehicle's model details ? Can u please provide some help here ?

kanhaiya-2000 avatar Jun 11 '24 10:06 kanhaiya-2000

  1. You could extrapolate from vehicle_data's charge_state.battery_range / charge_state.battery_level * 100
  2. This is very vague, you can aggregate data however you need. The API provides up-to-date data.
  3. You should be able to find a field in vehicle data's vehicle_config object which indicates. I haven't tested between the two to see the differences.
  4. Check out the vehicle options endpoint

A1. You could extrapolate from vehicle_data's charge_state.battery_range / charge_state.battery_level * 100 charge_state.battery_range / charge_state.battery_level * 100. this can obtain total range for full battery, but can not obtain battery capacity (kwh)

A4. image

idonkeyliu avatar Jun 13 '24 12:06 idonkeyliu

Hi @patrickdemers6 where can i find details about units of every field in charge_state ? And also details like battery capacity(in kwh) and vehicle's model details ? Can u please provide some help here ?

I have same question too. Looking forward to receiving a reply.

idonkeyliu avatar Jun 13 '24 12:06 idonkeyliu

I hope i got an approach.

To calculate battery capacity: We have these fields in charge_state "charge_energy_added": 47.01, "charge_miles_added_ideal": 201.0, "charge_miles_added_rated": 201.0, These miles and energy added should be proportional to each other. So ideal battery capacity for a full range = (charge_energy_added / charge_miles_added_ideal)*(ideal_battery_range / battery_level) * 100

Model details: vehicle_config.car_type provides this details.

I have put it so that anyone else doesn't go through all the troubles of looking at the vast json carefully.

kanhaiya-2000 avatar Jun 30 '24 06:06 kanhaiya-2000

I hope i got an approach.

To calculate battery capacity: We have these fields in charge_state "charge_energy_added": 47.01, "charge_miles_added_ideal": 201.0, "charge_miles_added_rated": 201.0, These miles and energy added should be proportional to each other. So ideal battery capacity for a full range = (charge_energy_added / charge_miles_added_ideal)*(ideal_battery_range / battery_level) * 100

Model details: vehicle_config.car_type provides this details.

I have put it so that anyone else doesn't go through all the troubles of looking at the vast json carefully.

Currently, this is how I am doing it.

idonkeyliu avatar Jul 05 '24 08:07 idonkeyliu