mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
Merge branch 'main' into alert-sender
This commit is contained in:
commit
84ab61eb00
1 changed files with 5 additions and 1 deletions
6
prettyprint.py
Normal file → Executable file
6
prettyprint.py
Normal file → Executable file
|
|
@ -1,5 +1,8 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from colorama import Back, Fore, Style
|
||||||
|
|
||||||
from sensors import Sensors
|
from sensors import Sensors
|
||||||
from colorama import Fore, Style, Back
|
|
||||||
|
|
||||||
|
|
||||||
def pretty_print():
|
def pretty_print():
|
||||||
|
|
@ -11,5 +14,6 @@ def pretty_print():
|
||||||
for sensors in v:
|
for sensors in v:
|
||||||
print(f"{sensors.sensor_label}: {sensors.current_temp}°C")
|
print(f"{sensors.sensor_label}: {sensors.current_temp}°C")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
pretty_print()
|
pretty_print()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue