ansiweather

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

commit 892d3567907cb79af38bb0434bf9298ad620b119
parent 4925a3cbec21a03bac8bb4b89d41db539ace428d
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun, 16 Aug 2015 19:54:10 +0200

Do not attempt to convert pressure data to imperial units in forecast mode

Diffstat:
Mansiweather | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ansiweather b/ansiweather @@ -286,7 +286,10 @@ case $units in scale="°F" speed_unit="mph" pressure_unit="inHg" - pressure=$(printf '%.2f' "$(echo "$pressure*0.0295" | bc)") + if [ "$forecast" = 0 ] + then + pressure=$(printf '%.2f' "$(echo "$pressure*0.0295" | bc)") + fi ;; esac