ansiweather

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

commit ff37c1c1bb6e77f811a6f6a79e73fa9510a0a514
parent 4652737b81b24dcce7649daed265b3ca539eced5
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 19 Jun 2018 10:52:00 +0200

Replace spaces in city names by '%20', underscores are not accepted anymore

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

diff --git a/ansiweather b/ansiweather @@ -167,7 +167,7 @@ then weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?id=$location&units=$units&appid=$api_key") else # Location is a string - location=$(echo "$location" | sed "s/ /_/g") + location=$(echo "$location" | sed "s/ /%20/g") weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?q=$location&units=$units&appid=$api_key") fi