ansiweather

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

commit e5e3eee2ea2f7c57859867bfbbbb5f40e43bd7aa
parent 31c2ea987c7837a350b2f1974d29cef325172207
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 31 Oct 2013 00:05:59 +0100

Harmonizing variable names

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

diff --git a/ansiweather b/ansiweather @@ -147,13 +147,13 @@ case $units in metric) scale="°C" speed_unit="m/s" - pressureUnit="hPa" + pressure_unit="hPa" pressure=$(printf '%.0f' $pressure) ;; imperial) scale="°F" speed_unit="mph" - pressureUnit="inHg" + pressure_unit="inHg" pressure=$(printf '%.2f' $(echo "$pressure*0.0295" | bc)) ;; esac @@ -195,4 +195,4 @@ fi ###[ Display current Weather ]################################################# -echo -e "$background$text $greeting_text $city $delimiter$data $temperature $scale $icon$dashes$text $wind_text $delimiter$data $wind $speed_unit $direction $dashes$text $humidity_text $delimiter$data $humidity % $dashes$text $pressure_text $delimiter$data $pressure $pressureUnit \033[0m" +echo -e "$background$text $greeting_text $city $delimiter$data $temperature $scale $icon$dashes$text $wind_text $delimiter$data $wind $speed_unit $direction $dashes$text $humidity_text $delimiter$data $humidity % $dashes$text $pressure_text $delimiter$data $pressure $pressure_unit \033[0m"