3.2.0 • Published 1 month ago

macstats v3.2.0

Weekly downloads
20
License
MIT
Repository
github
Last release
1 month ago

macstats

node script for you mac stats

Example output:

--- CPU Stats ---
CPU Temp:        33.75°C

--- Fans Stats ---
Fan 0 speed:     1996 RPM
Fan 1 speed:     2003 RPM

--- Battery Stats ---
Charged:         82%
Capacity:        92%
Cycle Count:     692 (69%)
Max Cycle Count: 1000
Current Charge:  5189 mAh
Maximum Charge:  6316 mAh
Design Capacity: 6900 mAh
Time Remaining:  6.54 h
Temperature:     30.06°C

Installation

npm i macstats -g

Run

macstats

API

'use strict';

let macstats = require('macstats');

console.log(macstats);

API Reference

DataDescription
battery.battery_installedIs battery installed, true or false Boolean
battery.design_capacityBattery design capacity in mAh Int
battery.max_capacityMax battery capacity in mAh Int
battery.current_capacityCurrent battery capacity in mAh Int
battery.percentageCurrent capacity percentage Int
battery.design_cycle_countDesign cycle count Int
battery.cycle_countCurrent battery cycle count Int
battery.cycle_percentageCycle count percentage Int
battery.temperatureBattery temperature in °C Float
battery.chargedCurrent battery charge percentage Int
battery.time_remainingRemaining time in minutes, if plugged in time until full, otherwise time until empty Int
battery.time_remaining_hoursTime remaining in hours. Use in a combination with time_remaining_minutes Int
battery.time_remaining_minutesTime remaining in minutes. Use in a combination with time_remaining_hours Int
cpu.tempCPU Temperature in °C Float
fan.numTotal number of fans Int
fan.fansArray of Objects (properties: id Int, rpm Int), example: { id: 0, rpm: 2007 }, { id: 1, rpm: 1999 } }

Author

Jan Kuri

Licence

This project is licensed under the MIT license. See the LICENSE file for more info.

Thanks

Thanks Massimiliano Marcon for SMC C++ code in v8.

3.2.0

1 month ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.2.0

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.0

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

9 years ago