Update sunset / sunrise symbols

This commit is contained in:
Shaun Reed 2019-10-05 22:18:36 -04:00
parent 0ab8316aab
commit 600ef666a4
1 changed files with 3 additions and 3 deletions

View File

@ -85,11 +85,11 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
now=$(date +%s)
if [ "$sun_rise" -gt "$now" ]; then
daytime=" $(get_duration "$((sun_rise-now))")" # Sun rise
daytime=" $(get_duration "$((sun_rise-now))")" # Sun rise
elif [ "$sun_set" -gt "$now" ]; then
daytime=" $(get_duration "$((sun_set-now))")" # Sun set
daytime=" $(get_duration "$((sun_set-now))")" # Sun set
else
daytime=" $(get_duration "$((sun_rise-now))")" # Unknown
daytime=" $(get_duration "$((sun_rise-now))")" # Unknown
fi
echo "$(get_icon "$current_icon") $current_temp$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp$SYMBOL $daytime"