From fda1cdad519b5d279982dc8a837707e2f9f58178 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Tue, 6 Jan 2026 22:54:52 -0500 Subject: [PATCH] MOTD: Dynamic temp emoji based on temperature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 🧊 ice cube: < 50°C (cool) - 😎 cool face: 50-70°C (warm) - 🔥 fire: > 70°C (hot) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- rpi/setup.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rpi/setup.sh b/rpi/setup.sh index cb12ce3..e861ef9 100755 --- a/rpi/setup.sh +++ b/rpi/setup.sh @@ -454,7 +454,20 @@ if systemctl is-active --quiet stegasoo 2>/dev/null; then # Compact two-column layout echo -e " 🚀 Stegasoo running 🔗 \033[0;33m$STEGASOO_URL\033[0m" if [ -n "$CPU_MHZ" ] && [ -n "$CPU_TEMP" ]; then - echo -e " \033[0;35m⚡\033[0m ${CPU_MHZ} MHz \033[0;35m🌡\033[0m ${CPU_TEMP}" + # Temp emoji: ice<50, cool 50-70, fire>70 + TEMP_NUM=\$(echo "\$CPU_TEMP" | grep -oE "[0-9]+" | head -1) + if [ -n "\$TEMP_NUM" ]; then + if [ "\$TEMP_NUM" -ge 70 ]; then + TEMP_EMOJI="🔥" + elif [ "\$TEMP_NUM" -ge 50 ]; then + TEMP_EMOJI="😎" + else + TEMP_EMOJI="🧊" + fi + else + TEMP_EMOJI="🌡" + fi + echo -e " \033[0;35m⚡\033[0m \${CPU_MHZ} MHz \${TEMP_EMOJI} \${CPU_TEMP}" fi echo -e "\033[38;5;93m══════════════\033[38;5;99m══════════════\033[38;5;105m══════════════\033[38;5;117m══════════════\033[0m" echo ""