X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Flib%2Flogin_functions.sh;h=451769715011a1684dcb7c586a3be0faff52d5cd;hb=87b05c1baf6a43c6c31bdbd06928ce16ec58620f;hp=5cb3709bae45e82495866597c9de2558946acd79;hpb=858aa230f2493864905e56c5c89a9a0225db24da;p=khome.git diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 5cb3709..4517697 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -312,7 +312,12 @@ note() { } weather() { - curl "http://wttr.in/$WEATHER_LOCATION" + local _weather_location + case "$1" in + '') _weather_location="$WEATHER_LOCATION";; + *) _weather_location="$1" + esac + curl "http://wttr.in/$_weather_location" } bt_devs_paired() {