ansiweather

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

commit 8169e1845bbe1f30b98d56956ce79cd2e57932e0
parent 5d4b50d9bf9c21a9a1f3af69b15b0ec004620eff
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Mon, 14 Sep 2015 23:35:27 +0200

Merge pull request #70 from krytarowski/netbsd

Fix numeric translation on NetBSD
Diffstat:
Mansiweather | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -17,8 +17,7 @@ ###[ Configuration options ]################################################### -LC_ALL=C -LC_NUMERIC=C +LC_ALL=C; export LC_ALL config_file=${ANSIWEATHERRC:-~/.ansiweatherrc} @@ -251,7 +250,7 @@ then forecast=$([ "$forecast" -gt "$flength" ] && echo "$flength" || echo "$forecast") else city=$(echo "$weather" | jq -r '.name') - temperature=$(printf '%.0f' "$(echo "$weather" | jq '.main.temp')") + temperature=$(/usr/bin/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')