ansiweather

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

commit eb25a3b508fbf6dc4044d7bf6641ee4885559f8f
parent 7a280a839e9934bd15a4eedf31d5d5c8856813a6
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Wed, 23 Oct 2013 15:29:52 -0700

Merge pull request #6 from tangphillip/master

Show the wind speed in the output
Diffstat:
Mansiweather | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -83,7 +83,7 @@ pressure=$(echo $weather | jq '.main.pressure') sky=$(echo $weather | jq -r '.weather[0].main') sunrise=$(echo $weather | jq '.sys.sunrise') sunset=$(echo $weather | jq '.sys.sunset') - +wind=$(echo $weather | jq '.wind.speed') ###[ Set the period ]########################################################## @@ -104,9 +104,11 @@ fi case $units in metric) scale="°C" + speed_unit="m/s" ;; imperial) scale="°F" + speed_unit="mph" ;; esac @@ -138,4 +140,4 @@ fi ###[ Display current Weather ]################################################# -echo -e "$background$text Current weather in $city $delimiter$data $temperature $scale $icon$dashes$text Humidity $delimiter$data $humidity % $dashes$text Pressure $delimiter$data $pressure hPa \033[0m" +echo -e "$background$text Current weather in $city $delimiter$data $temperature $scale $icon$dashes$text Humidity $delimiter$data $humidity % $dashes$text Wind $delimiter$data $wind $speed_unit $dashes$text Pressure $delimiter$data $pressure hPa \033[0m"