LeSysBot docs

Package version

3.0.0

Platforms

All platforms

Requires on PATH

nothing

Python dependencies

none

Install#

Install just this package:

shell
lesysbot tools install lesysbot/lesysbot-packages-official/tools/temperature

Or take the whole Official packages collection at once:

shell
lesysbot install lesysbot/lesysbot-packages-official

Tools#

This package exposes 1 tool.

temperature()#

Report every CPU and GPU temperature this machine exposes, choosing the right reader per OS at call time.

Parameters

Takes no parameters.

Notes#

  • Dispatches per OS: kernel hwmon on Linux, the SMC via osx-cpu-temp on macOS (brew install osx-cpu-temp, Intel Macs), ACPI thermal zones via WMI on Windows; nvidia-smi is queried wherever it is on PATH.
  • Apple Silicon exposes no die temperature to unprivileged userspace, and nothing in this collection uses sudo — on M-series Macs the tool says so instead of inventing a number.

Source#

Every package is a folder holding a README.md and a tool.py. Read this one on GitHub: lesysbot/lesysbot-packages-official/tools/temperature.

To write your own, see Writing tools.