uploaded another weather script

This commit is contained in:
elena 2017-09-26 12:23:23 +03:00
parent 363f23c079
commit acdd4d1b20

4
Scripts/accuweather.sh Executable file
View file

@ -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"