Inspect information about the machine Hammerspoon is running on
Notes:
Signature | hs.host.addresses() -> table |
---|---|
Type | Function |
Description | Gets a list of network addresses for the current machine Parameters:
Returns:
Notes:
|
Signature | hs.host.cpuUsage([period], [callback]) -> table |
---|---|
Type | Function |
Description | Query CPU usage statistics for a given time interval using hs.host.cpuUsageTicks and return the results as percentages. Parameters:
Returns:
Notes:
|
Signature | hs.host.cpuUsageTicks() -> table |
---|---|
Type | Function |
Description | Returns a table containing the current cpu usage information for the system in Parameters:
Returns:
Notes:
|
Signature | hs.host.globallyUniqueString() -> string |
---|---|
Type | Function |
Description | Returns a newly generated global unique identifier as a string Parameters:
Returns:
Notes:
|
Signature | hs.host.gpuVRAM() -> table |
---|---|
Type | Function |
Description | Returns the model and VRAM size for the installed GPUs. Parameters:
Returns:
Notes:
|
Signature | hs.host.idleTime() -> seconds |
---|---|
Type | Function |
Description | Returns the number of seconds the computer has been idle. Parameters:
Returns:
Notes:
|
Signature | hs.host.interfaceStyle() -> string |
---|---|
Type | Function |
Description | Returns the OS X interface style for the current user. Parameters:
Returns:
Notes:
|
Signature | hs.host.localizedName() -> string |
---|---|
Type | Function |
Description | Gets the name of the current machine, as displayed in the Finder sidebar Parameters:
Returns:
|
Signature | hs.host.names() -> table |
---|---|
Type | Function |
Description | Gets a list of network names for the current machine Parameters:
Returns:
Notes:
|
Signature | hs.host.operatingSystemVersion() -> table |
---|---|
Type | Function |
Description | The operating system version as a table containing the major, minor, and patch numbers. Parameters:
Returns:
Notes:
|
Signature | hs.host.operatingSystemVersionString() -> string |
---|---|
Type | Function |
Description | The operating system version as a human readable string. Parameters:
Returns:
Notes:
|
Signature | hs.host.thermalState() -> string |
---|---|
Type | Function |
Description | The current thermal state of the computer, as a human readable string Parameters:
Returns:
|
Signature | hs.host.uuid() -> string |
---|---|
Type | Function |
Description | Returns a newly generated UUID as a string Parameters:
Returns:
Notes:
|
Signature | hs.host.vmStat() -> table |
---|---|
Type | Function |
Description | Returns a table containing virtual memory statistics for the current machine, as well as the page size (in bytes) and physical memory size (in bytes). Parameters:
Returns:
Notes:
|
Signature | hs.host.volumeInformation([showHidden]) -> table |
---|---|
Type | Function |
Description | Returns a table of information about disk volumes attached to the system Parameters:
Returns:
Notes:
|