diff --git a/Scripts/accuweather.sh b/Scripts/accuweather.sh new file mode 100755 index 0000000..6ad3f48 --- /dev/null +++ b/Scripts/accuweather.sh @@ -0,0 +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)" +echo " $TEMP" \ No newline at end of file