Sysinfo Module¶
This module contains functions for accessing information about the system like CPU usage or temperature.
-
berrymon.sysinfo.
get_cpu_load
(format=False) → float[source]¶ Returns the current system CPU load in percent as floating point number.
Returns: The system’s CPU load in percent. Return type: float
-
berrymon.sysinfo.
get_cpu_temp
() → float[source]¶ Returns the CPU temperature in Celsius as floating point number.
This function will only work on the Raspberry Pi platform and therefore returns -5 if it’s not executed on a Raspberry Pi.
Returns: The CPU temperature in percent. Return type: float