do not show temp for later if same

This commit is contained in:
Cyryl Płotnicki 2022-07-16 19:37:25 +01:00
parent cbf984bb30
commit c191f416be

View file

@ -87,11 +87,13 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
if [ "$current_temp" -gt "$forecast_temp" ]; then
trend="getting colder"
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
elif [ "$forecast_temp" -gt "$current_temp" ]; then
trend="getting warmer"
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
else
trend="stable weather"
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, the same later"
fi
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
fi