ansiweather

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

commit 9d72152cb73ea6ce8e32d78d8096763d8d66f6bf
parent b0122f8f538f475c2ade9ef553abcde81e6f6fcc
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sat, 17 Oct 2015 23:45:55 +0200

Changing curl options from '-s' to '-sf' to fail silently on server errors

Diffstat:
MREADME.md | 8++++----
Mansiweather | 4++--
Mansiweatherrc.example | 2+-
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md @@ -82,7 +82,7 @@ preferences. Example : `~/.ansiweatherrc` - api_key: X1234567890 + api_key: X1234567890 location:Moscow,RU fetch_cmd:ftp -V -o - geo_api_url:www.telize.com/geoip @@ -110,9 +110,9 @@ Various tools can be used to fetch data : `curl`, `wget`, `ftp`. Please note that `ftp` flags and options might differ among implementations and versions, and the example provided here is known to work only on OpenBSD, NetBSD and Mac OS X. -Example : `curl -s` +Example : `curl -sf` - fetch_cmd:curl -s + fetch_cmd:curl -sf Example : `wget -qO-` @@ -122,7 +122,7 @@ Example : `ftp -V -o -` fetch_cmd:ftp -V -o - -Default: `curl -s` +Default: `curl -sf` ### System of Units diff --git a/ansiweather b/ansiweather @@ -6,7 +6,7 @@ # https://github.com/fcambus/ansiweather # # # # Created: 2013/08/29 # -# Last Updated: 2015/09/27 # +# Last Updated: 2015/10/17 # # # # AnsiWeather is released under the BSD 3-Clause license. # # See LICENSE file for details. # @@ -36,7 +36,7 @@ get_config() { fi } -fetch_cmd=$(get_config "fetch_cmd" || echo "curl -s") +fetch_cmd=$(get_config "fetch_cmd" || echo "curl -sf") diff --git a/ansiweatherrc.example b/ansiweatherrc.example @@ -1,6 +1,6 @@ # .ansiweatherrc example showing all available options -fetch_cmd:curl -s +fetch_cmd:curl -sf location:Moscow,RU units:metric forecast:0