display lat, lon on the weather bar
This commit is contained in:
parent
54cbe2dc17
commit
372536d398
1 changed files with 3 additions and 4 deletions
|
@ -84,16 +84,15 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
|
||||||
forecast_feels=$(echo "$forecast" | $JQ ".list[].main.feels_like" | $CUT -d "." -f 1)
|
forecast_feels=$(echo "$forecast" | $JQ ".list[].main.feels_like" | $CUT -d "." -f 1)
|
||||||
forecast_icon=$(echo "$forecast" | $JQ -r ".list[].weather[0].icon")
|
forecast_icon=$(echo "$forecast" | $JQ -r ".list[].weather[0].icon")
|
||||||
|
|
||||||
|
|
||||||
if [ "$current_temp" -gt "$forecast_temp" ]; then
|
if [ "$current_temp" -gt "$forecast_temp" ]; then
|
||||||
trend="getting colder"
|
trend="getting colder"
|
||||||
echo "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL => $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
|
echo "[$location_lat, $location_lon]: $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 "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL => $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
|
echo "[$location_lat, $location_lon]: $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 "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL"
|
echo "[$location_lat, $location_lon]: $current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue