ansiweather

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

commit 7900e60b2bcbbf800f7766a543699ddeef342b04
parent 98ffc43417505353be8a0d56c88db623915a7e46
Author: Andrei Neculau <andrei.neculau@gmail.com>
Date:   Tue, 22 Oct 2013 00:22:52 +0200

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')