do not show temp for later if same
This commit is contained in:
parent
cbf984bb30
commit
c191f416be
1 changed files with 3 additions and 1 deletions
|
@ -87,11 +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"
|
||||||
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"
|
||||||
else
|
else
|
||||||
trend="stable weather"
|
trend="stable weather"
|
||||||
|
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, the same later"
|
||||||
fi
|
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
|
fi
|
||||||
|
|
Loading…
Reference in a new issue