Weather Icon on GeekTool

Finally I got it working… after a while the geeklet I was using for Yahoo’s weather icon stopped working, so I took a couple minutes to make it shiny again…

Basically, I’m scraping Weather Channel’s local page, grep for the image tag and sed the src of that image, saving it to /tmp/weather.png. Then the geektool looks for that image and refreshes it every half an hour. The cron also checks for a new image in 30 minutes interval…

The weather.sh is also pretty simple:

And the final result:

Also read...