elenapan/Scripts/accuweather.sh
elena 62156a4151 fixed url to show current weather instead of tomorrows weather (oops)
Former-commit-id: 6fb5d00b16
Former-commit-id: ffe58155979f09c5a77b688311ed05a6ceaeeb9f
Former-commit-id: 071679a4825d4eafb510259a2b25239776795a4c
2017-09-26 12:25:53 +03:00

4 lines
No EOL
213 B
Bash
Executable file

#!/bin/bash
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"