joeshaw / carwings

Go package and CLI tool for the Nissan Leaf Carwings API
MIT License
31 stars 11 forks source link

daily report misinterprets energy numbers #44

Open divenal opened 3 years ago

divenal commented 3 years ago

The output from the 'daily' command seems to misinterpret some of the fields. Eg.

Daily Driving Statistics for 2021-10-27
  Driving efficiency:   0.2 kWh/mile   **** 
  Acceleration:       268.1 kWh        **** 
  Regeneration:        81.6 kWh        ***  
  Auxilliary usage:    17.6 Wh         *****

(Acceleration - Regeneration) is far in excess of the 30kWh capacity of the car, and of the expected usage for a 30-mile trip. When I display the same data using the official Nissan app, the 268.1 figure is Wh per mile, so they're actually efficiency numbers rather than usage numbers. (268.1 - 81.6 + 17.6)Wh/mile matches the summary of 0.2kWh/mile.