From f35b77cfcc1f022954d69a3e87b9c88b3a3fa482 Mon Sep 17 00:00:00 2001 From: agessaman Date: Thu, 1 Jan 2026 15:34:46 -0800 Subject: [PATCH] Clarify weather forecast output formatting in wx_international command - Updated the weather forecast message to display high and low temperatures with clear labels (H: for high, L: for low) for better readability. - Removed redundant period name from the forecast to streamline the message content. --- modules/commands/alternatives/wx_international.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/commands/alternatives/wx_international.py b/modules/commands/alternatives/wx_international.py index 8fdcbc3..46c3bbb 100644 --- a/modules/commands/alternatives/wx_international.py +++ b/modules/commands/alternatives/wx_international.py @@ -496,13 +496,14 @@ class GlobalWxCommand(BaseCommand): if conditions and len(weather) < 120: weather += " " + " ".join(conditions) - # Add forecast for today/tonight and tomorrow + # Add forecast high/low for today (without repeating period name since current conditions already show it) # API should return temperatures in Fahrenheit when requested if daily: today_high = int(daily['temperature_2m_max'][0]) today_low = int(daily['temperature_2m_min'][0]) - weather += f" | {period_name}: {today_high}{temp_symbol}/{today_low}{temp_symbol}" + # Show high/low with labels to make it clear + weather += f" | H:{today_high}{temp_symbol} L:{today_low}{temp_symbol}" # Add tomorrow if space allows (check length more carefully) if len(daily['temperature_2m_max']) > 1: