Returns the number of batteries.
Returns the cycles of the battery.
Returns the health of the battery in percent.
Returns the current temperature of the cpu in degrees celcius.
Returns the current cpu usage in percent of the user, system, idle and nice in an array with this order.
Returns the current rpm of the fan.
The fan id
Returns the number of fans of the machine.
Returns information about the given SMC key. If the given key does not exist an exception is thrown.
The SMC key
Returns the maximum rpm of the fan.
The fan id
Returns the current ram usage in gigabyte. The function returns an array with 5 values: [free, active, inactive, wired, compressed]
Returns the minimum rpm of the fan.
The fan id
Returns the total amount of ram in gigabyte.
Returns true if the machine is on AC and returns false otherwise.
Opens a new connection to the SMC.
Generated using TypeDoc
Closes the connection to the SMC.