Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!{}/usr/bin/env python3.8
- # -*- coding: utf-8 -*-
- import locale
- locale.setlocale(locale.LC_ALL, '')
- import psutil
- tmp = round(psutil.sensors_temperatures()['coretemp'][0][1])
- if tmp > 80:
- print (f"{tmp}° - ПРОЦ ХАНА!")
- else:
- print (f"{tmp}° - ПРОЦ НОРМА!")
- vga = round(psutil.sensors_temperatures()['radeon'][0][1])
- if vga > 80:
- print (f"{vga}° - ВИДЯХА ХАНА!")
- else:
- print (f"{vga}° - ВИДЯХА НОРМА!")
- fan = psutil.sensors_fans()['it8720'][0][1]
- if fan < 1000:
- print (f"{fan} RPM - ВЕНТИЛЯТОР ХАНА!")
- else:
- print (f"{fan} RPM - ВЕНТИЛЯТОР НОРМА!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement