I am currently using a Mac Book Pro running on Mac Big Sur version 11.1 I'm looking to access the data that feeds the system preferences and activity monitor displays of past energy usage. Specifically, the battery data storage location or database source isn’t clear to me.
I know the equivalent is located in /var/lib/upower in linux but I can't seem to find it on mac.
Please note that I am not looking for the current charge of the battery which we could get with
system_profiler SPPowerDataType but the history of battery usage.
Specifically, my goal is to consume this data via a python script. Has anyone documented or reverse engineered how Apple stores this data?