mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
add city variable
This commit is contained in:
parent
5418211665
commit
68b1a561a1
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
|||
|
||||
get_weather()
|
||||
{
|
||||
curl -s v2.wttr.in | grep -e "Weather" | sed -n 2p | sed s/Weather://g | sed 's/,//g' | sed 's/+//g' | sed 's/°C.*/°C/' | sed 's/.*m//'
|
||||
CITY=Chandigarh
|
||||
curl -s v2.wttr.in/$CITY | grep -e "Weather" | sed -n 2p | sed s/Weather://g | sed 's/,//g' | sed 's/+//g' | sed 's/°C.*/°C/' | sed 's/.*m//'
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue