mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
12 lines
195 B
Python
12 lines
195 B
Python
import psutil
|
|
|
|
|
|
def get_temperatures():
|
|
sensors = psutil.sensors_temperatures()
|
|
|
|
for k in sensors:
|
|
print(f"{k}: {sensors[k]}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
get_temperatures()
|