ansiweather

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

commit 17534e8c36fe585ee3fbbd010e6aa956c941f1fc
parent 595b8610ec66984e99a8562481fa28aa9951205b
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Tue, 22 Oct 2013 05:08:54 -0700

Merge pull request #10 from andreineculau/patch-1

round up temperature
Diffstat:
Mansiweather | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ansiweather b/ansiweather @@ -74,7 +74,7 @@ weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/weather?q=$location ###[ Process Weather data ]#################################################### city=$(echo $weather | jq -r '.name') -temperature=$(echo $weather | jq '.main.temp') +temperature=$(printf '%.0f' $(echo $weather | jq '.main.temp')) humidity=$(echo $weather | jq '.main.humidity') pressure=$(echo $weather | jq '.main.pressure') sky=$(echo $weather | jq -r '.weather[0].main')