From c9e93f9306fde63e183600efe9925c86879c3d0b Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Fri, 4 Dec 2020 09:03:44 -0700 Subject: [PATCH] allow for choosing city for weather --- bin/weather_cached | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/weather_cached b/bin/weather_cached index e7f4251..22b5edd 100755 --- a/bin/weather_cached +++ b/bin/weather_cached @@ -6,7 +6,7 @@ NOW_TIME=$(date +%s) TIME_PASSED=$((NOW_TIME-CACHE_TIME)) if [[ "$TIME_PASSED" -gt "1200" ]] then - curl -m 2 -s wttr.in/\?format\="%c%t" > $CACHE_FILE + curl -m 2 -s wttr.in/$WEATHER_CITY\?format\="%c%t" > $CACHE_FILE fi cat $CACHE_FILE