ansiweather

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

commit 3dcfca39bd3c77e8b34b9f5db2128efc57f86b2e
parent 30e7f06057b0932023aa7a5f9097d2e1641e6968
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 24 Oct 2013 15:46:54 +0200

Rounding up pression

Diffstat:
Mansiweather | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ansiweather b/ansiweather @@ -86,13 +86,14 @@ weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/weather?q=$location city=$(echo $weather | jq -r '.name') temperature=$(printf '%.0f' $(echo $weather | jq '.main.temp')) humidity=$(echo $weather | jq '.main.humidity') -pressure=$(echo $weather | jq '.main.pressure') +pressure=$(printf '%.0f' $(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 ]########################################################## now=$(date +%s)