Add ASCII art header with side-by-side timestamp layout

- Created compact 3-line ASCII art for 'piNail' on the left
- Timestamp and status info displayed on the right side
- Efficient use of screen space
- Better visual appeal while remaining compact
- Deployed and verified on Pi
This commit is contained in:
2026-03-12 04:16:09 +00:00
parent a458afd2f0
commit 7742f15912
+21 -9
View File
@@ -228,20 +228,32 @@ class StatusDisplay:
"""Draw the complete status display frame.""" """Draw the complete status display frame."""
lines = [] lines = []
# ASCII Art Title (ultra-compact) # ASCII Art Title with timestamp side-by-side
lines.append("")
lines.append("{}{}{}".format(Colors.BRIGHT_CYAN + Colors.BOLD,
">> PINAIL STATUS <<", Colors.RESET))
# Timestamp
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
lines.append("") lines.append("")
lines.append("{}{} {}{}".format( lines.append("{}{}{:<20} {}{}{}".format(
Colors.BRIGHT_CYAN + Colors.BOLD,
" ___ _ _ _ _",
"",
Colors.DIM, Colors.DIM,
timestamp, timestamp,
Colors.RESET, Colors.RESET
""
)) ))
lines.append("{}{}{:<20} {}{}{}".format(
Colors.BRIGHT_CYAN + Colors.BOLD,
"| \\| | __ _ _ _| | ||_|",
"",
Colors.DIM,
"piNail2 Status",
Colors.RESET
))
lines.append("{}{}{:<20}{}".format(
Colors.BRIGHT_CYAN + Colors.BOLD,
"|__/|_|__|||_||_||_|\\__/",
"",
Colors.RESET
))
lines.append("") lines.append("")
# Get data safely # Get data safely