Is possible to use a external software to measure energy consumption?

Good morning, is there a way to perform the energy consumption test by software? i am using firmware 1.2.53
Or at least replicate this spreadsheet but with my own batteries?: Meshtastic ESP32 airtime and current draws - Google Sheets

That spreadsheet was made manually with a multimeter.

1.2 has battery level available but you would have to hook in somewhere and export the data, we have a new telemetry system in 1.3 that provides battery level and voltage and a CSV file can be downloaded in the Apple apps.

Did you know how i can hook and export the battery consumption data?