ansiweather

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

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

Lowercasing aphid URL parameter + removing extra whitespace in doc

Diffstat:
MREADME.md | 2+-
Mansiweather | 4++--
2 files changed, 3 insertions(+), 3 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 diff --git a/ansiweather b/ansiweather @@ -210,11 +210,11 @@ api_cmd=$([ "$forecast" != 0 ] && echo "forecast/daily" || echo "weather") if [ "$location" -gt 0 ] 2> /dev/null then # Location is all numeric - weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?id=$location&units=$units&APPID=$api_key") + 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") - weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?q=$location&units=$units&APPID=$api_key") + weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?q=$location&units=$units&appid=$api_key") fi if [ -z "$weather" ]