Wednesday, July 06, 2016

Got Clima?

Got a nice little script to pull weather info:

clima()
{
wget -q -O- http://www.accuweather.com/en/ar/buenos-aires/7894/weather-forecast/7894 | \
awk -F\' '/acm_RecentLocationsCarousel\.push/{print  "Buenos Aires" " - " $14 " - " "Temperatura: " $10"°"" - " "Sensacion Termica: " $12"°"}'| head -1;
}

Mostly because, like I said, I'm fed up of posting screenshots without weather info on them.
So, here is a little screenshot using it:



The idea came, originally from this post: Weather from terminal

Labels: , , , , , ,

0 Comments:

Post a Comment

<< Home