Learn how to measure the wattage of your Mac with the system_profiler command. Specifically, the SPPowerDataType tells us AC charger information including if a charger is connected and whether or not it’s charging as well as battery information including state of charge, full charge capacity, and cycle count.
Find more at https://tonyteaches.tech
Check out my vlog channel @TonyFlorida