ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit ed0f28b8cff2717f1d41199ffa78a68ee2cef3d6
parent 83085de4bbf262e34056c70bc94008bea86b7c44
Author: Jockl (r730) <jockl@pianojockl.org>
Date:   Mon, 25 Apr 2016 15:45:35 +0200

added $forecast_text variable and "forecast_text" config file option
this way, the forecast text can be adjusted/translated

Diffstat:
Mansiweather | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -156,7 +156,7 @@ humidity_text=$(get_config "humidity_text" || echo "Humidity") pressure_text=$(get_config "pressure_text" || echo "Pressure") sunrise_text=$(get_config "sunrise_text" || echo "Sunrise") sunset_text=$(get_config "sunset_text" || echo "Sunset") - +forecast_text=$(get_config "forecast_text" || echo "forecast") ###[ Unicode Symbols for icons ]############################################### @@ -360,7 +360,7 @@ get_icon() { if [ "$forecast" != 0 ] then - output="$background$text $city forecast $text$delimiter " + output="$background$text $city $forecast_text $text$delimiter " i=0 while [ $i -lt "$forecast" ]