more compact weather line

This commit is contained in:
Cyryl Płotnicki 2022-09-03 23:11:54 +01:00
parent 49441a6d9c
commit 8ccdd94d0b

View file

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