main -> prettyprint

This commit is contained in:
Alex 2024-06-16 13:43:28 +03:00
parent 806cf0a953
commit 0184a47345

15
main.py
View file

@ -1,15 +0,0 @@
from sensors import Sensors
from colorama import Fore, Style, Back
def pretty_print():
s = Sensors.get_temperatures()
for k, v in s.items():
print(f"{Back.CYAN}{k}{Style.RESET_ALL}")
for sensors in v:
print(f"{sensors.sensor_label}: {sensors.current_temp}°C")
if __name__ == "__main__":
pretty_print()