Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

todd2000

macrumors 68000
Original poster
Nov 14, 2005
1,624
11
Danville, VA
So I have had GeekTool turned off for a while, but I missed it, so I turned it back on today. I noticed that some of my Weather scripts weren't working right, because Yahoo had changed their site around. Specifically the image and the detailed descriptions weren't working. I managed to find a thread that fixed the image, but can not figure out how to get the detailed descriptions.

I am trying to get descriptions that pop up when you mouse over the days on this page http://weather.yahoo.com/united-states/virginia/danville-12767875/

ie Today: blah, blah, blah etc.. Tonight: blah blah, etc..

They used to be in plain text right on the page, but now with the pop-up is it even possible?

Here is the script I was using:

curl --silent "http://weather.yahoo.com/united-states/virginia/danville-12767875" | grep -e "<li><strong>Tonight:</strong>" -A 1 | tail -n 1

Thanks!
 

JRT-King

macrumors newbie
Jan 12, 2013
1
0
Try this out for the current day and next day forecast for your area with hi/low temps. Haven't had any luck getting the pop-ups to appears as they do on yahoo

curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0206&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/\?\(.*\)/\\1/"
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.