MCPcopy Create free account
hub / github.com/geekcomputers/Python / show_sensors

Function show_sensors

sensors_information.py:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def show_sensors():
30 print("Python Version:{0.major}.{0.minor}".format(python_version()))
31 for address in ip_addresses():
32 print("IP Addresses: {0[1]} ({0[0]})".format(address))
33 print("CPU Load: {:.1f}".format(cpu_load()))
34 print("RAM Available: {} MiB".format(ram_available() / 1024**2))
35 print("AC Connected: {}".format(ac_connected()))
36
37
38def command_line(argv):

Callers 1

command_lineFunction · 0.85

Calls 5

python_versionFunction · 0.85
ip_addressesFunction · 0.85
cpu_loadFunction · 0.85
ram_availableFunction · 0.85
ac_connectedFunction · 0.85

Tested by

no test coverage detected