私物のMacBook Pro (13inch) , MacBook air (11inch) と、会社で私用している MacBook Pro (15inch) のバッテリー容量を 半年程 はてなグラフに数値を投稿してモニタリングしていたので 公開します。 発端 Macのバッテリーに関する情報は /usr/sbin/ioreg を実行して取得できます。 バッテリーの最大容量となる数値は ioreg -l | grep MaxCapacity で得られる値を利用したらよいようです 。 (この数値は 「このMacについて」>「詳しい情報」 > 「電源」でも確認できます ) ということで 毎日のcronで ioregのMaxCapacityの値を取得はてなグラフに投稿、という形式で半年ほどモニタリングしました。 使用したスクリプト #!/usr/bin/perl use strict; use w