mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
fixed url to show current weather instead of tomorrows weather (oops)
This commit is contained in:
parent
acdd4d1b20
commit
6fb5d00b16
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue