ansiweather

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

commit 9f901520cf81fe6ca2b073eba2a46d234de1700c
parent 98ffc43417505353be8a0d56c88db623915a7e46
Author: Phil Tang <ptang@meetup.com>
Date:   Mon, 21 Oct 2013 15:58:17 -0400

Show wind speed

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

diff --git a/ansiweather b/ansiweather @@ -80,7 +80,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 ]########################################################## @@ -101,9 +101,11 @@ fi case $units in metric) scale="°C" + speed_unit="m/s" ;; imperial) scale="°F" + speed_unit="mph" ;; esac @@ -135,4 +137,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"