mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-31 02:55:01 +08:00
uploaded another weather script
This commit is contained in:
parent
363f23c079
commit
acdd4d1b20
1 changed files with 4 additions and 0 deletions
4
Scripts/accuweather.sh
Executable file
4
Scripts/accuweather.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue