check battery health on macbook code example
Example: how to see the battery health on an older macbook
Apple Symbol (Top Left) -> About this Mac -> Overview -> System Report
-> Power -> Battery Information
Apple Symbol (Top Left) -> About this Mac -> Overview -> System Report
-> Power -> Battery Information