From 6fb5d00b1609628b4d5c530fa8413adc44f65fd0 Mon Sep 17 00:00:00 2001 From: elena Date: Tue, 26 Sep 2017 12:25:53 +0300 Subject: [PATCH] fixed url to show current weather instead of tomorrows weather (oops) --- Scripts/accuweather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/accuweather.sh b/Scripts/accuweather.sh index 6ad3f48..42ad554 100755 --- a/Scripts/accuweather.sh +++ b/Scripts/accuweather.sh @@ -1,4 +1,4 @@ #!/bin/bash -weatherURL='http://www.accuweather.com/en/us/buffalo-ny/78701/weather-forecast/351193' -TEMP="$(wget -q -O- "$weatherURL" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $12"°F" }'| head -1)" +URL='https://www.accuweather.com/en/us/buffalo-ny/14202/weather-forecast/349726' +TEMP="$(wget -q -O- "$URL" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $12"°F" }'| head -1)" echo " $TEMP" \ No newline at end of file